Ajout : etc/nginx/site.d/lhc-wiklou
[lhc/ateliers.git] / etc / nginx / site.d / lhc-wiklou / site.conf
diff --git a/etc/nginx/site.d/lhc-wiklou/site.conf b/etc/nginx/site.d/lhc-wiklou/site.conf
new file mode 100644 (file)
index 0000000..7443e67
--- /dev/null
@@ -0,0 +1,22 @@
+server_name
+    devel.wiklou.org
+    wiklou.heureux-cyclage.org
+    wiklou.org
+    www.wiklou.org;
+index index.php;
+
+client_body_buffer_size 8k;
+client_max_body_size 10m;
+
+location / {
+       index index.html index.htm index.php;
+ }
+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/lhc_wiklou;
+}
+# vim: ft=sh