Преглед изворни кода

Merge pull request #2039 from anvme/main

Fix for mass adoption
Jaap Marcus пре 4 година
родитељ
комит
67a353815e

+ 0 - 16
install/deb/templates/web/nginx/php-fpm/craftcms.stpl

@@ -34,21 +34,6 @@ server {
         deny all;
         return 404;
     }
-
-    # Craft-specific location handlers to ensure AdminCP requests route through index.php
-    # If you change your `cpTrigger`, change it here as well
-    location ^~ /admin {
-        try_files $uri $uri/ @phpfpm_nocache;
-    }
-    location ^~ /index.php/admin {
-        try_files $uri $uri/ @phpfpm_nocache;
-    }
-    location ^~ /cpresources {
-        try_files $uri $uri/ /index.php?$query_string;
-    }
-    location ^~ /actions {
-        try_files $uri $uri/ /index.php?$query_string;
-    }
     
     location / {
         try_files $uri $uri/ /index.php?$args;
@@ -63,7 +48,6 @@ server {
             fastcgi_pass %backend_lsnr%;
             fastcgi_index index.php;
             include /etc/nginx/fastcgi_params;
-            include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*;
         }
     }
 

+ 0 - 16
install/deb/templates/web/nginx/php-fpm/craftcms.tpl

@@ -29,21 +29,6 @@ server {
         deny all;
         return 404;
     }
-
-    # Craft-specific location handlers to ensure AdminCP requests route through index.php
-    # If you change your `cpTrigger`, change it here as well
-    location ^~ /admin {
-        try_files $uri $uri/ @phpfpm_nocache;
-    }
-    location ^~ /index.php/admin {
-        try_files $uri $uri/ @phpfpm_nocache;
-    }
-    location ^~ /cpresources {
-        try_files $uri $uri/ /index.php?$query_string;
-    }
-    location ^~ /actions {
-        try_files $uri $uri/ /index.php?$query_string;
-    }
     
     location / {
         try_files $uri $uri/ /index.php?$args;
@@ -58,7 +43,6 @@ server {
             fastcgi_pass %backend_lsnr%;
             fastcgi_index index.php;
             include /etc/nginx/fastcgi_params;
-            include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*;
 
         }
     }

+ 0 - 15
install/rhel/templates/web/nginx/php-fpm/craftcms.stpl

@@ -14,21 +14,6 @@ server {
     
     include %home%/%user%/conf/web/%domain%/nginx.hsts.conf*;
 
-    # Craft-specific location handlers to ensure AdminCP requests route through index.php
-    # If you change your `cpTrigger`, change it here as well
-    location ^~ /admin {
-        try_files $uri $uri/ @phpfpm_nocache;
-    }
-    location ^~ /index.php/admin {
-        try_files $uri $uri/ @phpfpm_nocache;
-    }
-    location ^~ /cpresources {
-        try_files $uri $uri/ /index.php?$query_string;
-    }
-    location ^~ /actions {
-        try_files $uri $uri/ /index.php?$query_string;
-    }
-
     location / {
         try_files $uri $uri/ /index.php?$query_string;
         location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js|webp)$ {

+ 0 - 15
install/rhel/templates/web/nginx/php-fpm/craftcms.tpl

@@ -9,21 +9,6 @@ server {
         
     include %home%/%user%/conf/web/%domain%/nginx.forcessl.conf*;
 
-    # Craft-specific location handlers to ensure AdminCP requests route through index.php
-    # If you change your `cpTrigger`, change it here as well
-    location ^~ /admin {
-        try_files $uri $uri/ @phpfpm_nocache;
-    }
-    location ^~ /index.php/admin {
-        try_files $uri $uri/ @phpfpm_nocache;
-    }
-    location ^~ /cpresources {
-        try_files $uri $uri/ /index.php?$query_string;
-    }
-    location ^~ /actions {
-        try_files $uri $uri/ /index.php?$query_string;
-    }
-
     location / {
         try_files $uri $uri/ /index.php?$query_string;
         location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js|webp)$ {