NodeJS running on Port 80 with Apache

5

Well, it is the following, whenever I intend to use socket.io I have to use some port, with that it makes that whenever I want to have access to the web page that works with the socket.io I have to go to: wwww.meusite .com: port.

What I would like to know is if I can remove the port, or if there is at least some solution to avoid this problem, bearing in mind that apache on my server already uses port 80.

    
asked by anonymous 23.03.2017 / 21:31

1 answer

3

Every request is made on a port, what happens is that the browser "hides" ports 80 and 443 which are the two standards of the HTTP protocol - without SSL and with SSL, respectively.

By definition, if you do not specify any port in an HTTP request, this request will be made on port 80.

    
23.03.2017 / 21:38