5d0f79c6cc9b954e28210e110aec856a4de2f9b2
[lhc/ateliers.git] / etc / nginx / site.d / lhc-remorque / site.conf
1 server_name remorque.heureux-cyclage.org;
2
3 client_body_buffer_size 8k;
4 client_max_body_size 10m;
5 location / {
6 try_files $uri $uri/index.xhtml = 404;
7 }
8 location ~* ^.+.(css|gif|html|ico|jpeg|js|jpg|png|txt|xml)$ {
9 access_log off;
10 expires 30d;
11 log_not_found off;
12 }
13 location ~ /\. {
14 access_log off;
15 deny all;
16 log_not_found off;
17 }
18 location /cgi/ikiwiki.cgi {
19 include /etc/nginx/conf.d/fastcgi.conf;
20 fastcgi_index cgi/ikiwiki.cgi;
21 fastcgi_pass unix:/run/spawn-fcgi/lhc-remorque;
22 }
23
24 # vim: ft=sh