Browse Source

Update sendy.stpl

Alexandros Ioannides 5 years ago
parent
commit
f464f8a8a6
1 changed files with 6 additions and 9 deletions
  1. 6 9
      install/deb/templates/web/nginx/php-fpm/sendy.stpl

+ 6 - 9
install/deb/templates/web/nginx/php-fpm/sendy.stpl

@@ -18,7 +18,7 @@ server {
 
 
     include %home%/%user%/conf/web/%domain%/nginx.hsts.conf*;
     include %home%/%user%/conf/web/%domain%/nginx.hsts.conf*;
 
 
-     location = /favicon.ico {
+    location = /favicon.ico {
         log_not_found off;
         log_not_found off;
         access_log off;
         access_log off;
     }
     }
@@ -29,16 +29,12 @@ server {
         access_log off;
         access_log off;
     }
     }
 
 
-    location ~ /\.(?!well-known\/) { 
-       deny all; 
-       return 404;
-    }
-
-    location ~ /(readme.html|license.txt) {
+    location ~ /\.(?!well-known\/) {
         deny all;
         deny all;
+        return 404;
     }
     }
 
 
-    if (!-f $request_filename){
+    if (!-f $request_filename) {
         rewrite ^/([a-zA-Z0-9-]+)$ /$1.php last;
         rewrite ^/([a-zA-Z0-9-]+)$ /$1.php last;
     }
     }
 
 
@@ -46,6 +42,7 @@ server {
         try_files $uri $uri/ /index.php?$args;
         try_files $uri $uri/ /index.php?$args;
         location ~* ^.+\.(ogg|ogv|svg|svgz|swf|eot|otf|woff|woff2|mov|mp3|mp4|webm|flv|ttf|rss|atom|jpg|jpeg|gif|png|ico|bmp|mid|midi|wav|rtf|css|js|jar|pdf)$ {
         location ~* ^.+\.(ogg|ogv|svg|svgz|swf|eot|otf|woff|woff2|mov|mp3|mp4|webm|flv|ttf|rss|atom|jpg|jpeg|gif|png|ico|bmp|mid|midi|wav|rtf|css|js|jar|pdf)$ {
             expires 1d;
             expires 1d;
+            fastcgi_hide_header "Set-Cookie";
         }
         }
 
 
         location ~ [^/]\.php(/|$) {
         location ~ [^/]\.php(/|$) {
@@ -54,7 +51,7 @@ server {
             fastcgi_pass %backend_lsnr%;
             fastcgi_pass %backend_lsnr%;
             fastcgi_index index.php;
             fastcgi_index index.php;
             include /etc/nginx/fastcgi_params;
             include /etc/nginx/fastcgi_params;
-            include     %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*;
+            include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*;
         }
         }
 
 
         location /l/ {
         location /l/ {