Configurer un virtual host
Bonjour je cherche à configurer un virtual host en local.
L'adresse de mon site en local est :
http://localhost/svn/punchline/trunk/web/
Je souhaite le rendre accessible par :
http://punchline pour certaines raisons..
Je fais comme ceci :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| NameVirtualHost *:80
<VirtualHost *:80>
ServerName punchline
DocumentRoot "C:\wamp\www\svn\punchline\trunk\web"
DirectoryIndex index.php
<Directory "C:\wamp\www\svn\punchline\trunk\web">
AllowOverride All
Allow from All
</Directory>
Alias /sf "C:\wamp\www\svn\punchline\trunk\lib\vendor\symfony\data\web\sf"
<Directory "C:\wamp\www\svn\punchline\trunk\lib\vendor\symfony\data\web\sf">
AllowOverride All
Allow from All
</Directory>
</VirtualHost> |
Et dans le fichier hosts
127.0.0.1 punchline
Mais quand dans mon navigateur je tape :
http://punchline
j'arrive sur la page d'accueil de wamp... -_-
J'ai redémarré c'est pareil..
Que faire !?
Merci