You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by MiksIr <mi...@laudlink.ru> on 2003/12/04 08:46:53 UTC
[users@httpd] NameVirtualHost * with
Hello all,
apache 2.0.48
NameVirtualHost *
<VirtualHost *>
DocumentRoot ...
ServerName empty.somedomain
</VirtualHost>
<VirtualHost *>
DocumentRoot ...
ServerName www.somedomain
</VirtualHost>
This is work nice. Make some changes.
NameVirtualHost *
<VirtualHost *>
DocumentRoot ...
ServerName empty.somedomain
</VirtualHost>
<VirtualHost 1.2.3.4>
DocumentRoot ...
ServerName www.somedomain
</VirtualHost>
But now for 1.2.3.4 run _ip-based_ virtual hosting. As result, for
requests to 1.2.3.4 always answer second virtualhost. And more, if
i add third virtualhost this 1.2.3.4 IP, apache generate warning
about overlaps.
I think, that's wrong, because NameVirtualHost * say, what for
all IP run name-based virtual hosting.
--
Best regards, MiksIr
miksir@laudlink.ru
---------------------------------------------------------------------
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] NameVirtualHost * with
Posted by Norman Peelman <np...@cfl.rr.com>.
----- Original Message -----
From: "MiksIr" <mi...@laudlink.ru>
To: <us...@httpd.apache.org>
Sent: Thursday, December 04, 2003 2:46 AM
Subject: [users@httpd] NameVirtualHost * with <VirtualHost IP>
> Hello all,
>
> apache 2.0.48
>
> NameVirtualHost *
>
> <VirtualHost *>
> DocumentRoot ...
> ServerName empty.somedomain
> </VirtualHost>
>
> <VirtualHost *>
> DocumentRoot ...
> ServerName www.somedomain
> </VirtualHost>
>
> This is work nice. Make some changes.
>
> NameVirtualHost *
>
> <VirtualHost *>
> DocumentRoot ...
> ServerName empty.somedomain
> </VirtualHost>
>
> <VirtualHost 1.2.3.4>
> DocumentRoot ...
> ServerName www.somedomain
> </VirtualHost>
>
> But now for 1.2.3.4 run _ip-based_ virtual hosting. As result, for
> requests to 1.2.3.4 always answer second virtualhost. And more, if
> i add third virtualhost this 1.2.3.4 IP, apache generate warning
> about overlaps.
> I think, that's wrong, because NameVirtualHost * say, what for
> all IP run name-based virtual hosting.
>
Try this (notice two NameVirtualHost directives):
NameVirtualHost empty.somedomain.com
<VirtualHost empty.somedomain.com>
DocumentRoot ...
ServerName empty.somedomain
DirectoryIndex index.htm index.html
ErrorLog logs/empty_somedomain_log
CustomLog logs/empty_somedomain_log common
</VirtualHost>
NameVirtualHost www.somedomain.com
<VirtualHost www.somedomain.com>
DocumentRoot ...
ServerName www.somedomain.com
DirectoryIndex index.htm index.html
ErrorLog logs/www_somedomain_log
CustomLog logs/www_somedomain_log common
</VirtualHost>
Now if you need to change one to ip based addressing you can...
---------------------------------------------------------------------
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