Ajout : lhc-www/http.conf
[lhc/ateliers.git] / etc / nginx / site.d / lhc-www / site.conf
index cac567d..da1e35e 100644 (file)
@@ -1,7 +1,5 @@
 server_name
-    www.heureux-cyclage.org
-    heureux-cyclage.org
-    devel.heureux-cyclage.org;
+    www.heureux-cyclage.org;
 root /home/www/data/lhc-www/www;
 index index.php;
 
@@ -19,4 +17,9 @@ location ~ \.php$ {
 
        fastcgi_pass unix:/run/php5/fpm/lhc_www;
 }
+error_page 404 = @spip;
+
+location @spip {
+       rewrite ^/(.*)(\.html)?$  /spip.php?url_propre=$1&$args last;
+}
 # vim: ft=sh