[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [linux] xxx.toto.com
> lorque un surfeur tapera http://xxx.toto.com , je voudrais que apache
> recupere le fichier xxx.htm se trouvant dans un repertoire qui contient tous
> les xxx.htm et le conside comme le index.htm , ainsi le surfeur verra
> toujours l adresse http://xxx.toto.com
>
> est ce possible ??
Bien sur ;-)
Extrait de la doc d'Apache (dans virtual hosting / mass virtual hosting):
- - - -
Simple dynamic virtual hosts
This extract from httpd.conf implements the virtual host arrangement outlined in the Motivation
section above,
but in a generic fashion using mod_vhost_alias.
# get the server name from the Host: header
UseCanonicalName Off
# this log format can be split per-virtual-host based on the first field
LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
CustomLog logs/access_log vcommon
# include the server name in the filenames used to satisfy requests
VirtualDocumentRoot /www/hosts/%0/docs
VirtualScriptAlias /www/hosts/%0/cgi-bin
This configuration can be changed into an IP-based virtual hosting solution by just turning
UseCanonicalName
Off into UseCanonicalName DNS. The server name that is inserted into the filename is then derived
from the IP
address of the virtual host.
- - - -
--
-o) / Pascal Bleser ATOS Origin|
/\\ \ e-Business Platform Aachen, Germany|
_\_v \<guru@linuxbe.org> <pbleser@atosorigin.com>|
---------------------------------------------------|
rm -rf /bin/laden || cat usa >/dev/null :
---------------------------------------------------'
[ Soyez précis dans vos sujets svp afin de déterminer directement ]
[ le type de demande... ]
[ Pour vous (dés)inscrire, aller sur http://unixtech.be/ml.php ]
[ Archives de la mailing list: http://archives.unixtech.be/linux/ ]
[ http://unixtech.be Contact: listmaster@unixtech.be ]