Ajout : cyclocamp.org : julm/public/ .
[lhc/ateliers.git] / etc / nginx / site.d / cyclocamp-www / site.conf
1 server_name
2 cyclocamp.heureux-cyclage.org
3 www.cyclocamp.org
4 cyclocamp.org;
5
6 location / {
7 index index.html index.htm index.php;
8 }
9 location ~* ^.+\.(css|gif|html|ico|jpeg|js|jpg|png|txt|xml)$ {
10 access_log off;
11 expires 30d;
12 log_not_found off;
13 }
14 location ~ /\. {
15 access_log off;
16 deny all;
17 log_not_found off;
18 }
19 location ~ ^/julm/public/ {
20 auth_basic off;
21 }
22 location ~ ^/julm/ {
23 auth_basic "ni dieu, ni maitre, ni moteur";
24 auth_basic_user_file /home/www/data/cyclocamp-www/julm/.htpasswd;
25 }
26
27 # vim: ft=sh