Modifications: etc/nginx/site.d/lhc-www/site.conf - Les fichiers
[lhc/ateliers.git] / etc / nginx / site.d / lhc-www / site.conf
1 server_name
2 www.heureux-cyclage.org;
3 root /home/www/data/lhc-www/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:/run/php5/fpm/lhc_www;
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