Correction : nginx : échappement regexp.
[lhc/ateliers.git] / etc / nginx / site.d / cyclo-www / site.conf
index 308d38f..d8bbcc8 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,7 +16,7 @@ location ~ /\. {
        deny all;
        log_not_found off;
  }
- location ~ \.php(|/.+)$ {
+location ~ \.php(|/.+)$ {
        include /etc/nginx/conf.d/fastcgi.conf;
        set $no_cache "0";
        if ($request_method !~ ^(GET|HEAD)$) {