No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

nginx.conf 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. user nginx;
  5. worker_processes auto;
  6. error_log /var/log/nginx/error.log;
  7. pid /run/nginx.pid;
  8. # Load dynamic modules. See /usr/share/nginx/README.dynamic.
  9. include /usr/share/nginx/modules/*.conf;
  10. events {
  11. worker_connections 1024;
  12. }
  13. http {
  14. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  15. '$status $body_bytes_sent "$http_referer" '
  16. '"$http_user_agent" "$http_x_forwarded_for"';
  17. access_log /var/log/nginx/access.log main;
  18. sendfile on;
  19. tcp_nopush on;
  20. tcp_nodelay on;
  21. keepalive_timeout 65;
  22. types_hash_max_size 2048;
  23. include /etc/nginx/mime.types;
  24. default_type application/octet-stream;
  25. # Load modular configuration files from the /etc/nginx/conf.d directory.
  26. # See http://nginx.org/en/docs/ngx_core_module.html#include
  27. # for more information.
  28. include /etc/nginx/conf.d/*.conf;
  29. server {
  30. listen 80 default_server;
  31. listen [::]:80 default_server;
  32. server_name _;
  33. root /usr/share/nginx/html;
  34. # Load configuration files for the default server block.
  35. include /etc/nginx/default.d/*.conf;
  36. location / {
  37. }
  38. error_page 404 /404.html;
  39. location = /40x.html {
  40. }
  41. error_page 500 502 503 504 /50x.html;
  42. location = /50x.html {
  43. }
  44. }
  45. # Settings for a TLS enabled server.
  46. #
  47. # server {
  48. # listen 443 ssl http2 default_server;
  49. # listen [::]:443 ssl http2 default_server;
  50. # server_name _;
  51. # root /usr/share/nginx/html;
  52. #
  53. # ssl_certificate "/etc/pki/nginx/server.crt";
  54. # ssl_certificate_key "/etc/pki/nginx/private/server.key";
  55. # ssl_session_cache shared:SSL:1m;
  56. # ssl_session_timeout 10m;
  57. # ssl_ciphers PROFILE=SYSTEM;
  58. # ssl_prefer_server_ciphers on;
  59. #
  60. # # Load configuration files for the default server block.
  61. # include /etc/nginx/default.d/*.conf;
  62. #
  63. # location / {
  64. # }
  65. #
  66. # error_page 404 /404.html;
  67. # location = /40x.html {
  68. # }
  69. #
  70. # error_page 500 502 503 504 /50x.html;
  71. # location = /50x.html {
  72. # }
  73. # }
  74. }