From: Sébastien CHAZALLET Date: Mon, 29 Oct 2012 10:33:44 +0000 (+0100) Subject: Configuration du serveur X-Git-Url: http://git.inspyration.org/?p=zf2.biz%2Fgalerie.git;a=commitdiff_plain;h=11f416fd595920a9cc89a5a938195d906d8f4ebc Configuration du serveur --- diff --git a/server_config/site.alias b/server_config/site.alias new file mode 100644 index 0000000..f3adcf0 --- /dev/null +++ b/server_config/site.alias @@ -0,0 +1,16 @@ +Alias /appblanche /var/git/zf2biz/application-blanche/public + + + Order deny,allow + Allow from all + + AllowOverride None + + RewriteEngine On + RewriteCond %{REQUEST_FILENAME} -s [OR] + RewriteCond %{REQUEST_FILENAME} -l [OR] + RewriteCond %{REQUEST_FILENAME} -d + RewriteBase /bookzf2 + RewriteRule ^.*$ - [NC,L] + RewriteRule !\.(js|ico|txt|gif|jpg|png|css)$ index.php [NC,L] + diff --git a/server_config/site.vhost b/server_config/site.vhost new file mode 100644 index 0000000..9f3a510 --- /dev/null +++ b/server_config/site.vhost @@ -0,0 +1,20 @@ + + ServerName appblanche.local + DocumentRoot /var/git/zf2biz/application-blanche/public + + SetEnv APPLICATION_ENV "development" + + + Order deny,allow + Allow from all + + AllowOverride None + + + RewriteEngine On + RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} -s [OR] + RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} -l [OR] + RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} -d + RewriteRule ^.*$ - [NC,L] + RewriteRule ^.*$ /index.php [NC,L] +