Browse Source

Fix Minify Rules

old-stable
Mitesh Shah 11 years ago
parent
commit
147dc20fae
  1. 2
      usr/share/easyengine/nginx/wp/w3tc.conf
  2. 2
      usr/share/easyengine/nginx/wp/wpfc.conf
  3. 4
      usr/share/easyengine/nginx/wpsubdir/w3tc.conf
  4. 4
      usr/share/easyengine/nginx/wpsubdir/wpfc.conf
  5. 4
      usr/share/easyengine/nginx/wpsubdomain/w3tc.conf
  6. 4
      usr/share/easyengine/nginx/wpsubdomain/wpfc.conf

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

@ -35,7 +35,7 @@ server {
try_files /wp-content/cache/page_enhanced/${host}${cache_uri}_index.html $uri $uri/ /index.php?$args;
}
location ~ ^/wp-content/cache/minify/[^/]+/(.*)$ {
location ~ ^/wp-content/cache/minify/(.+\.(css|js))$ {
try_files $uri /wp-content/plugins/w3-total-cache/pub/minify.php?file=$1;
}

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

@ -35,7 +35,7 @@ server {
try_files $uri $uri/ /index.php?$args;
}
location ~ ^/wp-content/cache/minify/[^/]+/(.*)$ {
location ~ ^/wp-content/cache/minify/(.+\.(css|js))$ {
try_files $uri /wp-content/plugins/w3-total-cache/pub/minify.php?file=$1;
}

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

@ -53,6 +53,10 @@ server {
try_files /wp-content/cache/page_enhanced/${host}${cache_uri}_index.html $uri $uri/ /index.php?$args;
}
location ~ ^/wp-content/cache/minify/(.+\.(css|js))$ {
try_files $uri /wp-content/plugins/w3-total-cache/pub/minify.php?file=$1;
}
location ~ \.php$ {
try_files $uri =404;
include fastcgi_params;

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

@ -53,6 +53,10 @@ server {
try_files $uri $uri/ /index.php?$args;
}
location ~ ^/wp-content/cache/minify/(.+\.(css|js))$ {
try_files $uri /wp-content/plugins/w3-total-cache/pub/minify.php?file=$1;
}
location ~ \.php$ {
try_files $uri =404;
include fastcgi_params;

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

@ -41,6 +41,10 @@ server {
try_files /wp-content/cache/page_enhanced/${host}${cache_uri}_index.html $uri $uri/ /index.php?$args;
}
location ~ ^/wp-content/cache/minify/(.+\.(css|js))$ {
try_files $uri /wp-content/plugins/w3-total-cache/pub/minify.php?file=$1;
}
location ~ \.php$ {
try_files $uri =404;
include fastcgi_params;

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

@ -41,6 +41,10 @@ server {
try_files $uri $uri/ /index.php?$args;
}
location ~ ^/wp-content/cache/minify/(.+\.(css|js))$ {
try_files $uri /wp-content/plugins/w3-total-cache/pub/minify.php?file=$1;
}
location ~ \.php$ {
try_files $uri =404;
include fastcgi_params;

Loading…
Cancel
Save