Blame SOURCES/nginx.conf

d78c9c
# For more information on configuration, see:
d78c9c
#   * Official English Documentation: http://nginx.org/en/docs/
d78c9c
#   * Official Russian Documentation: http://nginx.org/ru/docs/
d78c9c
d78c9c
user nginx;
d78c9c
worker_processes auto;
d78c9c
error_log $logdir/error.log;
d78c9c
pid $localstatedir/run/nginx/nginx.pid;
d78c9c
d78c9c
# Load dynamic modules. See $docdir/README.dynamic.
d78c9c
include $datadir/nginx/modules/*.conf;
d78c9c
d78c9c
events {
d78c9c
    worker_connections  1024;
d78c9c
}
d78c9c
d78c9c
http {
d78c9c
    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
d78c9c
                      '$status $body_bytes_sent "$http_referer" '
d78c9c
                      '"$http_user_agent" "$http_x_forwarded_for"';
d78c9c
d78c9c
    access_log  $logdir/access.log  main;
d78c9c
d78c9c
    sendfile        on;
d78c9c
    tcp_nopush      on;
d78c9c
    tcp_nodelay     on;
d78c9c
    keepalive_timeout  65;
d78c9c
    types_hash_max_size 4096;
d78c9c
d78c9c
    include       $sysconfdir/nginx/mime.types;
d78c9c
    default_type  application/octet-stream;
d78c9c
d78c9c
    # Load modular configuration files from the /etc/nginx/conf.d directory.
d78c9c
    # See http://nginx.org/en/docs/ngx_core_module.html#include
d78c9c
    # for more information.
d78c9c
    include $sysconfdir/nginx/conf.d/*.conf;
d78c9c
d78c9c
    server {
d78c9c
        listen       80;
d78c9c
        listen       [::]:80;
d78c9c
        server_name  _;
d78c9c
        root         $datadir/nginx/html;
d78c9c
d78c9c
        # Load configuration files for the default server block.
d78c9c
        include      $sysconfdir/nginx/default.d/*.conf;
d78c9c
d78c9c
        error_page 404 /404.html;
d78c9c
        location = /40x.html {
d78c9c
        }
d78c9c
d78c9c
        error_page 500 502 503 504  /50x.html;
d78c9c
        location = /50x.html {
d78c9c
        }
d78c9c
d78c9c
        # proxy the PHP scripts to Apache listening on 127.0.0.1:80
d78c9c
        #
d78c9c
        #location ~ \.php$ {
d78c9c
        #    proxy_pass   http://127.0.0.1;
d78c9c
        #}
d78c9c
d78c9c
        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
d78c9c
        #
d78c9c
        #location ~ \.php$ {
d78c9c
        #    root           html;
d78c9c
        #    fastcgi_pass   127.0.0.1:9000;
d78c9c
        #    fastcgi_index  index.php;
d78c9c
        #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
d78c9c
        #    include        fastcgi_params;
d78c9c
        #}
d78c9c
d78c9c
        # deny access to .htaccess files, if Apache's document root
d78c9c
        # concurs with nginx's one
d78c9c
        #
d78c9c
        #location ~ /\.ht {
d78c9c
        #    deny  all;
d78c9c
        #}
d78c9c
    }
d78c9c
d78c9c
d78c9c
    # another virtual host using mix of IP-, name-, and port-based configuration
d78c9c
    #
d78c9c
    #server {
d78c9c
    #    listen       8000;
d78c9c
    #    listen       somename:8080;
d78c9c
    #    server_name  somename  alias  another.alias;
d78c9c
d78c9c
    #    location / {
d78c9c
    #        root   html;
d78c9c
    #        index  index.html index.htm;
d78c9c
    #    }
d78c9c
    #}
d78c9c
d78c9c
d78c9c
    # HTTPS server
d78c9c
    #
d78c9c
    #server {
d78c9c
    #    listen       443;
d78c9c
    #    server_name  localhost;
d78c9c
d78c9c
    #    ssl                  on;
d78c9c
    #    ssl_certificate      cert.pem;
d78c9c
    #    ssl_certificate_key  cert.key;
d78c9c
d78c9c
    #    ssl_session_timeout  5m;
d78c9c
d78c9c
    #    ssl_protocols  SSLv2 SSLv3 TLSv1;
d78c9c
    #    ssl_ciphers  HIGH:!aNULL:!MD5;
d78c9c
    #    ssl_prefer_server_ciphers   on;
d78c9c
d78c9c
    #    location / {
d78c9c
    #        root   html;
d78c9c
    #        index  index.html index.htm;
d78c9c
    #    }
d78c9c
    #}
d78c9c
d78c9c
}