I have a front end Apache 2.4 running, how can I load the content based on the folder name? Here is an example. Notice that the folder name represents the port number of the source server:
https://example.com/8000/xyz will load the content from http://192.168.1.101:8000/xyz
https://example.com/9000/xyz will load the content from http://192.168.1.101:9000/xyz
Currently I have the following setup, which is good for one domain / one port.
VirtualHost *:443 ServerName example.com ProxyPass / http://192.168.1.101:8000/ ProxyPassReverse / http://192.168.1.101:8000/ /VirtualHost
Ideally I like to have one domain that can cover multiple (>100) ports. Is it possible to do it without having to create over 100 of subdomains and configs?
0 Answers