Эх сурвалжийг харах

Overwriting types ignores mine.types

Jaap Marcus 4 жил өмнө
parent
commit
9b2c9493a0

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

@@ -19,16 +19,16 @@ server {
 
 
     include %home%/%user%/conf/web/%domain%/nginx.hsts.conf*;
     include %home%/%user%/conf/web/%domain%/nginx.hsts.conf*;
 
 
-    types {
-            text/html   html htm shtml php php5;
-    }
-
     location / {
     location / {
         location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
         location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
             expires     max;
             expires     max;
             fastcgi_hide_header "Set-Cookie";
             fastcgi_hide_header "Set-Cookie";
         }
         }
     }
     }
+    
+    location ~ [^/]\.php(/|$) {
+        types { } default_type "text/html";
+    }
 
 
     location /error/ {
     location /error/ {
         alias   %home%/%user%/web/%domain%/document_errors/;
         alias   %home%/%user%/web/%domain%/document_errors/;

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

@@ -14,16 +14,16 @@ server {
         
         
     include %home%/%user%/conf/web/%domain%/nginx.forcessl.conf*;
     include %home%/%user%/conf/web/%domain%/nginx.forcessl.conf*;
 
 
-    types {
-            text/html   html htm shtml php php5;
-    }
-
     location / {
     location / {
         location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
         location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
             expires     max;
             expires     max;
             fastcgi_hide_header "Set-Cookie";
             fastcgi_hide_header "Set-Cookie";
         }
         }
     }
     }
+    
+    location ~ [^/]\.php(/|$) {
+        types { } default_type "text/html";
+    }
 
 
     location /error/ {
     location /error/ {
         alias   %home%/%user%/web/%domain%/document_errors/;
         alias   %home%/%user%/web/%domain%/document_errors/;