Last active
December 2, 2015 20:25
-
-
Save dpellenwood/7645a5c9e2d941d53be4 to your computer and use it in GitHub Desktop.
Try local files
This file contains 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
# Proxy uploads from the live server | |
location ~ ^/wp-content/uploads/(.*) { | |
try_files $uri @img_proxy; | |
} | |
location @img_proxy { | |
rewrite ^/wp-content/uploads/(.*)$ https://example.com/wp-content/uploads/$1 redirect; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment