Blame SOURCES/nginx.conf

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