Created
November 23, 2015 20:17
-
-
Save jordanmaslyn/940eda27e50037c2c787 to your computer and use it in GitHub Desktop.
Redirect missing assets in local VVV Wordpress to the production installation (place this within the server declaration within the site-specific conf file).
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
# Directives to send expires headers and turn off 404 error logging. | |
location ~* \.(js|css|png|jpe?g|gif|ico|svg)$ { | |
expires 24h; | |
log_not_found off; | |
try_files $uri $uri/ @production; | |
} | |
location @production { | |
resolver 8.8.8.8; | |
proxy_pass http://www.WEBSITEURL.TLD/$uri; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment