I have my Apache Server running on port 80.
http://example.com/geoserver, is proxied to
I am currently using Virtual_host and mod_proxy to Do this. My httpd.conf has the following code:
<VirtualHost *:80> ProxyPass /geoserver http://localhost:8080/geoserver ProxyPassReverse /geoserver http://localhost:8080/geoserver </VirtualHost>
Now I need Apache to serve as a Reverse proxy for another application running with node.js on port 5000. If I add the following code in my http.conf:
<VirtualHost *:80> ProxyPass /DocHub http://localhost:5000 ProxyPassReverse /DocHub http://localhost:5000 </VirtualHost>
I get the following warning in the Apache Logs:
_default_ VirtualHost overlap on port 80, the first has precedence. And the request to
http://example.com/DocHub gives a 404 error.
Is there a way for Apache to serve as a Reverse Proxy for multiple sites? Is there another way of achieving what I want to do?