So I have the following two configurations:
On the one hand a backend server:
<VirtualHost *:80>
ProxyPreserveHost On
ServerName localhost
ProxyPass /backend http://some_remote_ip:7000/backend
ProxyPassReverse /backend http://some_remote_ip:7000/backend
ProxyPassReverseCookiePath / /backend
ProxyPassReverseCookieDomain some_remote_ip localhost
</VirtualHost>
And on the other hand a frontend server:
<VirtualHost *:80>
ProxyPreserveHost On
ServerName localhost
ProxyPass /excluded !
ProxyPass / http://127.0.0.1:9000/
ProxyPassReverse / http://127.0.0.1:9000/
</VirtualHost>
If I put those in a .conf
file together, only the one that is written first, in the file, will work, so technically they are both correct.
So my question is how can I have multiple ProxyPass
entries in the same VirtualHost
configuration?
P.S.: I need to be able to access
- the backend at
localhost/backend
- the frontend at
localhost