X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=etc%2Fnginx%2Fsite.d%2Fcyclocamp-www%2Fsite.conf;fp=etc%2Fnginx%2Fsite.d%2Fcyclocamp-www%2Fsite.conf;h=1ddfc83042b6eccd672f772692f4481070f2b753;hp=0000000000000000000000000000000000000000;hb=18013c236945db2ca16f6a19aab7e67c3dcdfd9b;hpb=30394f9ae2672667021d4b075569af75e020cffa diff --git a/etc/nginx/site.d/cyclocamp-www/site.conf b/etc/nginx/site.d/cyclocamp-www/site.conf new file mode 100644 index 0000000..1ddfc83 --- /dev/null +++ b/etc/nginx/site.d/cyclocamp-www/site.conf @@ -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