1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
| <VirtualHost 192.168.1.6:80>
ServerName ton.nom.de.domaine
ServerAdmin mail@mail.com
# Le chemon vers ton projet (pour Zend, si ton index.php est dans public, oublie pas de rajouter ce dossier dans le path).
DocumentRoot /le/chemin/vers/ton/appli/
# Si tu veux faire des logs...
ErrorLog /var/log/apache2/project_name_log
CustomLog /var/log/apache2/project_name_log combined
# Permet de définir le fichier index.
DirectoryIndex default.htm index.php default.cfm index.htm index.cgi index.cfm
Options -Indexes
<Directory /le/chemin/vers/ton/appli/>
allow from all
AllowOverride All
</Directory>
<Location />
RewriteEngine on
# Regles de reecriture pour Zend Framework
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteRule !\.(js|ico|gif|jpg|png|css|zip|gz|html|xml)$ index.php [L]
</Location>
SetEnv APPLICATION_ENV grenoble
</VirtualHost> |
Partager