[local/dovecot-user-add] ~correction champ from du courriel de bienvenu
[lhc/ateliers.git] / etc / nginx / site.d / ptitvelo-www / site.conf
index 7e89d31..c0751b1 100644 (file)
@@ -1,16 +1,13 @@
 server_name
     ptitvelo.heureux-cyclage.org
-    www.ptitvelo.net
-    ptitvelo.net;
+    devel.ptitvelo.net
+    www.ptitvelo.net;
 root /home/www/data/ptitvelo-www/www;
 index index.php;
 
 client_body_buffer_size 8k;
 client_max_body_size 10m;
 
-location / {
-       try_files $uri $uri/ /spip.php?q=$uri&$args;
-}
 location ~^/(tmp|config)/{
        return 403;
 }
@@ -22,4 +19,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