ignatenkobrain / rpms / nginx

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