• Resolved Jamie Burchell

    (@jamieburchell)


    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 Cache

    Notice 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)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @jamieburchell

    Thank you for reaching out and I am happy to assist you with this.

    Can you please share if you modified your file path for security manually or with any plugin and can you please share your website URL?

    Thanks!

    Thread Starter Jamie Burchell

    (@jamieburchell)

    Hey @vmarko no plugins to modify paths, but I am using the Roots Bedrock framework where file paths are slightly different. I’d gladly share site details privately if this is an option.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @jamieburchell

    Thank you for your feedback. Can you please specify the path to the /cache/ folder on your server?
    Please reach out to us directly via the plugin in Performance>Support.

    Thanks!

    Thread Starter Jamie Burchell

    (@jamieburchell)

    Hi @vmarko it’s /var/www/vhosts/example.com/current/web/app/cache which is symlinked to /var/www/vhosts/example.com/shared/web/app/cache

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @jamieburchell

    Thank you for your feedback.

    W3 Total Cache only follows the symlink logic. Are the cached files created in the cache folder?

    Thanks!

    Thread Starter Jamie Burchell

    (@jamieburchell)

    Hi @vmarko yep – there’s no problem saving the cache files or delivering them, but the .htaccess rules are not quite right. I’ve changed them to correct them, but I’m just flagging it.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Incorrect Apache install instructions/config’ is closed to new replies.