Pages : 1
#1 Le 10/11/2007, à 19:25
- kaoul
[résolu][apache2] je n'arrive pas à faire un virtualhost
Bonjour,
Je souhaite tapper http://toto et arriver sur /var/www/toto
Mais pour l'instant, on arrive sur /var/www et si je fais :
a2dissite 000-default
On arrive sur une 404 :
The requested URL / was not found on this server.
Apache/2.2.3 (Ubuntu) Server at toto Port 80
Voici la configuration de mon virtualhost toto :
root@t60p:~# cat /etc/apache2/sites-enabled/toto
<VirtualHost 192.168.0.11:*>
ServerName toto
DocumentRoot /var/www/toto/
# Définition du répertoire racine du site toto
<Directory /var/www/toto/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
# RedirectMatch ^/$ /apache2-default/
</Directory>
ServerSignature On
</VirtualHost>
root@t60p:~# cat /etc/hosts
127.0.0.1 localhost toto
[...]
root@t60p:/etc/apache2/sites-enabled# tail /var/log/apache2/error.log
[...]
[Sat Nov 10 18:18:12 2007] [notice] caught SIGTERM, shutting down
[Sat Nov 10 18:18:22 2007] [notice] Apache/2.2.3 (Ubuntu) configured -- resuming normal operations
[Sat Nov 10 18:18:52 2007] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Sat Nov 10 18:18:52 2007] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Sat Nov 10 18:18:52 2007] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
Dernière modification par kaoul (Le 16/11/2007, à 16:13)
Mon entreprise de référencement ecommerce
Hors ligne
#2 Le 16/11/2007, à 16:10
- kaoul
Re : [résolu][apache2] je n'arrive pas à faire un virtualhost
<VirtualHost 192.168.0.11:*>
et
127.0.0.1 localhost toto
Voilà l'erreur, avec 127.0.0.1 partout, ça marche. Résolu.
Mon entreprise de référencement ecommerce
Hors ligne