I have a server which we use to test some services. It's basically a server where devs can run some containers in order to run some tests.
What I'm trying to do is proxy reverse some url patterns into some containers.
For example, this is what I have now:
<VirtualHost *:80>
ServerName dev.server.com
RewriteEngine On
RewriteRule (.*) https://%{HTTP_HOST}$1 [R=301,L]
</VirtualHost>
<VirtualHost *:443>
ServerName dev.server.com
<--- certificates and log configs --->
SetEnv proxy-nokeepalive 1
ProxyRequests On
ProxyPreserveHost On
RewriteEngine On
ProxyPass /appOne http://localhost:9999/
ProxyPassReverse /appOne http://localhost:9999/
ProxyPass /appTwo http://localhost:9000/
ProxyPassReverse /appTwo http://localhost:9000/
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
</VirtualHost>
But when I access https://dev.server.com/appOne
, it access the app deployed on port 3000
instead of the one deployed on port 9999
.
I've never configured Apache before, so I'm struggling to understand all the concepts. Is this possible? If yes, where is my mistake?