httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simona D'Ambrosio" <sim...@adria-web.com>
Subject Re: [users@httpd] Apache-2.0.43 and VirtualHost problem.
Date Mon, 13 Jan 2003 08:35:21 GMT
I am not very expert, but it seems to be the same problem I had last week.
A guy in the list told me to see if I had the "NameVirtualHost yourIP"
specified in the httpd.conf.
I had none, so I added that directive and everything went fine.
Bye
Simona

----- Original Message -----
From: "Tobias" <CoUnt3r@gmx.net>
To: <users@httpd.apache.org>
Sent: Sunday, January 12, 2003 8:34 PM
Subject: Re: [users@httpd] Apache-2.0.43 and VirtualHost problem.


> hi folks,
>
> is my problem so strange? has really nobody here a guess?
>
> cu
> Toby
>
> Tobias <CoUnt3r@gmx.net> wrote:
> > hi apache-users :)
> >
> > i've a little problem with virtualhosts under 2.0.43:
> >
> > the browser goes every time to www.example1.org.
> > as doku this behaviour is an evidence to wrong configuration...
> >
> > (http://httpd.apache.org/docs-2.0/vhosts/name-based.html
> > "If no matching virtual host is found, then the first listed
> > virtual host that matches the IP address will be used.")
> >
> > my config:
> >
> > #tail -20 httpd.conf
> >
> >    Listen 80
> >    NameVirtualHost *
> >    ServerName www.example.org
> >    DocumentRoot /usr/local/apache/htdocs/
> >    <VirtualHost *>
> >    DocumentRoot /usr/local/apache/htdocs/vh1
> >    ServerName www.example1.com
> >    # Other directives here
> >    </VirtualHost>
> >    <VirtualHost *>
> >    DocumentRoot /usr/local/apache/htdocs/vh1
> >    ServerName www.example2.org
> >    # Other directives here
> >    </VirtualHost>
> >
> > (this was from http://httpd.apache.org/docs-2.0/vhosts/examples.html)
> >
> > name_checks:
> >
> > #grep vh  /etc/hosts
> > 10.0.0.11       www.example.com         vh
> > 10.0.0.11       www.example1.com        vh1
> > 10.0.0.11       www.example2.com        vh2
> > #ping -c1 vh
> > PING www.example.com (10.0.0.11): 56 data bytes
> > 64 bytes from 10.0.0.11: icmp_seq=0 ttl=255 time=0.1 ms
> >
> > --- www.example.com ping statistics ---
> > 1 packets transmitted, 1 packets received, 0% packet loss
> > round-trip min/avg/max = 0.1/0.1/0.1 ms
> > #ping -c1 vh1
> > PING www.example1.com (10.0.0.11): 56 data bytes
> > 64 bytes from 10.0.0.11: icmp_seq=0 ttl=255 time=0.1 ms
> >
> > --- www.example1.com ping statistics ---
> > 1 packets transmitted, 1 packets received, 0% packet loss
> > round-trip min/avg/max = 0.1/0.1/0.1 ms
> > #ping -c1 vh2
> > PING www.example2.com (10.0.0.11): 56 data bytes
> > 64 bytes from 10.0.0.11: icmp_seq=0 ttl=255 time=0.1 ms
> >
> > --- www.example2.com ping statistics ---
> > 1 packets transmitted, 1 packets received, 0% packet loss
> > round-trip min/avg/max = 0.1/0.1/0.1 ms
> >
> >
> > have you any idea whats wrong?
> >
> > thx
> > toby
>
> ---------------------------------------------------------------------
> 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