Corrections : sys/php5/fpm/org/heureux-cyclage/clavette-lyon/socket
[lhc/admin.git] / srv / ateliers / etc / nginx / org / heureux-cyclage / clavette-lyon / common.conf.m4
1 server_name
2 clavette-lyon.heureux-cyclage.org;
3 root /home/www/data/org/heureux-cyclage/clavette-lyon/www/;
4 index index.php;
5
6 client_body_buffer_size 8k;
7 client_max_body_size 10m;
8
9 location ~^/(tmp|config)/{
10 return 403;
11 }
12 location ~ \.html$ {
13 log_not_found off;
14 }
15 location ~ \.php$ {
16 include /etc/nginx/conf.d/fastcgi.conf;
17 fastcgi_index index.php ;
18 fastcgi_param REDIRECT_STATUS 200;
19 fastcgi_split_path_info ^(.+\.php)(/.+)$;
20
21 fastcgi_pass unix:CAT(sys/php5/fpm/org/heureux-cyclage/clavette-lyon/socket);
22 }
23 error_page 404 = @spip;
24
25 location @spip {
26 rewrite ^/(.*)(\.html)?$ /spip.php?url_propre=$1&$args last;
27 }
28 # vim: ft=sh