httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Guillermo Martinez \(Silvereme\)" <a.guille...@silvereme.com>
Subject RE: [users@httpd] Very very strange problem with virtualhost's
Date Sun, 15 Feb 2004 17:00:08 GMT
> > > explorer to www.silvereme.com it opens the correct page, when I
> > try to
> > open
> > > www.geekiberico.com it open the correct page but when I try to
> > open
> > > www.pi-erre.com it opens the www.silvereme.com page.
> > >
> > > It's stange because when I try to open the page from any
> > computer (in the
> > > network, outside the network, etc) it fails (opens the
> > incorrect page) BUT
> > > when I open it from the local machine, it opens the correct
> > page (not
> > > refresing or proxy problem, I've tested that).
> > >
> > 
> >   You may need to do this:
> > 
> > In httpd.conf file --
> > 
> > Listen 80
> > 
> > NameVirtualHost put.ip.address.here
> > 
> > <VirtualHost www.your.domain>
> > 
> > --end--
> > 
> >   I've not been able to get it to work any other way
> > (Apache2.0.45 w/WinXP
> > Pro), NameVirtualHost * just doesn't work for me - all 
> requests return 
> > the same page.
> > 
> 
> 
> I was banging my head over a similar issue.  I solved it after
> several days by making the first virtualhost container "_default_".
> This is in Apache 1.3.  Other methods either gave me the
> defaulthost answering all requests or the otherhost answering all
> requests.
> 
> 
> NameVirtualHost *:*
> 
> <VirtualHost _default_:*>
>   Servername www.defaulthost.com
>   DocumentRoot /path/to/root
> </VirtualHost>
> 
> <VirtualHost *:*>
>   Servername www.otherhost.com
>   DocumentRoot /path/to/other/root
> </VirtualHost>
> 
> 
> Does that work for you?

Hello Kynan:

I've tested but when I put this it loads allways the first virtualhost
(geekiberico.com that worked, now go to silvereme.com)

I'm going to test it with apache 1.3... And I tell you, ok?

Thank you!!!

Bye.


---------------------------------------------------------------------
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