开发者

Alternative http port?

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 开发者_C百科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...

Thanks.


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.


Use hostname to partition your application --i.e., www.foo.bar:80 and chat.foo.bar:80 ?


Besides port 80, port 443 (normally https) is most common to be allowed for outbound connections through various firewalls.


You could write your site in a Apache mod_chat or something. This way you keep all the basic HTTP stuff to Apache and can concentrate on your application will the full power of C++.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜