Blame SOURCES/nginx.conf

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