Guest User

Untitled

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