Alternate http port?

I want to write a browser chat and write my own server in C ++, because you cannot send text between different instances (chat user) in php and other languages. My apache works with port 80 and why I can not start the "HTTP chat server" on port 80. Some browsers block the connection to the http site if it does not use port 80. Does anyone know which port I should use for this small server for better browser compatibility? Maybe 8080? I could also buy another IP to run it under: 80, but my host wants 5 € per month for a new ip ...

Thanks.

0
source share
4 answers

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

+1
source

Use the host name to separate your application --ie, www.foo.bar:80 and chat.foo.bar:80 ?

0
source

In addition to port 80, port 443 (usually https) is most often allowed for outbound connections through various firewalls.

0
source

You can write your site in Apache mod_chat or something like that. This way you save all the basic HTTP material in Apache and can focus on your application, fully using C ++.

0
source

Source: https://habr.com/ru/post/1303359/


All Articles