httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nasir Zia <nasir...@gmail.com>
Subject Re: [users@httpd] domain point to apache
Date Mon, 21 Jun 2010 08:27:18 GMT
Hi,

This is not working in my case. my new site still point towards old site
even i add your dummy virtual host entry in the begining of file. what can
be the issue

On Mon, Jun 21, 2010 at 12:37 PM, Jim Walls <jim@k6ccc.org> wrote:

> 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 *>
>  ServerName no.name
>  DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"
> </VirtualHost>
>
> 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).
>
> --
> 73
> -------------------------------------
> Jim Walls - K6CCC
> jim@k6ccc.org
> Ofc:  818-548-4804
> http://home.earthlink.net/~k6ccc <http://home.earthlink.net/%7Ek6ccc>
> AMSAT Member 32537 - WSWSS Member 395
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Mime
View raw message