How to set up Apache ProxyPass to preserve Express routes How to set up Apache ProxyPass to preserve Express routes express express

How to set up Apache ProxyPass to preserve Express routes


You have an extra / at the end of your host. Try changing it to:

ProxyPass /node http://localhost:3000


I had the same problem after settings virtual host on apache 2 server with my nodejs backend system here is how i fixed it:

    ProxyRequests On    ProxyVia Full    ProxyPreserveHost on    ProxyPass /api http://jwappengine.com:7000    ProxyPass /secure http://jwappengine.com:1442    ProxyPass /host https://jwappengine.com:1400    ProxyPass /connect/v1 https://jwappengine.com:1400    ProxyPass /payment https://jwappengine.com:3000