lundi 26 mai 2014

VHost Apache 2.4 pour Symfony2

Des différences notables, qui cassent la rétro-compatibilité, ont été instaurées dans Apache 2.4. Donc un VirtualHost Apache 2.2 n'est pas compatible avec un VirtualHost Apache 2.4.

Voilà un exemple basique de VirtualHost pour Apache 2.4 et Symfony2 :
<VirtualHost *:80> ServerName sf2.loc ServerAdmin webmaster@localhost DocumentRoot /foo/bar/sf2/web <Directory /foo/bar/sf2/web> AllowOverride All Require all granted Options -Indexes </Directory> ErrorLog ${APACHE_LOG_DIR}/sf2-error.log CustomLog ${APACHE_LOG_DIR}/sf2-access.log combined </VirtualHost>

Aucun commentaire:

Enregistrer un commentaire