Blame SOURCES/nginx.conf

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