Todd, please see my answes/comments embedded. Thanx in advance for the help /stefanp
Todd Lyons wrote: >Stefano Pogliani wrote on Fri, Oct 04, 2002 at 08:48:06PM +0200 : > > >>What I saw in an experiment was that each *.mydomain.com was redirected >>to test.mydomain.com. >> >> > >Post your /etc/httpd/conf/vhosts/Vhosts.conf. If you must sanitize it >to hide customer names or anything like that, make sure you tell us that >you are doing so and say what was changed. > <stefano> Here it is : (my domain is www.usdivonne.org which is public. Without virtual hosts, http://www.usdivonne.org/ from the same machine or from any other place of the internet, goes ok. When I enable virtual hosts with the attached config, the www.usdivonne.org (from the same machine or from the internet) goes to where test.usdivonne.org is directed.... From the same machine, http://localhost/ goes to where it should, i,.e. the config from httpd.conf e commonhttpd.conf). The scarlet.poglianis.net is my machine with IP 192.168.1.33) Port 80 ServerRoot /etc/httpd ResourceConfig /dev/null AccessConfig /dev/null ################# Named VirtualHosts NameVirtualHost 192.168.1.33 <VirtualHost 192.168.1.33> ServerName test.usdivonne.name DocumentRoot /var/www/test_system/ </VirtualHost> <VirtualHost 192.168.1.33> ServerName scarlet.poglianis.net DocumentRoot /var/www/scarlet/ </VirtualHost> </stefano> > >How are you accessing it? From the same machine? If so, post your >/etc/hosts and /etc/resolv.conf. From another machine on the network? > <stefano> Both. I access from the same machine and from a machine in the Internet. /etc/hosts is the following : 127.0.0.1 localhost.localdomain localhost 192.168.1.33 scarlet.poglianis.net scarlet 192.168.1.33 www.usdivonne.org usdivonne 192.168.1.33 test.usdivonne.org usd /etc/resolv.conf is the following: nameserver 192.168.1.1 search poglianis.net </stefano> >If so, post that machine's /etc/hosts and /etc/resolv.conf. If you are >doing the name resolving by a DNS server, post the results of: > host www.mydomain.com > host test.mydomain.com > <stefano> No, I am doing with /etc/hosts from the same machine. On the internet, www.usdivonne.org is redirected to my machine via dyndns.org) </stefano> > >Also, look through your logs at /var/log/httpd/info and look for the >incoming requests and see what the browser is sending to the server. > > > >>BTW, I have the SAME IP address for all domains and this address is >>DCHPed by my DSL provider. >> >> > >Good. Posting the Vhosts.conf should be revealing for us. > >Blue skies... Todd > >
smime.p7s
Description: S/MIME Cryptographic Signature