ignatenkobrain / rpms / nginx

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