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

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -