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