Skip to content

Commit 3c504ed

Browse files
author
Alexandros Ioannides
authored
Update sendy.tpl
1 parent 087ddbb commit 3c504ed

File tree

1 file changed

+9
-12
lines changed
  • install/deb/templates/web/nginx/php-fpm

1 file changed

+9
-12
lines changed

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

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ server {
1111
access_log /var/log/nginx/domains/%domain%.log combined;
1212
access_log /var/log/nginx/domains/%domain%.bytes bytes;
1313
error_log /var/log/nginx/domains/%domain%.error.log error;
14-
14+
1515
include %home%/%user%/conf/web/%domain%/nginx.forcessl.conf*;
1616
1717
location = /favicon.ico {
@@ -25,23 +25,20 @@ server {
2525
access_log off;
2626
}
2727

28-
location ~ /\.(?!well-known\/) {
29-
deny all;
30-
return 404;
31-
}
32-
33-
location ~ /(readme.html|license.txt) {
28+
location ~ /\.(?!well-known\/) {
3429
deny all;
30+
return 404;
3531
}
3632

37-
if (!-f $request_filename){
33+
if (!-f $request_filename) {
3834
rewrite ^/([a-zA-Z0-9-]+)$ /$1.php last;
3935
}
4036

4137
location / {
4238
try_files $uri $uri/ /index.php?$args;
4339
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)$ {
4440
expires 1d;
41+
fastcgi_hide_header "Set-Cookie";
4542
}
4643

4744
location ~ [^/]\.php(/|$) {
@@ -50,7 +47,7 @@ server {
5047
fastcgi_pass %backend_lsnr%;
5148
fastcgi_index index.php;
5249
include /etc/nginx/fastcgi_params;
53-
include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*;
50+
include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*;
5451
}
5552

5653
location /l/ {
@@ -83,7 +80,7 @@ server {
8380
include %home%/%user%/web/%domain%/stats/auth.conf*;
8481
}
8582

86-
include /etc/nginx/conf.d/phpmyadmin.inc*;
87-
include /etc/nginx/conf.d/phppgadmin.inc*;
88-
include %home%/%user%/conf/web/%domain%/nginx.conf_*;
83+
include /etc/nginx/conf.d/phpmyadmin.inc*;
84+
include /etc/nginx/conf.d/phppgadmin.inc*;
85+
include %home%/%user%/conf/web/%domain%/nginx.conf_*;
8986
}

0 commit comments

Comments
 (0)