httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luis Moreira <luis.more...@esinnovation.pt>
Subject Re: AW: [users@httpd] Virtualhost
Date Wed, 01 Sep 2004 10:55:21 GMT
As is, the first match will always be the one used, as discussed earlier.

You should have

NameVirtualHost www.domainA.euro.st:80
NameVirtualHost www.domainB.euro.st:80
NameVirtualHost www.domainC.euro.st:80
...
<VirtualHost www.domainA.euro.st:80>
<VirtualHost www.domainB.euro.st:80>
<VirtualHost www.domainC.euro.st:80>

Then the client would point the different names to the same IP, and call 
the URL by name.
The usage of DNS has the "downside" that Boyle pointed to...

This, or use one port for each domain (let's say 80, 8080 and 8100).
You would then call

192.168.1.1:80 --> domainA
192.168.1.1:8080 --> domainB
192.168.1.1:8100 --> domainC


asiani@wanadoo.fr wrote:

> The system always go to systher1.....grrrr
> help !
>
> thks,
> alain
> here my real vhost.conf file
>
>
> NameVirtualHost *:80
>
> <VirtualHost *:80>
>    ServerAdmin asiani@free.fr
>    DocumentRoot /home/systher1/www
>    ServerName www.systher1.euro.st
>    ServerPath /systher1
>    ErrorLog logs/systher1-error_log
>    ServerAlias systher1.euro.st
> </VirtualHost>
>
> <VirtualHost *:80>
>    ServerAdmin asiani@free.fr
>    DocumentRoot /home/systher2/www
>    ServerName www.systher2.euro.st
>    ServerPath /systher2
>    ErrorLog logs/systher2-error_log
>    ServerAlias systher2.euro.st
> </VirtualHost>
>
> <VirtualHost *:80>
>    ServerAdmin asiani@free.fr
>    DocumentRoot /home/azur-palettes/www
>    ServerName www.azur-palettes.fr.st
>    ServerPath /azur-palettes
>    ErrorLog logs/azur-palettes-error_log
>    ServerAlias azur-palettes.fr.st
> </VirtualHost>
>
>
>
>
>
>
> Steffen Heil wrote:
>
>
>
>> Hi
>>
>>  
>>
>>>> perhaps you need a NameVirtualHost directive
>>>>     
>>>
>>> NameVirtualHost *:80
>>>   
>>
>>
>>  
>>
>>> <VirtualHost www.domainA.euro.st:80>
>>> <VirtualHost www.domainB.euro.st:80>
>>> <VirtualHost domainC.fr.st:80>
>>>   
>>
>>
>> Nearly.
>>
>> The NameVirtualHost directive's parameter must match the VirtualHost
>> parameter.
>> Remove domain names from VirtualHost and replace them with *:
>>
>> NameVirtualHost *:80
>> ...
>> <VirtualHost *:80>
>> ...
>> <VirtualHost *:80>
>> ...
>> <VirtualHost *:80>
>> ...
>>
>> OR
>>
>> Use your IP (NOT domain name) instead of the *s.
>> But be sure to use the same all the time.
>>
>> Regards,
>>  Steffen
>>
>>
>> ---------------------------------------------------------------------
>> 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