Error in W3TC nginx config?
-
Hi!
I’ve found an error in nginx configuration generated by W3TC (v.094):
if ($w3tc_rewrite = 1) {
rewrite .* “/wp-content/cache/page_enhanced/$http_host/$request_uri/_index$w3tc_rewrite$w3tc_ext$w3tc_enc” last;Should be:
if ($w3tc_rewrite = 1) {
rewrite .* “/wp-content/cache/page_enhanced/$http_host/$request_uri/_index$w3tc_ext$w3tc_enc” last;AND
if (-f “$document_root/wp-content/cache/page_enhanced/$http_host/$request_uri/_index$w3tc_rewrite.html$w3tc_enc”) {
Should be:
if (-f “$document_root/wp-content/cache/page_enhanced/$http_host/$request_uri/_index.html$w3tc_enc”) {
etc.
Because there are no cache files like _index1.html and You’ll get error
The topic ‘Error in W3TC nginx config?’ is closed to new replies.