Title: floatingio's Replies | WordPress.org

---

# floatingio

  [  ](https://wordpress.org/support/users/floatingio/)

 *   [Profile](https://wordpress.org/support/users/floatingio/)
 *   [Topics Started](https://wordpress.org/support/users/floatingio/topics/)
 *   [Replies Created](https://wordpress.org/support/users/floatingio/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/floatingio/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/floatingio/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/floatingio/engagements/)
 *   [Favorites](https://wordpress.org/support/users/floatingio/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Proxy Cache Purge] Ability to filter purge-all URL](https://wordpress.org/support/topic/ability-to-filter-purge-all-url/)
 *  Thread Starter [floatingio](https://wordpress.org/support/users/floatingio/)
 * (@floatingio)
 * [10 years ago](https://wordpress.org/support/topic/ability-to-filter-purge-all-url/#post-7312871)
 * The basics are accomplished by defining WP_SITEURL in wp-config.php based on 
   $_SERVER[‘HTTP_HOST’]. Then I have a custom plugin (“fio-any-host”) that filters
   displayed links and such to match everything up.
 * The plugin is nowhere near presentable at the moment (for one thing, it’s going
   to break external links because I didn’t account for them, and I need to fix 
   that). At the moment It filters home_url and upload_dir, but I’m sure I’ll find
   something I missed at some point. 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Proxy Cache Purge] Ability to filter purge-all URL](https://wordpress.org/support/topic/ability-to-filter-purge-all-url/)
 *  Thread Starter [floatingio](https://wordpress.org/support/users/floatingio/)
 * (@floatingio)
 * [10 years ago](https://wordpress.org/support/topic/ability-to-filter-purge-all-url/#post-7312868)
 * Vaguely related.
 * I use a plugin that allows my wordpress installation to respond to alternate 
   domain names, which allows me to run the admin section on a firewalled host. 
   Changing the hostname messes with VHP because it needs the canonical one in order
   to purge the correct pages. The filter available for purge_urls allows me to 
   correct the domain names for purging individual URLs. The purge all doesn’t work
   without the filter, however, because it tries to purge based on what wordpress
   believes is its hostname.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Proxy Cache Purge] Supply Varnish IP via Filter](https://wordpress.org/support/topic/supply-varnish-ip-via-filter/)
 *  Thread Starter [floatingio](https://wordpress.org/support/users/floatingio/)
 * (@floatingio)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/supply-varnish-ip-via-filter/#post-7293533)
 * (blah. didn’t mean to double-post, and there’s no delete button.)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Proxy Cache Purge] Supply Varnish IP via Filter](https://wordpress.org/support/topic/supply-varnish-ip-via-filter/)
 *  Thread Starter [floatingio](https://wordpress.org/support/users/floatingio/)
 * (@floatingio)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/supply-varnish-ip-via-filter/#post-7293532)
 * Thanks, much appreciated. 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Proxy Cache Purge] Supply Varnish IP via Filter](https://wordpress.org/support/topic/supply-varnish-ip-via-filter/)
 *  Thread Starter [floatingio](https://wordpress.org/support/users/floatingio/)
 * (@floatingio)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/supply-varnish-ip-via-filter/#post-7293524)
 * (Realized after I posted that the shard scenario won’t work without the postId
   being passed, which I don’t think is available where that filter is called. Oh
   well; it was a nice thought anyway. Maybe pass the URL to be purged?)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Proxy Cache Purge] Supply Varnish IP via Filter](https://wordpress.org/support/topic/supply-varnish-ip-via-filter/)
 *  Thread Starter [floatingio](https://wordpress.org/support/users/floatingio/)
 * (@floatingio)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/supply-varnish-ip-via-filter/#post-7293517)
 * I do a lot of environmental management via DNS (including things like database
   servers, varnish servers, etc.). This allows me to have a single configuration
   that works in all environments. Adding an environment is as simple as adding 
   it to DNS; I don’t have to make updates in multiple places.
 * There are, of course, exceptions — but my environment gets frequently deployed,
   and keeping the critical stuff like server locations in DNS ensures that fewer
   mistakes are made.
 * I can also see a use for the filter in a sharding situation. If you have multiple
   varnish instances behind a load balancer, you could easily direct images to one
   instance, pages to another, posts to a third, or however you want to set it up.
   The filter would provide a simple mechanism for supporting this in VHP.

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