Ajout : etc/nginx/site.d/veloc-www
[lhc/ateliers.git] / etc / nginx / site.d / veloc-www / site.conf
diff --git a/etc/nginx/site.d/veloc-www/site.conf b/etc/nginx/site.d/veloc-www/site.conf
new file mode 100644 (file)
index 0000000..4d58072
--- /dev/null
@@ -0,0 +1,27 @@
+server_name
+    devel.velocampus.net
+    velocampus.heureux-cyclage.org
+    www.velocampus.net;
+root /home/www/data/veloc-www/www;
+index index.php;
+
+client_body_buffer_size 8k;
+client_max_body_size 10m;
+
+location ~^/(tmp|config)/{
+       return 403;
+}
+location ~ \.php$ {
+       include /etc/nginx/conf.d/fastcgi.conf;
+       fastcgi_index  index.php ;
+       fastcgi_param REDIRECT_STATUS 200;
+       fastcgi_split_path_info ^(.+\.php)(/.+)$;
+
+       fastcgi_pass unix:/run/php5/fpm/veloc_www;
+}
+error_page 404 = @spip;
+
+location @spip {
+       rewrite ^/(.*)(\.html)?$  /spip.php?url_propre=$1&$args last;
+}
+# vim: ft=sh