Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save modemlooper/bf9a180b151ed0320c7e005246b73489 to your computer and use it in GitHub Desktop.
Save modemlooper/bf9a180b151ed0320c7e005246b73489 to your computer and use it in GitHub Desktop.
Load WordPress media from prod NGINX
location ~* ^.+\.(svg|svgz|jpg|jpeg|gif|png|ico|bmp)$ {
try_files $uri @image_fallback;
}
location @image_fallback {
proxy_pass http://{PROD};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment