Incorrect Apache install instructions/config
-
I’ve just noticed that the Apache configuration generated on the “Install” page is incorrect:
RewriteCond "%{DOCUMENT_ROOT}/var/www/vhosts/example.com/shared/web/app/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SLASH}%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html" -f RewriteRule .* "/var/www/vhosts/example.com/shared/web/app/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SLASH}%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html" [L] RewriteCond %{REQUEST_METHOD} !=POST RewriteCond %{ENV:W3TC_QUERY_STRING} ="" RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_switch_toggle) [NC] RewriteCond "%{DOCUMENT_ROOT}/var/www/vhosts/example.com/shared/web/app/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SLASH}%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.xml" -f RewriteRule .* "/var/www/vhosts/example.com/shared/web/app/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SLASH}%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.xml" [L] </IfModule> # END W3TC Page Cache core # BEGIN W3TC Browser Cache # END W3TC Browser CacheNotice how the absolute path to the directory on the file system is used?
{DOCUMENT_ROOT}/var/www/vhosts/example.com/shared… doesn’t make sense.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘Incorrect Apache install instructions/config’ is closed to new replies.