nginx.conf_ 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. events {
  9. worker_connections 1024;
  10. }
  11. http {
  12. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  13. '$status $body_bytes_sent "$http_referer" '
  14. '"$http_user_agent" "$http_x_forwarded_for"';
  15. access_log /var/log/nginx/access.log main;
  16. sendfile on;
  17. tcp_nopush on;
  18. tcp_nodelay on;
  19. keepalive_timeout 65;
  20. types_hash_max_size 2048;
  21. include /etc/nginx/mime.types;
  22. default_type application/octet-stream;
  23. # Load modular configuration files from the /etc/nginx/conf.d directory.
  24. # See http://nginx.org/en/docs/ngx_core_module.html#include
  25. # for more information.
  26. include /etc/nginx/conf.d/*.conf;
  27. server {
  28. listen 80 default_server;
  29. #listen [::]:80 default_server;
  30. server_name _;
  31. root /usr/share/nginx/html;
  32. # Load configuration files for the default server block.
  33. include /etc/nginx/default.d/*.conf;
  34. location / {
  35. }
  36. error_page 404 /404.html;
  37. location = /40x.html {
  38. }
  39. error_page 500 502 503 504 /50x.html;
  40. location = /50x.html {
  41. }
  42. }
  43. }