Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How can I use Apache on Ubuntu 11.04 and Webmin to set up a reverse proxy for Webmin's port 10000 to access it through a subfolder like www.example.com/webmin or webmin.example.com?

share|improve this question

3 Answers 3

You can use apache's mod_proxy to do this as a virtualhost

<VirtualHost *:80>
    ServerName webmin.yourdomain.com
    ProxyPass / http://servername.tld:10000/
    ProxyPassReverse / http://servername.tld:10000/
<Proxy *>
    allow from all
</Proxy>
</VirtualHost>

or as a URL, add the following tto your main virtualhost configuration

ProxyPass /webmin/ http://servername.tld:10000/
ProxyPassReverse /webmin/ http://servername.tld:10000/
<Proxy *>
    allow from all
</Proxy>

the servername.tld could be localhost to an IP address

share|improve this answer

There are specific configuration instructions over here: http://webmin.com/apache.html

You can either run it through Apache completely negating the webmin miniserver or run it through mod_proxy as Ignacio describes.

share|improve this answer

mod_proxy will allow you to configure httpd as a reverse proxy to other web applications.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.