Solved

Default site in Webmin

Posted on 2008-10-02
5
783 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 24

Expert Comment

by:DMTechGrooup
ID: 22631202
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
ID: 22631212
0
 

Author Comment

by:free4vn
ID: 22632811
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
ID: 22634299
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

695 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