dylanjameswagner
2/17/2017 - 9:13 PM

Redirect missing local assets to the live environment. (Place this within the server declaration within the site-specific conf file).

Redirect missing local assets to the live environment. (Place this within the server declaration within the site-specific conf file).

# 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;
  }