httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Burden" <...@burden.ca>
Subject Re: [users@httpd] Virtual Host ServerAlias Question
Date Sun, 20 Jun 2004 17:08:25 GMT
The first VirtualHost entry will serve anything that Apache can see (that
is, any ip/port that it is listening on), regardless of the requested host
name.

If you're pointing webmail.example.com at the apache server, don't you need
a special VirtualHost entry to handle that? Or what are you trying to do?

----- Original Message ----- 
From: "Jim Norton" <jrn@oregonhanggliding.com>
To: <users@httpd.apache.org>
Sent: Sunday, June 20, 2004 1:03 PM
Subject: [users@httpd] Virtual Host ServerAlias Question


> Hello all:
>
> I am running Apache 2.0.48 and have the following vhosts.conf name based
entry:
>
> <VirtualHost 1.2.3.4>
>     ServerAdmin notmyrealaddress@example.com
>     DocumentRoot /path/to/document/root/
>     ServerName example.com
>     ServerAlias example.com www.example.com
> </VirtualHost>
>
> I thought this would only allow example.com and www.example.com to served
by apache out of the Document Root.
> Apparently this is not the case. Any DNS alias such as mail.example.com
are also served by Apache.
>
> What do I need to do to make Apache only serve out example.com and
www.example.com?
> Can I use some sort of regexp or such on the ServerAlias line? Or...?
>
>
> My DNS entries look this ( not sure if this matters much ):
>
>
> <snip>
> $ORIGIN example.com.
> hosting                 IN      A      1.2.3.4
> mail                    IN      A      1.2.3.4
> ns                      IN      A       1.2.3.4
> www                     IN CNAME        hosting
> webmail                 IN CNAME        hosting
> ftp                     IN CNAME        hosting
> main                    IN      A       1.2.3.4
> midvalleyhosting.com.   IN      A       1.2.3.4
>
>
> Thanks for any help,
>
>
> -- 
> Jim Norton - http://www.jimnorton.org
>
> "The art of listening is indispensable for the right use of the mind.
> It is also the most gracious, the most open and the most generous of
> human habits."
> (Attributed to R. Barr, St. John's College, Annapolis, MD)
>
> ---------------------------------------------------------------------
> 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
>


---------------------------------------------------------------------
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