X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=srv%2Fateliers%2Fetc%2Fnginx%2Forg%2Fheureux-cyclage%2Fclavette-lyon%2Fcommon.conf.m4;fp=srv%2Fateliers%2Fetc%2Fnginx%2Forg%2Fheureux-cyclage%2Fclavette-lyon%2Fcommon.conf.m4;h=350bb678c4b144cd2968dafd0e2dbd5a395c4d84;hb=08657aab7c6736038d9b3256f7d2e31c214beef5;hp=0000000000000000000000000000000000000000;hpb=377bc1616e87fa7061ca0708cd4a0831c54c6f1a;p=lhc%2Fadmin.git diff --git a/srv/ateliers/etc/nginx/org/heureux-cyclage/clavette-lyon/common.conf.m4 b/srv/ateliers/etc/nginx/org/heureux-cyclage/clavette-lyon/common.conf.m4 new file mode 100644 index 0000000..350bb67 --- /dev/null +++ b/srv/ateliers/etc/nginx/org/heureux-cyclage/clavette-lyon/common.conf.m4 @@ -0,0 +1,28 @@ +server_name + clavette-lyon.heureux-cyclage.org; +root /home/www/data/org/heureux-cyclage/clavette-lyon/www/; +index index.php; + +client_body_buffer_size 8k; +client_max_body_size 10m; + +location ~^/(tmp|config)/{ + return 403; +} +location ~ \.html$ { + log_not_found off; +} +location ~ \.php$ { + include /etc/nginx/conf.d/fastcgi.conf; + fastcgi_index index.php ; + fastcgi_param REDIRECT_STATUS 200; + fastcgi_split_path_info ^(.+\.php)(/.+)$; + + fastcgi_pass unix:/run/php5/fpm/lhc_clav_lyon; +} +error_page 404 = @spip; + +location @spip { + rewrite ^/(.*)(\.html)?$ /spip.php?url_propre=$1&$args last; +} +# vim: ft=sh