httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philippe <pbarrie...@abritel.fr>
Subject Problem with Virtual Host
Date Wed, 13 Mar 2002 13:47:06 GMT
Hello,

I'm trying to migrate my webserver to apache (on a mac under MacOs X 
10.1.3)  from Webstar and I have some problems with definition of 
virtual host.
It's a development webserver so, there is no domain name for the main 
webserver  just an IP adress 192.168.1.253

I create virtual hosts like that :

NameVirtualHost	192.168.1.253

<VirtualHost 192.168.1.253>
ServerName www.domain1.com
DocumentRoot /users/site/domain1
</VirtualHost>

<VirtualHost 192.168.1.253>
ServerName www.domain2.com
DocumentRoot /users/site/domain2
</VirtualHost>

<VirtualHost _default_>
DocumentRoot /users/site
</VirtualHost>

When I trying to acess to my server by the IP 192.168.1.253, Apache send 
me in the domain1 directory not in the documentRoot by default.
If I try domain2, it's work fine, I'm going to domain2 directory.
I would like to have a default directory where I go when It isn't a 
defined virtual host.
Coud someone explain me how it works and  where is my mistake ??

Thanks for your response

Best regards,


Philippe BARRIELLE
Sce Informatique
---------------------------------------------------------------------------------------------------
                            *  S.A. Editions et Publicites - ABRITEL *
109, La Canebière - B.P 2033 - 13201 Marseille cedex 01 - France
Tél  : 33 (0)4 91 11 00 72           Wap : http://wap.abritel.fr
Email: pbarrielle@abritel.fr         Web : http://www.abritel.fr
---------------------------------------------------------------------------------------------------
        LOCATIONS VACANCES - FRANCE - SPAIN - DOM - PORTUGAL
---------------------------------------------------------------------------------------------------


---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message