Modifications : etc/nsd3/zone.d/ptitvelo.net.zone.m4
[lhc/ateliers.git] / etc / nginx / site.d / ptitvelo-www / site.conf
index 20bb326..9514137 100644 (file)
@@ -1,5 +1,6 @@
 server_name
     ptitvelo.heureux-cyclage.org
+    devel.ptitvelo.net
     www.ptitvelo.net
     ptitvelo.net;
 root /home/www/data/ptitvelo-www/www;
@@ -19,4 +20,10 @@ location ~ \.php$ {
 
        fastcgi_pass unix:/run/php5/fpm/ptitvelo_www;
 }
+error_page 404 = @spip;
+
+location @spip {
+       rewrite ^/(.*)(\.html)?$  /spip.php?url_propre=$1&$args last;
+}
+
 # vim: ft=sh