Ajout : lhc-www/http.conf
[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 ~ \.php$ {
13 include /etc/nginx/conf.d/fastcgi.conf;
14 fastcgi_index index.php ;
15 fastcgi_param REDIRECT_STATUS 200;
16 fastcgi_split_path_info ^(.+\.php)(/.+)$;
17
18 fastcgi_pass unix:/run/php5/fpm/lhc_www;
19 }
20 error_page 404 = @spip;
21
22 location @spip {
23 rewrite ^/(.*)(\.html)?$ /spip.php?url_propre=$1&$args last;
24 }
25 # vim: ft=sh