Nginx setting Suggestion
-
i switched from w3 cache yesterday,
here the nginx setting
#Use cached or actual file if they exists, otherwise pass request to WordPress location / { # for w3 cache try_files /wp-content/cache/page_enhanced/${host}${cache_uri}_index.html $uri $uri/ /index.php?$args ; try_files /wp-content/cache/all/${host}${cache_uri}_index.html $uri $uri/ /index.php?$args ; }
location ~ ^/wp-content/cache/minify/[^/]+/(.*)$ { try_files $uri /wp-content/plugins/w3-total-cache/pub/minify.php?file=$1; try_files $uri /wp-content/cache/all/wpc-minified/minify.php?file=$1; }
what i miss? i’ve got too many redirection, but if i use the pure nginx like this code
`location / {
try_files $uri $uri/ /index.php?$args;
} `
everything is normal
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Nginx setting Suggestion’ is closed to new replies.