Guest User

Untitled

a guest
Jan 15th, 2018
462
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

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×