Advertisement
ddserver

Untitled

May 26th, 2016
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. user www-data;
  2. worker_processes 8;
  3. pid /run/nginx.pid;
  4.  
  5. events {
  6. worker_connections 1024;
  7. multi_accept on;
  8. }
  9.  
  10. http {
  11. sendfile on;
  12. tcp_nopush on;
  13. tcp_nodelay on;
  14. keepalive_timeout 30;
  15. types_hash_max_size 2048;
  16. reset_timedout_connection on;
  17. client_body_timeout 10;
  18. send_timeout 5;
  19.  
  20. server_tokens off;
  21.  
  22. include /etc/nginx/mime.types;
  23. default_type application/octet-stream;
  24.  
  25.  
  26. access_log /var/log/nginx/access.log;
  27. error_log /var/log/nginx/error.log;
  28.  
  29. gzip on;
  30. gzip_disable "msie6";
  31.  
  32.  
  33. include /etc/nginx/conf.d/*.conf;
  34. include /etc/nginx/sites-enabled/*;
  35. include /etc/nginx/vhosts/*/*.conf;
  36. server {
  37. server_name localhost;
  38. disable_symlinks if_not_owner;
  39. listen 80;
  40. include /etc/nginx/vhosts-includes/*.conf;
  41. location @fallback {
  42. error_log /dev/null crit;
  43. proxy_pass http://127.0.0.1:8080;
  44. proxy_redirect http://127.0.0.1:8080 /;
  45. proxy_set_header Host $host;
  46. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  47. proxy_set_header X-Forwarded-Proto $scheme;
  48. access_log off ;
  49. }
  50. }
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement