Configuration du serveur
authorSébastien CHAZALLET <s.chazallet@gmail.com>
Mon, 29 Oct 2012 10:33:44 +0000 (11:33 +0100)
committerSébastien CHAZALLET <s.chazallet@gmail.com>
Mon, 29 Oct 2012 10:33:44 +0000 (11:33 +0100)
server_config/site.alias [new file with mode: 0644]
server_config/site.vhost [new file with mode: 0644]

diff --git a/server_config/site.alias b/server_config/site.alias
new file mode 100644 (file)
index 0000000..f3adcf0
--- /dev/null
@@ -0,0 +1,16 @@
+Alias /appblanche /var/git/zf2biz/application-blanche/public
+
+<Directory /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]
+</Directory>
diff --git a/server_config/site.vhost b/server_config/site.vhost
new file mode 100644 (file)
index 0000000..9f3a510
--- /dev/null
@@ -0,0 +1,20 @@
+<VirtualHost *:80>
+       ServerName appblanche.local
+       DocumentRoot /var/git/zf2biz/application-blanche/public
+
+       SetEnv APPLICATION_ENV "development"
+
+       <Directory /var/git/zf2biz/application-blanche/public>
+               Order deny,allow
+               Allow from all
+
+               AllowOverride None
+       </Directory>
+
+       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]
+</VirtualHost>