From 11f416fd595920a9cc89a5a938195d906d8f4ebc Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20CHAZALLET?= Date: Mon, 29 Oct 2012 11:33:44 +0100 Subject: [PATCH] Configuration du serveur --- server_config/site.alias | 16 ++++++++++++++++ server_config/site.vhost | 20 ++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 server_config/site.alias create mode 100644 server_config/site.vhost 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] + -- 1.7.10.4