Correction : nginx : location : l'ordre importe grave !
[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 access_log off;
8 deny all;
9 log_not_found off;
10 }
11 location / {
12 index index.html index.htm index.php;
13 }
14 location ~ ^/julm/public/ {
15 auth_basic off;
16 }
17 location ~ ^/julm/ {
18 auth_basic "ni dieu, ni maitre, ni moteur";
19 auth_basic_user_file /home/www/data/cyclocamp-www/julm/.htpasswd;
20 }
21 location ~* ^.+\.(css|gif|html|ico|jpeg|js|jpg|png|txt|xml)$ {
22 access_log off;
23 expires 30d;
24 log_not_found off;
25 }
26
27 # vim: ft=sh