How to run node.js app on port 80 using http-proxy?
问题 I want to run my node.js app on port 80 on Apache server. I have tried 2 methods one via Apache: <VirtualHost *:80> ServerName domainName.com ServerAlias www.domainName.com ProxyRequests off <Proxy *> Order deny,allow Allow from all </Proxy> <Location /> ProxyPass http://domainName:8080 ProxyPassReverse http://domainName:8080 </Location> </VirtualHost> When I use this I get 502 proxy error in Chrome console. The server cannot find my CSS and Socket.io and other JS files. UPDATE: I solved this