Ajout : site cyclocamp.heureux-cyclage.org .
[lhc/ateliers.git] / etc / nginx / site.d / cyclocamp-www / site.conf
diff --git a/etc/nginx/site.d/cyclocamp-www/site.conf b/etc/nginx/site.d/cyclocamp-www/site.conf
new file mode 100644 (file)
index 0000000..1ddfc83
--- /dev/null
@@ -0,0 +1,24 @@
+server_name
+ cyclocamp.heureux-cyclage.org
+ www.cyclocamp.org
+ cyclocamp.org;
+
+location / {
+       index index.html index.htm index.php;
+ }
+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 ~ ^/2013-printemps/ {
+       auth_basic "ni dieu, ni maitre, ni moteur";
+       auth_basic_user_file /home/www/pub/cyclocamp-www/2013-printemps/.htpasswd;
+ }
+
+# vim: ft=sh