httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kees Nuyt <k.n...@zonnet.nl>
Subject Re: [users@httpd] Problem with httpd.conf
Date Thu, 06 Nov 2014 16:40:56 GMT
On Thu, 06 Nov 2014 11:22:00 -0500, you wrote:

>On Thu, 6 Nov 2014 11:06:06 -0500, you wrote:
>
>>On Thu, Nov 6, 2014 at 10:43 AM, Steve Matzura <sm@noisynotes.com> wrote:
>>> NameVirtualHost *:80
>>
>>
>>You probably have two or more of these, you only want 1.
>
>How does that jibe with the article saying I need a block for each
>domain?

A block means <VirtualHost *:80> ..... </VirtualHost>, so
----
NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.domain1.com
ServerAlias domain1.com *.domain1.com
DocumentRoot /webfiles-root/www/domain1.com
</VirtualHost>

<VirtualHost *:80>
ServerName www.domain2.com
ServerAlias domain2.com *.domain2.com
DocumentRoot /webfiles-root/www/domain2.com
</VirtualHost>
----

is correct.
However, the line 
	NameVirtualHost *:80
should not be repeated.

-- 
Regards,
Kees Nuyt

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message