Modification : nginx root configurable.
[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/ {
20 auth_basic "ni dieu, ni maitre, ni moteur";
21 auth_basic_user_file /home/www/data/cyclocamp-www/julm/.htpasswd;
22 }
23
24 # vim: ft=sh