Correction : nginx : échappement regexp.
[lhc/ateliers.git] / etc / nginx / site.d / cyclocamp-www / site.conf
index dd3a20c..ddd94d5 100644 (file)
@@ -6,7 +6,7 @@ server_name
 location / {
        index index.html index.htm index.php;
  }
-location ~* ^.+.(css|gif|html|ico|jpeg|js|jpg|png|txt|xml)$ {
+location ~* ^.+\.(css|gif|html|ico|jpeg|js|jpg|png|txt|xml)$ {
        access_log off;
        expires 30d;
        log_not_found off;
@@ -16,9 +16,9 @@ location ~ /\. {
        deny all;
        log_not_found off;
  }
-location ~ ^/julm/2013-printemps/ {
+location ~ ^/julm/ {
        auth_basic "ni dieu, ni maitre, ni moteur";
-       auth_basic_user_file /home/www/pub/cyclocamp-www/julm/2013-printemps/.htpasswd;
+       auth_basic_user_file /home/www/data/cyclocamp-www/julm/.htpasswd;
  }
 
 # vim: ft=sh