X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=etc%2Fnginx%2Fsite.d%2Flhc-www%2Fsite.conf;h=da1e35ea723c58771049c4a8d99613f7864ff347;hb=0bd0862e5fb842c88338b5b039379f4038587806;hp=cac567dfe8347da6ae5d99ec22dd8e7f91cd4288;hpb=2849d7aa51bbde49d9069ac0dbd37101df703f7b;p=lhc%2Fateliers.git diff --git a/etc/nginx/site.d/lhc-www/site.conf b/etc/nginx/site.d/lhc-www/site.conf index cac567d..da1e35e 100644 --- a/etc/nginx/site.d/lhc-www/site.conf +++ b/etc/nginx/site.d/lhc-www/site.conf @@ -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