Skip to content

Commit 147dc20

Browse files
committed
Fix Minify Rules
1 parent be95e7e commit 147dc20

File tree

6 files changed

+18
-2
lines changed

6 files changed

+18
-2
lines changed

usr/share/easyengine/nginx/wp/w3tc.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ server {
3535
try_files /wp-content/cache/page_enhanced/${host}${cache_uri}_index.html $uri $uri/ /index.php?$args;
3636
}
3737

38-
location ~ ^/wp-content/cache/minify/[^/]+/(.*)$ {
38+
location ~ ^/wp-content/cache/minify/(.+\.(css|js))$ {
3939
try_files $uri /wp-content/plugins/w3-total-cache/pub/minify.php?file=$1;
4040
}
4141

usr/share/easyengine/nginx/wp/wpfc.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ server {
3535
try_files $uri $uri/ /index.php?$args;
3636
}
3737

38-
location ~ ^/wp-content/cache/minify/[^/]+/(.*)$ {
38+
location ~ ^/wp-content/cache/minify/(.+\.(css|js))$ {
3939
try_files $uri /wp-content/plugins/w3-total-cache/pub/minify.php?file=$1;
4040
}
4141

usr/share/easyengine/nginx/wpsubdir/w3tc.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ server {
5353
try_files /wp-content/cache/page_enhanced/${host}${cache_uri}_index.html $uri $uri/ /index.php?$args;
5454
}
5555

56+
location ~ ^/wp-content/cache/minify/(.+\.(css|js))$ {
57+
try_files $uri /wp-content/plugins/w3-total-cache/pub/minify.php?file=$1;
58+
}
59+
5660
location ~ \.php$ {
5761
try_files $uri =404;
5862
include fastcgi_params;

usr/share/easyengine/nginx/wpsubdir/wpfc.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ server {
5353
try_files $uri $uri/ /index.php?$args;
5454
}
5555

56+
location ~ ^/wp-content/cache/minify/(.+\.(css|js))$ {
57+
try_files $uri /wp-content/plugins/w3-total-cache/pub/minify.php?file=$1;
58+
}
59+
5660
location ~ \.php$ {
5761
try_files $uri =404;
5862
include fastcgi_params;

usr/share/easyengine/nginx/wpsubdomain/w3tc.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ server {
4141
try_files /wp-content/cache/page_enhanced/${host}${cache_uri}_index.html $uri $uri/ /index.php?$args;
4242
}
4343

44+
location ~ ^/wp-content/cache/minify/(.+\.(css|js))$ {
45+
try_files $uri /wp-content/plugins/w3-total-cache/pub/minify.php?file=$1;
46+
}
47+
4448
location ~ \.php$ {
4549
try_files $uri =404;
4650
include fastcgi_params;

usr/share/easyengine/nginx/wpsubdomain/wpfc.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ server {
4141
try_files $uri $uri/ /index.php?$args;
4242
}
4343

44+
location ~ ^/wp-content/cache/minify/(.+\.(css|js))$ {
45+
try_files $uri /wp-content/plugins/w3-total-cache/pub/minify.php?file=$1;
46+
}
47+
4448
location ~ \.php$ {
4549
try_files $uri =404;
4650
include fastcgi_params;

0 commit comments

Comments
 (0)