Created
November 27, 2020 17:18
-
-
Save modemlooper/39cdc585b146894a407cb32a830eed7d to your computer and use it in GitHub Desktop.
use WordPress production media on local nginx
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/themes|/wp-content/uploads)/.*\.(jpe?g|gif|css|png|js|ico|pdf|m4a|mov|mp3)$ { | |
rewrite ^ http://domain.com$request_uri? | |
permanent; | |
access_log off; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment