Blame SOURCES/nginx.conf

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