PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.info.servers.unix > virtual domain
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.info.servers.unix Web servers for UNIX platforms.

virtual domain

Réponse
 
LinkBack Outils de la discussion
Vieux 10/06/2005, 12h36   #1
amit k
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut virtual domain

hi,

can any one give me steps to configure a virtual server on an exisitng
webserver running apache .

what i have done is :

configured the existing network interface allready having an internal
address to support another one using ifconfig and it works fine.

now when i try to access the virtual site i still get the contents of
the existing site :-( any ideas.


in my httpd i have put as follows:

<VirtualHost xxx.xxx.xxx.xxx>
ServerAdmin webmaster@xxxx.net
DocumentRoot /home2/foo/baan
ServerName xxx.xxx.xxx.xxx
ErrorLog logs/xxx-error_log
CustomLog logs/xxx-acess_log common
</VirtualHost>

where xxx is the external ip address of the new domain.

Do i need to make anyother change anywhere else so that i can get the
virtual domain instead of the original one.

pls advice
TIA
amit
amitka@gmail.com

  Réponse avec citation
Vieux 12/06/2005, 01h19   #2
David Efflandt
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: virtual domain

On 10 Jun 2005 04:36:44 -0700, amit k <amit@billdesk.com> wrote:
> hi,
>
> can any one give me steps to configure a virtual server on an exisitng
> webserver running apache .
>
> what i have done is :
>
> configured the existing network interface allready having an internal
> address to support another one using ifconfig and it works fine.
>
> now when i try to access the virtual site i still get the contents of
> the existing site :-( any ideas.
>
>
> in my httpd i have put as follows:
>
><VirtualHost xxx.xxx.xxx.xxx>
> ServerAdmin webmaster@xxxx.net
> DocumentRoot /home2/foo/baan
> ServerName xxx.xxx.xxx.xxx
> ErrorLog logs/xxx-error_log
> CustomLog logs/xxx-acess_log common
></VirtualHost>
>
> where xxx is the external ip address of the new domain.


It is not clear how you have your network and routing configured or what
you mean by "external" ip (local LAN or internet). It could even be that
one IP answers for either IP, which might confuse other network testing.

If that "external" IP is not ON your server (ie, server has private IP),
then I do not think it will work as an IP based virtual host from outside
your network.

But without a hostname associated with the IP, I do not know how you would
get NameVirtualHost working either.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 11h31.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10008 seconds with 10 queries