Configuration apache2 VirtualHost
Bonjour , déjà un moment que je rame avec apache2.
Je tourne sur mac Osx Lion j'ai installé symfony 2 dans mon dossier "/Users/username/Sites/symfony/web/"
Tous fonctionne correctement, mais j'ai un soucis de page 404 quand je créer un virtualhost.
Dans mon fichier "/etc/apache2/httpd.conf", j'ai décommenté la ligne pour inclure le fichier httpd-vhosts.conf.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
NameVirtualHost *:80
<VirtualHost *:80>
ServerName localhost
DocumentRoot "/Library/WebServer/Documents/"
<Directory "/Library/WebServer/Documents/">
Options Indexes FollowSymLinks Multiviews
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName symfony.dev
DocumentRoot "/Users/username/Sites/symfony/web/"
ErrorLog "/private/var/log/apache2/symfony.dev-error_log"
<Directory "/Users/username/Sites/symfony/web/">
Options Indexes FollowSymLinks
AllowOverride all // page 404 quand je met ALL
</Directory>
</VirtualHost> |
Dans mon fichier hosts 127.0.0.1 symfony.dev
Le problème est quand je met la directive AllowOverride a ALL qu'il me balance une erreur 404 et si je met None j'ai bien accès, mais l'écriture d'url ne fonctionne pas biensur.