Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yeah/2636032 to your computer and use it in GitHub Desktop.
Save yeah/2636032 to your computer and use it in GitHub Desktop.
Tumblr reverse proxy - rewrite content using sub_filter
proxy_set_header Accept-Encoding ''; # prevent gzipped upstream as that would break sub_filter
# rewrite absolute urls in upstream body
sub_filter planio.tumblr.com plan.io/blog;
sub_filter_once off;
sub_filter_types text/xml;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment