SHARE
TWEET

Untitled

a guest Jan 15th, 2018 339 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2.     listen       80;
  3.     listen       443 ssl;
  4.     server_name  {{DOMAINS_HERE}};
  5.     root         {vvv_path_to_site}/public_html;
  6.  
  7.     error_log    {vvv_path_to_site}/log/error.log;
  8.     access_log   {vvv_path_to_site}/log/access.log;
  9.  
  10.     set          $upstream {upstream};
  11.  
  12.     include      /etc/nginx/nginx-wp-common.conf;
  13.  
  14.     location ~* ^.+\.(svg|svgz|jpg|jpeg|gif|png|ico|bmp)$ {
  15.         try_files $uri @image_fallback;
  16.     }
  17.  
  18.     location @image_fallback {
  19.         proxy_pass https://site.staging.com;
  20.         proxy_intercept_errors on;
  21.         error_page 404 = @image_fallback_2;
  22.     }
  23.  
  24.     location @image_fallback_2 {
  25.         proxy_pass https://site-static-stag.s3.amazonaws.com;
  26.     }
  27. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top