I run Webmin and I want it to be accessed with two URLs, both using proxypass in apache

Posted by user36644 on Server Fault See other posts from Server Fault or by user36644
Published on 2010-03-03T19:17:20Z Indexed on 2010/04/08 15:03 UTC
Read the original article Hit count: 330

Filed under:
|
|
|

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

© Server Fault or respective owner

Related posts about proxy

Related posts about proxypass