Created
March 28, 2016 20:12
-
-
Save bjorn2404/9a2a4a7df4fb48664196 to your computer and use it in GitHub Desktop.
WordPress load remote images if they don't exist on the local development server NGINX. vagrant provision after editing site conf file.
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
location ~ ^/wp-content/uploads/(.*) { | |
if (!-f $request_filename) { | |
rewrite ^/wp-content/uploads/(.*)$ http://www.remotesite.com/wp-content/uploads/$1 redirect; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment