Correction : nginx : location : l'ordre importe grave !
[lhc/ateliers.git] / etc / nginx / site.d / cyclocamp-www / site.conf
index 2e7e630..77a253a 100644 (file)
@@ -3,19 +3,14 @@ server_name
  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 / {
+       index index.html index.htm index.php;
+ }
 location ~ ^/julm/public/ {
        auth_basic off;
  }
@@ -23,5 +18,10 @@ location ~ ^/julm/ {
        auth_basic "ni dieu, ni maitre, ni moteur";
        auth_basic_user_file /home/www/data/cyclocamp-www/julm/.htpasswd;
  }
+location ~* ^.+\.(css|gif|html|ico|jpeg|js|jpg|png|txt|xml)$ {
+       access_log off;
+       expires 30d;
+       log_not_found off;
+ }
 
 # vim: ft=sh