Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-12-2013, 05:51 AM   #1
Registered: May 2013
Posts: 189

Rep: Reputation: 1
Open webmin itself using virtualhost

I have a centOS 6.3. webmin is installed on it. I open it using
If I have to open it from other pc, I open it using
Can I make virtualhost of webmin itself so I will open it using
Please help again.
Old 12-13-2013, 01:35 AM   #2
Senior Member
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Depending if webmin itself is a webserver or you have it running from apache or similar you might need to adjust the configuration. Also this probably is not needed due to the non default port of 1000. So the config should be fine.

On the other machines you would need to edit /etc/hosts or similar resolver file. If oyu have a DNS server you would need to put a record for the vhost there.

So into /etc/hosts of the machine you want to call webmin from:
Code: wm.yourdomain.tld wm webmin.yourdomain.tld webmin
Old 12-14-2013, 01:08 AM   #3
Registered: May 2013
Posts: 189

Original Poster
Rep: Reputation: 1
Thanks for the reply.

I have tried according to above post but it is not working. Since webmin itself is a server so there is no need of apache on the machine to run webmin.
service webmin stop/start
is enough for stopping and starting the service.

Since it is not using Apache so there is no need to define virtual host in httpd.conf

Now if I define above mention lines in /etc/hosts, it is not working.
If I define webmin
in /etc/hosts, still it is not working

Please suggest.


Kind regards
Old 12-14-2013, 03:00 AM   #4
Registered: Mar 2013
Posts: 619

Rep: Reputation: 136Reputation: 136
/etc/hosts file will not understand the line webmin
You have defined port number with the IP, use only IP like wm

Now run
It will open your webmin.

If 10000 is a long number for you, set the port 10 because if you set less than 10, you can not open it in browser.
Now http://wm:10 should be small url for you.

Last edited by eklavya; 12-14-2013 at 04:01 AM.
1 members found this post helpful.
Old 12-15-2013, 02:00 AM   #5
Senior Member
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
eklavya hit the nail.

If you dont want to use a port within your calling url and dont have a webserver running on the webmin machine you could also redirect port 80.

On the webmin machine
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 1000
In case webmin using SSL use
iptables -t nat -A PREROUTING -p tcp --dport 445 -j REDIRECT --to-ports 1000


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
WebMin on Open Solaris aaimoo Solaris / OpenSolaris 1 10-01-2009 02:41 AM
webmin open ldap users and groups talkinggoat Linux - Software 0 01-24-2007 12:53 PM
LXer: Open Country Upgrades Webmin Open Source IT System Administration ... LXer Syndicated Linux News 0 11-25-2006 06:21 PM
System Config Won't Open After Webmin Install ongoliard Mandriva 3 09-18-2006 05:30 AM
Can't open webmin in TurboLinux8 turbolinux-user Linux - Software 3 03-08-2003 03:06 PM

All times are GMT -5. The time now is 11:35 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration