Blame SOURCES/nginx.conf

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