Guest User

Untitled

a guest
Jan 15th, 2016
723
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2. listen 80 default_server;
  3. listen [::]:80 default_server;
  4. root /var/www/;
  5. index index.html index.htm index.nginx-debian.html;
  6. server_name _;
  7. location / {
  8. # First attempt to serve request as file, then
  9. # as directory, then fall back to displaying a 404.
  10. try_files $uri $uri/ =404;
  11. }
  12. location /forum {
  13. proxy_set_header X-Real-IP $remote_addr;
  14. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  15. proxy_set_header Host $http_host;
  16. proxy_set_header X-NginX-Proxy true;
  17.  
  18. proxy_pass http://127.0.0.1:4567/community;
  19. proxy_redirect off;
  20.  
  21. # Socket.IO Support
  22. proxy_http_version 1.1;
  23. proxy_set_header Upgrade $http_upgrade;
  24. proxy_set_header Connection "upgrade";
  25. }
  26.  
  27. }
RAW Paste Data