I currently have a Sub Domain Proxies and Sub Folder Proxies working as seperate virtual hosts.
I want to minimise/simplify the code by combining.
My end game is to have Subdomains pointing to different Physical/Virtual Servers, while use subfolders to access different services in that server.
For Example:
www.example.com = Server 0 Apache
www.example.com/webmin = Server 0 Webmin
server1.example.com = Server 1 Apache
server1.example.com/webmin = Server 1 Webmin
server1.example.com/ad = Server 1 Active Directory UI
server2.example.com = Server 2 Apache
server2.example.com/webmin = Server 2 Webmin
server2.example.com/ad = Server 2 Active Directory UI
I have the following working thou as separate VirtualHosts:
#NAS as nas.example.com
ProxyPass / http://10.0.28.1:5000/
ProxyPassReverse / http://10.0.28.1:5000/
#Webmin as nas.example.com/webmin
ProxyPass /webmin/ http://10.0.28.1:10000/
ProxyPassReverse /webmin/ http://10.0.28.1:10000/
My guess is the first entry is overriding the second as the first is /. I just can't seem to nut out how to override and make both ReverseProxies work within the same