Advertisement
Guest User

Untitled

a guest
Jan 15th, 2018
547
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement