File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
install/deb/templates/web/nginx/php-fpm Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff 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/ {
You can’t perform that action at this time.
0 commit comments