Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. server {
  2.  
  3. server_name sbd.example.org;
  4.  
  5. root /var/www/sbd/html;
  6.  
  7. index index.html index.htm;
  8.  
  9. location / {
  10. try_files $uri $uri/ =404;
  11. }
  12.  
  13. location ~ ^/[a-z].+$ {
  14. rewrite ^/(.*)$ /$1 break;
  15. proxy_pass http://127.0.0.1:3000;
  16. proxy_set_header Host $host;
  17. proxy_set_header X-Real-IP $remote_addr;
  18. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  19. default_type application/json;
  20. proxy_hide_header Content-Location;
  21. proxy_set_header Connection "";
  22. proxy_http_version 1.1;
  23. }
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement