WordPress.org

Ready to get started?Download WordPress

Forums

WP Super Cache
Multisite, apache ServerAlias, mod_rewrite, SERVER_NAME vs HTTP_HOST (3 posts)

  1. lkraav
    Member
    Posted 2 months ago #

    Hey Donncha

    My setup is not using the domain mapping plugin, since it's not really needed for ordinary operation http://kaspars.net/blog/wordpress/wordpress-multisite-without-domain-mapping

    Also relevant is that I'm using ServerAlias to point servers to the same spot.

    I just noticed that since WPSC proposes the main rewrite rule based on ${SERVER_NAME}, multisite subsites using ServerAlias will all be showing the main site's cache as soon as that's generated. HTTP_HOST should be used with ServerAlias for differentiation.

    In PHP mode things work better. Subsites retain their own cache.

    I'm on today's git HEAD version. Is mod_rewrite still an option here? How come PHP cache serving works?

    Maybe related:

    http://wordpress.org/support/topic/issues-with-the-server_name-directory-in-supercache

    https://wordpress.org/plugins/wp-super-cache/

  2. lkraav
    Member
    Posted 2 months ago #

    After further researching, I notice at https://plugins.trac.wordpress.org/changeset/502689/wp-super-cache the move to SERVER_NAME is deliberate. I guess the situation with ServerAlias should then become a documentation patch since it pretty much cannot be used with mod_rewrite caching mode.

  3. lkraav
    Member
    Posted 2 months ago #

    This is also influenced by UseCanonicalName directive. This should be Off when using ServerAlias and mod_rewrite mode caching.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.