Advertisement
Guest User

Untitled

a guest
Apr 16th, 2018
493
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.67 KB | None | 0 0
  1. # For more information on configuration, see:
  2. # * Official English Documentation: http://nginx.org/en/docs/
  3. # * Official Russian Documentation: http://nginx.org/ru/docs/
  4.  
  5. user nginx;
  6. worker_processes auto;
  7. error_log /var/log/nginx/error.log;
  8. pid /run/nginx.pid;
  9.  
  10. # Load dynamic modules. See /usr/share/nginx/README.dynamic.
  11. include /usr/share/nginx/modules/*.conf;
  12.  
  13. events {
  14. worker_connections 1024;
  15. }
  16.  
  17. http {
  18. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  19. '$status $body_bytes_sent "$http_referer" '
  20. '"$http_user_agent" "$http_x_forwarded_for"';
  21.  
  22. access_log /var/log/nginx/access.log main;
  23.  
  24. sendfile on;
  25. tcp_nopush on;
  26. tcp_nodelay on;
  27. keepalive_timeout 65;
  28. types_hash_max_size 2048;
  29.  
  30. include /etc/nginx/mime.types;
  31. default_type application/octet-stream;
  32.  
  33. # Load modular configuration files from the /etc/nginx/conf.d directory.
  34. # See http://nginx.org/en/docs/ngx_core_module.html#include
  35. # for more information.
  36. include /etc/nginx/conf.d/*.conf;
  37.  
  38. server {
  39. listen 80 default_server;
  40. listen [::]:80 default_server;
  41. server_name _;
  42. root /usr/share/nginx/html;
  43.  
  44. # auth_basic "Restricted Access";
  45. # auth_basic_user_file /etc/nginx/.htpasswd;
  46. #allow 172.16.226.15;
  47. #deny all;
  48. #satisfy any;
  49.  
  50. # Load configuration files for the default server block.
  51. include /etc/nginx/default.d/*.conf;
  52.  
  53. location / {
  54. proxy_pass http://127.0.0.1:8888/;
  55. }
  56.  
  57. error_page 404 /404.html;
  58. location = /40x.html {
  59. }
  60.  
  61. error_page 500 502 503 504 /50x.html;
  62. location = /50x.html {
  63. }
  64. }
  65.  
  66. # Settings for a TLS enabled server.
  67. #
  68. # server {
  69. # listen 443 ssl http2 default_server;
  70. # listen [::]:443 ssl http2 default_server;
  71. # server_name _;
  72. # root /usr/share/nginx/html;
  73. #
  74. # ssl_certificate "/etc/pki/nginx/server.crt";
  75. # ssl_certificate_key "/etc/pki/nginx/private/server.key";
  76. # ssl_session_cache shared:SSL:1m;
  77. # ssl_session_timeout 10m;
  78. # ssl_ciphers HIGH:!aNULL:!MD5;
  79. # ssl_prefer_server_ciphers on;
  80. #
  81. # # Load configuration files for the default server block.
  82. # include /etc/nginx/default.d/*.conf;
  83. #
  84. # location / {
  85. # }
  86. #
  87. # error_page 404 /404.html;
  88. # location = /40x.html {
  89. # }
  90. #
  91. # error_page 500 502 503 504 /50x.html;
  92. # location = /50x.html {
  93. # }
  94. # }
  95.  
  96. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement