LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 12-12-2013, 06:51 AM   #1
unclesamcrazy
Member
 
Registered: May 2013
Posts: 187

Rep: Reputation: 1
Open webmin itself using virtualhost


I have a centOS 6.3. webmin is installed on it. I open it using
Code:
https://localhost:10000
If I have to open it from other pc, I open it using
Code:
https://192.168.1.1:10000
Can I make virtualhost of webmin itself so I will open it using
Code:
https://wm/
or
Code:
https://webmin/
Please help again.
 
Old 12-13-2013, 02:35 AM   #2
zhjim
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:
192.168.1.1 wm.yourdomain.tld wm
192.168.1.1 webmin.yourdomain.tld webmin
 
Old 12-14-2013, 02:08 AM   #3
unclesamcrazy
Member
 
Registered: May 2013
Posts: 187

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
192.168.1.1:10000 webmin
in /etc/hosts, still it is not working

Please suggest.

Thanks

Kind regards
Sam
 
Old 12-14-2013, 04:00 AM   #4
eklavya
Member
 
Registered: Mar 2013
Posts: 619

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

Now run
http://wm:10000
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 05:01 AM.
 
1 members found this post helpful.
Old 12-15-2013, 03:00 AM   #5
zhjim
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
Code:
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 1000
In case webmin using SSL use
Code:
iptables -t nat -A PREROUTING -p tcp --dport 445 -j REDIRECT --to-ports 1000
 
  


Reply


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 03:41 AM
webmin open ldap users and groups talkinggoat Linux - Software 0 01-24-2007 01:53 PM
LXer: Open Country Upgrades Webmin Open Source IT System Administration ... LXer Syndicated Linux News 0 11-25-2006 07:21 PM
System Config Won't Open After Webmin Install ongoliard Mandriva 3 09-18-2006 06:30 AM
Can't open webmin in TurboLinux8 turbolinux-user Linux - Software 3 03-08-2003 04:06 PM


All times are GMT -5. The time now is 08:18 PM.

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