Re: [users@httpd] (again) Can not define "default" name virtual host

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > <CITE>
> > Now when a request arrives, the server will first check if it is using an IP
> > address that matches the NameVirtualHost. If it is, then it will look at
> > each <VirtualHost> section with a matching IP address and try to find one
> >                                   ^^^^^^^^^^^^^^^^^^^
> > where the ServerName or ServerAlias matches the requested hostname. If it
> >           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > finds one, then it uses the configuration for that server. If no matching
> > virtual host is found, then the first listed virtual host that matches the
> > IP address will be used.
> > </CITE>

On 27.06.06 14:20, Pid wrote:
> The "matching IP address" you refer to is NOT in the ServerName
> directive it's in the VirtualHost definition*.  The documentation is clear.

I think the cite above means, when a request comes for local IP address, and
there are name virtual hosts on that IP address, apache checks all name
virtual hosts defined on that (aka matching) IP address, if their ServerName
or ServerAlias match the hostmane provided in Host: header.

So, if a request comes to 195.168.3.66, and there is directive
"NameVirtualHost 195.168.3.66", apache will search virtual hosts defined on
195.168.3.66 (using <VirtualHost 195.168.3.66>) for the first, whose
ServerName or ServerAlias match the Host: provided in the request.
If none will match, the first virtual host on 195.168.3.66 will be used.

At least this is how I understand the section above.
-- 
Matus UHLAR - fantomas, uhlar@xxxxxxxxxxx ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
REALITY.SYS corrupted. Press any key to reboot Universe.

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux