> -----Original Message-----
> From: John Steel [mailto:[EMAIL PROTECTED] 
> Sent: Dienstag, 17. April 2007 19:19
> To: users@httpd.apache.org
> Subject: Re: [EMAIL PROTECTED] IP address discimination
> 
> Boyle Owen wrote:
> > You must have a NameVirtualHost directive somewhere for 1.2.3.4 (any
> > included files?). Anyway, why fight it? You absolutely *need*
> > NameVirtualHost to do name-based virtual-hosting so just 
> type it in and
> > end the pain.
> >   
> I found them in httpd.include - it begins like this:
> NameVirtualHost 1.2.3.4:80
> NameVirtualHost 1.2.3.5:80

OK.

> ..
> NameVirtualHost 1.2.3.4:443
> NameVirtualHost 1.2.3.5:443

If you're planning to put SSL VHs on ports 443, this won't work as you
expect... Name-based VHs aren't supported by HTTP (see FAQa for
details).

> 
> > Couple of other points... 
> > - Why use ServerAlias instead of ServerName? Maybe it 
> works, but then I
> > guess you could drive a car by operating the clutch with your right
> > foot, too.
> >   
> So I changed httpd.conf to read as follows, and the 
> "overlapping" error 
> went away:
> 
> <VirtualHost *>
> ServerName example1.com
> Redirect permanent / http://www.example1.com/
> </VirtualHost>
> 
> <VirtualHost *>
> ServerName example2.com
> Redirect permanent / http://www.example2.com/
> </VirtualHost>
> 
> But using http://example1.com in a browser didn't do the redirect.
> Is this what you meant? Thanks for the help so far.

For sanity's sake, I always use *exactly* the same string in a VH
argument as I use in the accompanying NameVirtualHost directive. So try:
<VirtualHost 1.2.3.4:80> instead of wildcard.

Generally, if a VH is not "working" it's usually because the request is
being assigned to another VH - either earlier in the config or a more
specific match. Re-check all your VH definitions and look out for
conflicts and overlaps.

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

> 
> -- 
> --------------------------
> http://www.phonewebcam.com
> [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> 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: [EMAIL PROTECTED]
>    "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
 
 
This message is for the named person's use only. It may contain confidential, 
proprietary or legally privileged information. No confidentiality or privilege 
is waived or lost by any mistransmission. If you receive this message in error, 
please notify the sender urgently and then immediately delete the message and 
any copies of it from your system. Please also immediately destroy any 
hardcopies of the message. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the intended 
recipient. The sender's company reserves the right to monitor all e-mail 
communications through their networks. Any views expressed in this message are 
those of the individual sender, except where the message states otherwise and 
the sender is authorised to state them to be the views of the sender's company.

---------------------------------------------------------------------
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to