Advertisement
Guest User

Untitled

a guest
Jun 29th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. server {
  2. listen {port};
  3. listen {host:port};
  4.  
  5. root {public dir};
  6. index index.html index.htm;
  7.  
  8. server_name {domain name};
  9.  
  10. location / {
  11. try_files $uri $uri/ =404;
  12. }
  13. location {/api/v1/} {
  14. proxy_pass {target path eg: www.whatever.com/api/};
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement