d53fd3cda2adb491982428f53c462718a9832061
[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 try_files $uri $uri/ @rewrite;
11 }
12
13 location @rewrite {
14 rewrite ^/(.*)$ /index.php?title=$1&$args;
15 }
16
17 location ~ \.php$ {
18 include /etc/nginx/conf.d/fastcgi.conf;
19 fastcgi_index index.php ;
20 fastcgi_param REDIRECT_STATUS 200;
21 fastcgi_split_path_info ^(.+\.php)(/.+)$;
22
23 fastcgi_pass unix:/run/php5/fpm/lhc_wiklou;
24 }
25 location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
26 try_files $uri /index.php;
27 expires max;
28 log_not_found off;
29 }
30 # vim: ft=sh