Skip to content

Commit f464f8a

Browse files
author
Alexandros Ioannides
authored
Update sendy.stpl
1 parent 3c504ed commit f464f8a

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

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

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ server {
1818

1919
include %home%/%user%/conf/web/%domain%/nginx.hsts.conf*;
2020

21-
location = /favicon.ico {
21+
location = /favicon.ico {
2222
log_not_found off;
2323
access_log off;
2424
}
@@ -29,23 +29,20 @@ server {
2929
access_log off;
3030
}
3131

32-
location ~ /\.(?!well-known\/) {
33-
deny all;
34-
return 404;
35-
}
36-
37-
location ~ /(readme.html|license.txt) {
32+
location ~ /\.(?!well-known\/) {
3833
deny all;
34+
return 404;
3935
}
4036

41-
if (!-f $request_filename){
37+
if (!-f $request_filename) {
4238
rewrite ^/([a-zA-Z0-9-]+)$ /$1.php last;
4339
}
4440

4541
location / {
4642
try_files $uri $uri/ /index.php?$args;
4743
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)$ {
4844
expires 1d;
45+
fastcgi_hide_header "Set-Cookie";
4946
}
5047

5148
location ~ [^/]\.php(/|$) {
@@ -54,7 +51,7 @@ server {
5451
fastcgi_pass %backend_lsnr%;
5552
fastcgi_index index.php;
5653
include /etc/nginx/fastcgi_params;
57-
include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*;
54+
include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*;
5855
}
5956

6057
location /l/ {

0 commit comments

Comments
 (0)