node.js - How to run sails.js application on port 80 with example? -


i have put sails.js in port 80, apache using it. how can put both (sails.js , apache) on same port 80? need because in company ports blocked except port 80. (this realtime application nodejs , socket.io (websockets) , in other side php application). lot

you have run sails on free port (1337, example) , use apache mod_proxy. make sure it's loaded in apache config, virtual host this:

<virtualhost *:80>     servername  www.youserver.com      proxypass / http://localhost:1337/     proxypassreverse / http://localhost:1337/ </virtualhost> 

see mod_proxy documentation more details.


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -