Hi, my apache server is 1.3.1
I try to use Name-based Virtual Hosts , we have a server
server.domain1.com which has 2 alias (CNAME) www.domain1.com and
www.domain2.com.
I read the doc "Virtual Host examples for common setups " and try to
apply to my situation one IP address and 2 names.
------------------------
http.conf:
-----------
ServerName server.domain1.com
NameVirtualHost 1.2.3.4
<VirtualHost 1.2.3.4>
DocumentRoot /apache/www
ServerName www.domain1.com
</VirtualHost>
<VirtualHost 1.2.3.4>
DocumentRoot /apache/www/domain2
ServerName www.domain2.com
</VirtualHost>
-------------------------
I put nothing about virtual host in the srm.conf.
When i start apache, i have:
--------------
./apachectl start
VirtualHost configuration:
1.2.3.4:80 is a NameVirtualHost
default server www.domain1.com
(/usr/local/apache_1.3.1/etc/httpd.conf:245)
port 80 namevhost www.domain1.com
(/usr/local/apache_1.3.1/etc/httpd.conf:245)
port 80 namevhost www.domain2.com
(/usr/local/apache_1.3.1/etc/httpd.conf:250)
./apachectl start: httpd started
------------------
So the namevirtualhost seems to work, everything is fine with the
domain1 but the domain2 has problems with the first page.
When i try with netscape 4 the url www.domain2.fr, i got the index.html
of the domain1 but not the images, because the images are search in the
documentroot of domain2.
When i try www.domain2.fr/index.html. everything is fine.
When i try with a client running on server.domain1.com everything is
fine.
????? any idea...