You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Simona D'Ambrosio <si...@adria-web.com> on 2003/01/07 14:48:07 UTC

[users@httpd] problem...

Hi everybody!
I have got a server running slack8.1 with apache 1.3.27.
I only had one virtualhost configured until today. I had to add a second
one, but when I enter the web address on a browser I can only see the first
vistrualhost. If I turn them, I see the first of them even if I ask for the
second.
Can someone help me?
Thank you
Simona





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


Re: [users@httpd] problem...

Posted by Simona D'Ambrosio <si...@adria-web.com>.
I missed one thing. The second block is the same as the first, but with
www.seconddomain.com.
Simona



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


Re: [users@httpd] problem...

Posted by software <so...@polin.it>.
Uhmmm,
I'm not sure, but

did you create the directory /var/www/htdocs/seconddomain.com ?

also,
did you create a directory block for that dir ?

, Andrea

p.s.
Add before the first VirtualBlock

NameVirtualHost ip_address

----- Original Message -----
From: "Simona D'Ambrosio" <si...@adria-web.com>
To: <us...@httpd.apache.org>
Sent: Tuesday, January 07, 2003 3:08 PM
Subject: Re: [users@httpd] problem...


> Here is the block. I checked the error_log file and I see that when I ask
> for http://www.firstdomain.com everything is right. When I ask for
> http://www.seconddomain.com the browser shows the first domain.
>
> <VirtualHost ip_address>
>         DocumentRoot /var/www/htdocs/firstdomain.com
>         ServerName www.firstdomain.com
>         ServerPath /firstdomain.com/
>         ServerAlias *.firstdomain.com
> </VirtualHost>
>
> Thank you
> Simona
>
> ----- Original Message -----
> From: "software" <so...@polin.it>
> To: <us...@httpd.apache.org>
> Sent: Tuesday, January 07, 2003 2:49 PM
> Subject: Re: [users@httpd] problem...
>
>
> > Hi,
> > could you post your two VirtualHost blocks ?
> >
> > Andrea
>
>
>
> ---------------------------------------------------------------------
> 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


Re: [users@httpd] problem...

Posted by Simona D'Ambrosio <si...@adria-web.com>.
Here is the block. I checked the error_log file and I see that when I ask
for http://www.firstdomain.com everything is right. When I ask for
http://www.seconddomain.com the browser shows the first domain.

<VirtualHost ip_address>
        DocumentRoot /var/www/htdocs/firstdomain.com
        ServerName www.firstdomain.com
        ServerPath /firstdomain.com/
        ServerAlias *.firstdomain.com
</VirtualHost>

Thank you
Simona

----- Original Message -----
From: "software" <so...@polin.it>
To: <us...@httpd.apache.org>
Sent: Tuesday, January 07, 2003 2:49 PM
Subject: Re: [users@httpd] problem...


> Hi,
> could you post your two VirtualHost blocks ?
>
> Andrea



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


Re: [users@httpd] problem...

Posted by software <so...@polin.it>.
Hi,
could you post your two VirtualHost blocks ?

Andrea

----- Original Message -----
From: "Simona D'Ambrosio" <si...@adria-web.com>
To: <us...@httpd.apache.org>
Sent: Tuesday, January 07, 2003 2:48 PM
Subject: [users@httpd] problem...


> Hi everybody!
> I have got a server running slack8.1 with apache 1.3.27.
> I only had one virtualhost configured until today. I had to add a second
> one, but when I enter the web address on a browser I can only see the
first
> vistrualhost. If I turn them, I see the first of them even if I ask for
the
> second.
> Can someone help me?
> Thank you
> Simona
>
>
>
>
>
> ---------------------------------------------------------------------
> 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


Re: [users@httpd] problem...

Posted by Aman Raheja <am...@netscape.net>.
It'll be easier to point out what's wrong if you could show the 
configuration lines for VH.
Regards
Aman


simona@adria-web.com wrote:

>Hi everybody!
>I have got a server running slack8.1 with apache 1.3.27.
>I only had one virtualhost configured until today. I had to add a second
>one, but when I enter the web address on a browser I can only see the first
>vistrualhost. If I turn them, I see the first of them even if I ask for the
>second.
>Can someone help me?
>Thank you
>Simona
>
>
>
>
>
>---------------------------------------------------------------------
>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
>
>  
>

-- 
Your favorite stores, helpful shopping tools and great gift ideas. 
Experience the convenience of buying online with Shop@Netscape! 
http://shopnow.netscape.com/



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


Re: [users@httpd] problem...

Posted by Simona D'Ambrosio <si...@adria-web.com>.
I didn't find any NameServer statement in httpd.conf....

----- Original Message ----- 
From: "Jonathan Laberge" <jl...@redboxstudios.com>
To: <us...@httpd.apache.org>
Sent: Tuesday, January 07, 2003 2:55 PM
Subject: Re: [users@httpd] problem...


On 1/7/03 8:48 AM, "Simona D'Ambrosio" <si...@adria-web.com> wrote:
Did you check your apache logs?
In /var/logs.

Do you have a NameServer statement in your httpd.conf?

Could you post the httpd.conf where your VirtualHosts are?



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


Re: [users@httpd] problem...

Posted by Jonathan Laberge <jl...@redboxstudios.com>.
On 1/7/03 8:48 AM, "Simona D'Ambrosio" <si...@adria-web.com> wrote:
Did you check your apache logs?
In /var/logs.

Do you have a NameServer statement in your httpd.conf?

Could you post the httpd.conf where your VirtualHosts are?

> Hi everybody!
> I have got a server running slack8.1 with apache 1.3.27.
> I only had one virtualhost configured until today. I had to add a second
> one, but when I enter the web address on a browser I can only see the first
> vistrualhost. If I turn them, I see the first of them even if I ask for the
> second.
> Can someone help me?
> Thank you
> Simona
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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

-- 
Conception, art visuel, multimedia et internet

Jonathan Laberge
jlaberge@redboxstudios.com

Les Studios RedBox inc.
9643 boul. LaSalle
LaSalle (Québec)
Canada H8R 2N7

www.redboxstudios.com

514 368 3962 bur/off
514 368 9212 tel/fax
514 865 2554 cell/mob



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