Created
September 4, 2013 17:17
-
-
Save goopi/6439967 to your computer and use it in GitHub Desktop.
An example of proxying a Tumblr blog as a subdirectory in nginx (w/o regexs)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
# ... | |
location / { | |
proxy_set_header Accept-Encoding ''; | |
proxy_pass http://<NAME>.tumblr.com/; | |
sub_filter http://<NAME>.tumblr.com/post /post; | |
sub_filter_once off; | |
} | |
location /post { | |
proxy_set_header Accept-Encoding ''; | |
proxy_pass http://<NAME>.tumblr.com/post; | |
sub_filter http://<NAME>.tumblr.com/post /post; | |
sub_filter_once off; | |
} | |
# ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment