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

Re: Apache, squid, et bind



Le lun 13/01/2003 à 02:05, Aurélien Le Provost a écrit :
> Salut
> 
> Le Lundi 13 Janvier 2003 01:37, Dominique Arpin a écrit :
> 
> > Configure ton virtual host comme ceci:
> > <virutal host   IP >
> > Servername nestor.clubinfo
> > ServerAlias   nestor
> >
> > et ton probleme sera regler.... du moin je pense bien :)
> 
> Voilà ce que j'ai ajouté à mon /etc/apache/http.conf :
> 
> ### Section 3: Virtual Hosts
> #
> # VirtualHost: If you want to maintain multiple domains/hostnames on 
> your
> # machine you can setup VirtualHost containers for them.
> # Please see the documentation at 
> <URL:http://www.apache.org/docs/vhosts/>
> # for further details before you try to setup virtual hosts.
> # You may use the command line option '-S' to verify your virtual host
> # configuration.
> 
> #
> # If you want to use name-based virtual hosts you need to define at
> # least one IP address (and port number) for them.
> #
> #NameVirtualHost 12.34.56.78:80
> #NameVirtualHost 192.168.0.15:80

NameVirtualHost *

> #
> # VirtualHost example:
> # Almost any Apache directive may go into a VirtualHost container.
> #
> #<VirtualHost ip.address.of.host.some_domain.com>
> #    ServerAdmin webmaster@host.some_domain.com
> #    DocumentRoot /www/docs/host.some_domain.com
> #    ServerName host.some_domain.com
> #    ErrorLog logs/host.some_domain.com-error.log
> #    CustomLog logs/host.some_domain.com-access.log common
> #</VirtualHost>
> 
> #<VirtualHost _default_:*>
> #</VirtualHost>
> 
> <VirtualHost 192.168.0.15>
> ServerAdmin     aurelien@nestor.clubinfo
> DocumentRoot    /www/nestor.clubinfo
> ServerName      nestor.clubinfo
> ServerAlias     nestor
> </VirtualHost>

<VirtualHost nestor.clubinfo>
	ServerAdmin	aurelien@nestor.clubinfo
	ServerName	nestor.clubinfo
	DocumentRoot	/www/nestor.clubinfo
	ErrorLog	/var/log/httpd/nestor.clubinfo-error.log
	CustomLog	/var/log/httpd/nestor.clubinfo-access.log common
</VirtualHost>

Je pense que ta directive ServerName générale indique "nestor" tout
court, ce qui explique le fait que la requête http://nestor/ fonctionne.

PS: la configuration de VirtualHost indiquée ci-dessus est dite
named-based: elle se base sur le FQDN et non sur l'adrese IP.
-- 
Raphaël Bordet
surcouf@linuxfr.net




Reply to: