X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=etc%2Fnginx%2Fsite.d%2Fptitvelo-www%2Fsite.conf;h=c0751b17af949f9fc0d16b22a0a25720a81815b1;hb=HEAD;hp=7e89d311e1e74122bf4be36fe8784bc0d8d87eac;hpb=9a4c93fc839cd4aa298ec8b8ccce58714d07f277;p=lhc%2Fateliers.git diff --git a/etc/nginx/site.d/ptitvelo-www/site.conf b/etc/nginx/site.d/ptitvelo-www/site.conf index 7e89d31..c0751b1 100644 --- a/etc/nginx/site.d/ptitvelo-www/site.conf +++ b/etc/nginx/site.d/ptitvelo-www/site.conf @@ -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