I have a react app that listening to localhost:3939
Then, I configured a Virtualhost like this to proxy pass the port 3939 on https://test.example.com:
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName test.example.com
[SSL]
ProxyPass / http://localhost:3939/
ProxyPassReverse / http://localhost:3939/
ProxyPreserveHost On
</VirtualHost>
</IfModule>
I have another app listening the port 3940 on https://test2.example.com
The problem is that apps are available on:
- http://test.example.com:3940 (the second app...)
- http://test2.example.com:3939 (the first app...)
So, I want that the port 3939 to be only listened for test.example.com and 3940 for test2.example.com