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