File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
install/deb/templates/web/nginx/php-fpm Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -19,16 +19,16 @@ server {
1919
2020 include %home%/%user%/conf/web/%domain%/nginx.hsts.conf*;
2121
22- types {
23- text/html html htm shtml php php5;
24- }
25-
2622 location / {
2723 location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
2824 expires max;
2925 fastcgi_hide_header "Set-Cookie";
3026 }
3127 }
28+
29+ location ~ [^/]\.php(/|$) {
30+ types { } default_type "text/html";
31+ }
3232
3333 location /error/ {
3434 alias %home%/%user%/web/%domain%/document_errors/;
Original file line number Diff line number Diff line change @@ -14,16 +14,16 @@ server {
1414
1515 include % home% /% user% /conf/web/% domain% /nginx.forcessl.conf*;
1616
17- types {
18- text/html html htm shtml php php5;
19- }
20-
2117 location / {
2218 location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
2319 expires max;
2420 fastcgi_hide_header " Set-Cookie" ;
2521 }
2622 }
23+
24+ location ~ [^/]\.php(/|$) {
25+ types { } default_type "text/html";
26+ }
2727
2828 location /error/ {
2929 alias % home% /% user% /web/% domain% /document_errors/;
You can’t perform that action at this time.
0 commit comments