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;
}
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