9f2907
# For more information on configuration, see:
9f2907
#   * Official English Documentation: http://nginx.org/en/docs/
9f2907
#   * Official Russian Documentation: http://nginx.org/ru/docs/
9f2907
9f2907
user nginx;
9f2907
worker_processes auto;
9f2907
error_log /var/log/nginx/error.log;
9f2907
pid /run/nginx.pid;
9f2907
9f2907
# Load dynamic modules. See /usr/share/doc/nginx/README.dynamic.
9f2907
include /usr/share/nginx/modules/*.conf;
9f2907
9f2907
events {
9f2907
    worker_connections 1024;
9f2907
}
9f2907
9f2907
http {
9f2907
    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
9f2907
                      '$status $body_bytes_sent "$http_referer" '
9f2907
                      '"$http_user_agent" "$http_x_forwarded_for"';
9f2907
9f2907
    access_log  /var/log/nginx/access.log  main;
9f2907
9f2907
    sendfile            on;
9f2907
    tcp_nopush          on;
9f2907
    tcp_nodelay         on;
9f2907
    keepalive_timeout   65;
9f2907
    types_hash_max_size 4096;
9f2907
9f2907
    include             /etc/nginx/mime.types;
9f2907
    default_type        application/octet-stream;
9f2907
9f2907
    # Load modular configuration files from the /etc/nginx/conf.d directory.
9f2907
    # See http://nginx.org/en/docs/ngx_core_module.html#include
9f2907
    # for more information.
9f2907
    include /etc/nginx/conf.d/*.conf;
9f2907
9f2907
    server {
9f2907
        listen       80;
9f2907
        listen       [::]:80;
9f2907
        server_name  _;
9f2907
        root         /usr/share/nginx/html;
9f2907
9f2907
        # Load configuration files for the default server block.
9f2907
        include /etc/nginx/default.d/*.conf;
9f2907
9f2907
        error_page 404 /404.html;
9f2907
            location = /40x.html {
9f2907
        }
9f2907
9f2907
        error_page 500 502 503 504 /50x.html;
9f2907
            location = /50x.html {
9f2907
        }
9f2907
    }
9f2907
9f2907
# Settings for a TLS enabled server.
9f2907
#
9f2907
#    server {
9f2907
#        listen       443 ssl http2;
9f2907
#        listen       [::]:443 ssl http2;
9f2907
#        server_name  _;
9f2907
#        root         /usr/share/nginx/html;
9f2907
#
9f2907
#        ssl_certificate "/etc/pki/nginx/server.crt";
9f2907
#        ssl_certificate_key "/etc/pki/nginx/private/server.key";
9f2907
#        ssl_session_cache shared:SSL:1m;
9f2907
#        ssl_session_timeout  10m;
9f2907
#        ssl_ciphers PROFILE=SYSTEM;
9f2907
#        ssl_prefer_server_ciphers on;
9f2907
#
9f2907
#        # Load configuration files for the default server block.
9f2907
#        include /etc/nginx/default.d/*.conf;
9f2907
#
9f2907
#        error_page 404 /404.html;
9f2907
#            location = /40x.html {
9f2907
#        }
9f2907
#
9f2907
#        error_page 500 502 503 504 /50x.html;
9f2907
#            location = /50x.html {
9f2907
#        }
9f2907
#    }
9f2907
9f2907
}
9f2907