ignatenkobrain / rpms / nginx

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