You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Nasir Zia <na...@gmail.com> on 2010/06/21 09:04:07 UTC

[users@httpd] domain point to apache

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

Regards
Nasir

Re: [users@httpd] domain point to apache

Posted by Nasir Zia <na...@gmail.com>.
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 <ji...@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
>
>

Re: [users@httpd] domain point to apache

Posted by Jim Walls <ji...@k6ccc.org>.
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
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