fabien vincent | 3 Sep 20:01

Apache et virtual host

Bonjour,

Je voudrais configurer mon serveur web puisse faire la différence  
entre deux  sous domaines :
Coco.nomdomaine.fr dans le dossier /home/coco/html
Et
Nomsomaine.fr dans /var/www.

Je seche un peu.

A+
mouss | 3 Sep 21:42
Favicon

Re: Apache et virtual host

fabien vincent wrote:
> Bonjour,
> 
> Je voudrais configurer mon serveur web puisse faire la différence entre 
> deux  sous domaines :
> Coco.nomdomaine.fr dans le dossier /home/coco/html
> Et
> Nomsomaine.fr dans /var/www.
> 
> Je seche un peu.

T'as pas cherché longtemps, ou alors t'es faché avec cousin google :)

http://httpd.apache.org/docs/2.2/fr/vhosts/examples.html
http://www.nuxwin.com/article-18-tutorial-serveur-web-apache-2-virtualhost
...

NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.example.com
DocumentRoot /var/www/www.example.com
...
</VirtualHost>

<VirtualHost *:80>
ServerName www.example.org
DocumentRoot /var/www/www.example.org
...
</VirtualHost>
...
(Continue reading)


Gmane