I run Webmin and I want it to be accessed with two URLs, both using proxypass in apache
- by user36644
This is what I am trying to do:
NameVirtualHost *
<VirtualHost *>
ServerName testsite.org
ServerAdmin [email protected]
DocumentRoot /var/www/
</VirtualHost>
<VirtualHost *>
ServerName panel.testsite.org
ProxyPass / http://panel.testsite.org:10000/
ProxyPassReverse / http://panel.testsite.org:10000/
</VirtualHost>
<VirtualHost 12.34.56.78>
ServerName newsite.com
ServerAdmin [email protected]
DocumentRoot /var/newsite/
</VirtualHost>
<VirtualHost 12.34.56.78>
ServerName panel.newsite.com
ProxyPass / http://panel.newsite.com:10000/
ProxyPassReverse / http://panel.newsite.com:10000/
</VirtualHost>
The problem is that it won't accept the 2nd vhost with the IP 12.34.56.78 because it says one already exists. panel.newsite.com and newsite.com have the same IP...so I am not sure how I can make it so that only the URL "panel.newsite.com" will get proxypassed to port 10000 but no other URL on newsite.com