Skip to content

Instantly share code, notes, and snippets.

@yeah
Created May 8, 2012 14:34
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/2635638 to your computer and use it in GitHub Desktop.
Save yeah/2635638 to your computer and use it in GitHub Desktop.
Tumblr reverse proxy - naive approach
server {
listen 80;
server_name plan.io;
location /blog/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host planio.tumblr.com;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_max_temp_file_size 0;
proxy_pass http://planio.tumblr.com/;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment