备用http端口? [英] Alternative http port?

查看:245
本文介绍了备用http端口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,
我想在c ++中编写一个浏览器聊天并写一个自己的服务器,因为你不能在php和其他语言的不同实例(聊天用户)之间发送文本。
我有apache运行端口80,这就是为什么我不能在端口80上运行聊天http服务器。一些浏览器阻止连接到http站点,如果它不使用端口80.
有人知道,我应该使用这个小型服务器的最佳浏览器兼容性哪个端口?也许8080?我也可以购买一个不同的IP运行它:80,但我的主机需要5€每月一个新的ip ...

Hey, I want to write a browser-chat and write an own server in c++, because you can not send text between the different instances (chat user) in php and other languages. I have apache running with port 80 and that's why I cant run the "chat http server" on port 80. Some browsers block connection to a http site if it does not use port 80. Does someone knows, what port I should use for this small server for best browser compatibility? Maybe 8080? I could also buy a different IP to run it under :80, but my host wants 5€ per month for a new ip...

谢谢。

推荐答案

您可以使用mod_proxy(或mod_proxy_balancer)将您Apache站点的某个分支上的请求转发到另一个web服务器,其他端口。

You can use mod_proxy (or mod_proxy_balancer) to forward requests on some branch of your Apache site to the other web server that listens to localhost on some other port.

这篇关于备用http端口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆