daily pastebin goal
13%
SHARE
TWEET

Untitled

a guest Jul 13th, 2018 169 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2.     listen 80;
  3.     server_name my.web.server;
  4.  
  5.     location ^~ /cdn {      
  6.         proxy_pass https://file.host/myfiles;
  7.     }
  8. }
  9.    
  10. my.web.server/cdn           => (proxy) file.host/myfiles/index.html
  11. my.web.server/cdn/          => (proxy) file.host/myfiles/index.html
  12. my.web.server/cdn/images    => (proxy) file.host/myfiles/images/index.html
  13. my.web.server/cdn/images/   => (proxy) file.host/myfiles/images/index.html
  14.  
  15. my.web.server/cdn/**        => (proxy) file.host/myfiles/**/index.html
  16. my.web.server/cdn/**/       => (proxy) file.host/myfiles/**/index.html
  17.    
  18. location ^~ /cdn {      
  19.     proxy_pass https://file.host/myfiles;
  20.     try_files $uri $uri/ $uri/index.html;
  21. }
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