Ajout : etc/nginx/site.d/lhc-wiklou/http.conf
[lhc/ateliers.git] / etc / nginx / site.d / lhc-wiklou / site.conf
1 server_name
2 wiklou.heureux-cyclage.org
3 wiklou.org;
4 index index.php;
5
6 client_body_buffer_size 8k;
7 client_max_body_size 10m;
8
9 location / {
10 index index.html index.htm index.php;
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_wiklou;
19 }
20 location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
21 try_files $uri /index.php;
22 expires max;
23 log_not_found off;
24 }
25 # vim: ft=sh