Ajout : vm_hosted : lhc-remorque .
[lhc/ateliers.git] / etc / nginx / site.d / lhc-remorque / site.conf
diff --git a/etc/nginx/site.d/lhc-remorque/site.conf b/etc/nginx/site.d/lhc-remorque/site.conf
new file mode 100644 (file)
index 0000000..5d0f79c
--- /dev/null
@@ -0,0 +1,24 @@
+server_name remorque.heureux-cyclage.org;
+
+client_body_buffer_size 8k;
+client_max_body_size 10m;
+location / {
+       try_files $uri $uri/index.xhtml = 404;
+ }
+location ~* ^.+.(css|gif|html|ico|jpeg|js|jpg|png|txt|xml)$ {
+       access_log off;
+       expires 30d;
+       log_not_found off;
+ }
+location ~ /\. {
+       access_log off;
+       deny all;
+       log_not_found off;
+ }
+location /cgi/ikiwiki.cgi {
+       include /etc/nginx/conf.d/fastcgi.conf;
+       fastcgi_index cgi/ikiwiki.cgi;
+       fastcgi_pass unix:/run/spawn-fcgi/lhc-remorque;
+ }
+
+# vim: ft=sh