You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Marc MENDEZ <cn...@yahoo.fr> on 2006/08/08 11:25:32 UTC

[users@httpd] Access to IP address

Hi,

I have several virtual hosts associated to a single IP.
Unfortunately, when I connect to http://the_single_IP, I get one of my 
website !

How can I prevent this ?

Thanks for your help ! 


	

	
		
___________________________________________________________________________ 
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! 
Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. 
http://fr.answers.yahoo.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] Access to IP address

Posted by Marc MENDEZ <cn...@yahoo.fr>.
Yes, each virtual server has its own servername (otherwise, I could not map 
several domain name on the same IP)

The trouble was (was, 'cause now I solved it) that if I use the IP address 
instead of a name, the first virtual host appeared.

The solution is to put a "fake" virtual host as first in the conf file ! An 
it works

----- Original Message ----- 
From: "Steve Swift" <st...@gmail.com>
To: <us...@httpd.apache.org>
Sent: Tuesday, August 08, 2006 1:31 PM
Subject: Re: [users@httpd] Access to IP address


Each virtual host has (or certainly *should* have) a distinct servername.
You get to the virtual hosts by going to http://servername/

If this doesn't work it might be a problem with your browser, but it would
have to be very old to cause such a problem!

On 08/08/06, Marc MENDEZ <cn...@yahoo.fr> wrote:
>
> Hi,
>
> I have several virtual hosts associated to a single IP.
> Unfortunately, when I connect to http://the_single_IP, I get one of my
> website !
>
> How can I prevent this ?
>
> Thanks for your help !
>
>
>
>
>
>
>
> ___________________________________________________________________________
> Découvrez un nouveau moyen de poser toutes vos questions quelque soit le
> sujet !
> Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et
> vos expériences.
> http://fr.answers.yahoo.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
>
>


-- 
Steve Swift
http://www.swiftys.org.uk


	

	
		
___________________________________________________________________________ 
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! 
Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. 
http://fr.answers.yahoo.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] Access to IP address

Posted by Steve Swift <st...@gmail.com>.
Each virtual host has (or certainly *should* have) a distinct servername.
You get to the virtual hosts by going to http://servername/

If this doesn't work it might be a problem with your browser, but it would
have to be very old to cause such a problem!

On 08/08/06, Marc MENDEZ <cn...@yahoo.fr> wrote:
>
> Hi,
>
> I have several virtual hosts associated to a single IP.
> Unfortunately, when I connect to http://the_single_IP, I get one of my
> website !
>
> How can I prevent this ?
>
> Thanks for your help !
>
>
>
>
>
>
>
> ___________________________________________________________________________
> Découvrez un nouveau moyen de poser toutes vos questions quelque soit le
> sujet !
> Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et
> vos expériences.
> http://fr.answers.yahoo.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
>
>


-- 
Steve Swift
http://www.swiftys.org.uk