Solved

Default site in Webmin

Posted on 2008-10-02
5
775 Views
Last Modified: 2013-11-30
My web server is running under Ubuntu OS. I am using Webmin to manage the sites. I created many Virtual hosts in Webmin. When I access to my server's IP (http://xxx.xxx.xxx.xxx) then Webmin automatically choose one of the Virtual host to display. How can I control what will be displayed when someone tries to access directly to server's IP?
0
Comment
Question by:free4vn
  • 3
5 Comments
 
LVL 24

Expert Comment

by:DMTechGrooup
Comment Utility
If you are adding virtual hosts to an existing web server, you must also create a <VirtualHost> block for the existing host. The ServerName and DocumentRoot included in this virtual host should be the same as the global ServerName and DocumentRoot. List this virtual host first in the configuration file so that it will act as the default host.

http://httpd.apache.org/docs/1.3/vhosts/name-based.html
0
 
LVL 24

Expert Comment

by:DMTechGrooup
Comment Utility
0
 

Author Comment

by:free4vn
Comment Utility
The problem is that I am using Webmin with Ubuntu. Each virtual host configuration is stored in a file in /etc/apache2/site-enabled/. The file /etc/apache2/httpd.conf is empty. In the file /etc/apache2/apache2.conf, the last line is an include command:  Include /etc/apache2/sites-enabled/

So, how Webmin decide the default virtual host?

Moreover, after adding a virtual host, when the DNS settings haven't updated yet, how can I access the website?  It often takes about 24 hours to 48 hours for DNS propagting. In centos, I can access by http://server.ip/~username, but it does not work in Ubuntu with Webmin. Is there any solution?

0
 
LVL 24

Accepted Solution

by:
DMTechGrooup earned 500 total points
Comment Utility
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Route summarization 9 42
Old Cisco access point to act as Repeater 5 35
Device same like our heart 12 43
Use of Training Budget 12 64
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now