httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Walls <>
Subject Re: [users@httpd] domain point to apache
Date Mon, 21 Jun 2010 07:37:26 GMT
Nasir Zia wrote:
> Hi,
> If i point a new domain in my DNS to my web server running Apache 2.2. 
> It will automatically load the existing web site.
> I have two sites already running on my server. I want to point a 
> different web site to my server it will show me the index pages of my 
> already running site. How can i manage this on Apache level that if i 
> point a new site in my dns to my web server it shows nothing unless 
> define a Virtual Host for that new site.
> Which configuration i need on Apache side for implementing this

If there is no matching virtual server, you will get the first virtual 
server in your config file.  Create a dummy virtual server as the first 
entry and it will do what you want.  Mine is:

<VirtualHost *>
  DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"

That's the page you will get if you go to my server using the IP address 
(for example).  It gets a simple page that lists all the sites (current 
and former).  It's a way that I can still see sites that no longer have 
a registered domain (such as my kid's baseball team from several years ago).

Jim Walls - K6CCC
Ofc:  818-548-4804
AMSAT Member 32537 - WSWSS Member 395

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message