Skip to content

Commit 9b2c949

Browse files
committed
Overwriting types ignores mine.types
1 parent 0e7cb01 commit 9b2c949

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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/;

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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/;

0 commit comments

Comments
 (0)