[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: VirtualHost avec IP dynamique



On Mon, 8 Dec 2003 03:03:41 +0100 (CET)
fabien <fab@dournac.org> wrote:

> ServerName toto1.org
> DocumentRoot /var/www
> 
> BindAddress *
> NameVirtualHost *
> 
> <VirtualHost *>
>     ServerAdmin root@toto1.org
>     DocumentRoot /var/toto2
>     ServerName toto2.org
> </VirtualHost>

Et en mettant toto2.org à la place de "*" dans virtual host ?

> finalement, j'ai trouvé le message suivant sur
> http://dsb3.com/dave/dynipvhost.html:
> 
> "After much experimentation I determine that you simply can't do name
> based virtual hosting on a dynamic IP. It's not possible.

C'est mieux d'avoir une IP par domaine mais avec les browsers récents
ça doit marcher aussi avec le nom du site.

> "The caveat is a
> dynamic reconfiguration and restart of apache every time the IP changes
> but this does not seem acceptable. With this in mind, we stop trying to
> virtual host on the dynamic IP and start trying to fool apache into doing
> something else for us".

Je ne vois pas pourquoi mais ça ne doit pas être un problème de recharger
la configuration quand l'IP change non ?

Alain



Reply to: