pootzko's picture

Hi all,

can I somehow make webmin accessible through domain name, and not through IP.

I can access it normally through IP. I tried making a virtual host that points to /var/webmin but it gave me 403. Then I tried to make a symlink /var/www/webmin -> /var/webmin and pointed the virtual host to /var/www/webmin but I got the 403 again when trying to access webmin through a domain name.

Is there a way to make this work or did I figure it all wrong?

Thank you :)

Forum: 
pootzko's picture

I mean, it's obviously permissions, but I don't want to change them just yet not to mess something up. That's why I'm asking here - if someone knows of a preferred way to do it.

Ryan's picture

You need to set your vhost to use reverse proxy to point to Webmin which is running its own separate webserver

<VirtualHost *>
    ServerName webmnin.example.com
 
    ProxyRequests Off
    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>
 
    ProxyPass / http://localhost:12321
    ProxyPassReverse / http://localhost:12321
    <Location />
        Order allow,deny
        Allow from all
    </Location>
</VirtualHost>

 

You should be careful about relying on this type of structure in a production environment. Webmin is running on its own server for safety. If Apache goes down you'll still be able to access Webmin to troubleshoot. If this is your only route to access Webmin you could get stuck.

Keep in mind you can always access your Webmin through http://example.com:12321. This can be configured either through DNS or in your hosts file.

Good luck!


Add new comment