Config apache pour plusieurs projets symfony
Bonjour à tous,
Je souhaiterai savoir s'il y a une configuration spécial d'Apache pour gérer plusieurs projets Symfony.
Pour le moment ma configuration de virtualhost pour apache ne fonctionne que pour des sites n'utilisant pas symfony.
Ma config :
Apache/2.2.14 (Ubuntu)
PHP 5.3.2-1ubuntu4.2
Sf 1.4.6
Ma config d'apache :
guadeloupe :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
<VirtualHost *:80>
ServerName guadeloupe.fr
ServerAlias www.guadeloupe.fr
DocumentRoot "/var/www/guadeloupe/web"
DirectoryIndex index.php
<Directory "/var/www/guadeloupe/web">
AllowOverride All
Allow from All
</Directory>
Alias /sf /var/www/symfony-1.4.6/data/web/sf/
<Directory "/var/www/symfony-1.4.6/data/web/sf/">
AllowOverride All
Allow from All
</Directory>
</VirtualHost> |
Martinique:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
<VirtualHost *:80>
ServerName martinique.fr
ServerAlias www.martinique.fr
DocumentRoot "/var/www/martinique/web"
DirectoryIndex index.php
<Directory "/var/www/martinique/web">
AllowOverride All
Allow from All
</Directory>
Alias /sf /var/www/symfony-1.4.6/data/web/sf/
<Directory "/var/www/symfony-1.4.6/data/web/sf/">
AllowOverride All
Allow from All
</Directory>
</VirtualHost> |
Mon fichier Hosts :
127.0.0.1 localhost
127.0.0.1 guadeloupe.fr
127.0.0.1 martinique.fr
Merci d'avance.