Bonsoir,
Je viens vers vous , car j'aimerai avoir votre avis sur les virtualHosts.
En effet, je dois rediriger une adresse du style http
ex :http//www.lolo.delp.fr en http://www.lolo.du.fr
j'ai pensé au virtualHosts
A votre avis est-ce la bonne solution ?
j'ai déjà commencé a configurer apache en éditant httpd.conf et en ajoutant ceci
le site d'origine est accessible, http://www.lolo.delp.fr
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 <VirtualHost lolo.du.fr:80> ServerName lolo.du.fr # ServerAlias localhost ServerAdmin webmaster@lolo.du.fr DocumentRoot /var/www/html/Sitelolo/ DirectoryIndex index.html index.php index.htmls index.htm index.php <Directory "/var/www/html/Sitelolo/"> #AllowOverride FileInfo #Options Indexes AllowOverride FileInfo Allow from all </Directory> ErrorLog "logs/lolo.du.fr-error_log" LogFormat "%h %l %u %t \"%r\" %>s %b" common CustomLog "logs/lolo.du.fr_log" common </VirtualHost>
le vhost n'est pas accessible http://www.lolo.du.fr
j'a rajouté dans /etc/host la ligne,
127.0.0.1 lolodelp.fr lolodelp localhost.localdomain localhost lolo.delp.fr lolo.du.fr
mais ca ne fonctionne pas !!
Ma balise VirtualHost est-elle correcte ?
Merci d'avance
Partager