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

  1. lkraav
    Posted 1 year 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:



  2. lkraav
    Posted 1 year 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
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Super Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.