IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    nginx.conf

    admin发表于 2017-03-31 05:51:28
    love 0
    #
    worker_processes  4;
    error_log  logs/error.log;
    events {
        use epoll;
        worker_connections  65535;
    }
    worker_rlimit_nofile 102400;
    http {
        include       mime.types;
        default_type  application/octet-stream;
        log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                          '$status $body_bytes_sent $request_body "$http_referer" '
                          '"$http_user_agent" "$http_x_forwarded_for" '
                          '"$upstream_addr" '
                          '"ups_resp_time:$upstream_response_time" '
                          '"request_time:$request_time"';
        access_log  logs/access.log  main;
    
        include vhost/*.conf;
        server {
            listen       80;
            server_name  localhost;
            location / {
                root   html;
                index  index.html index.htm;
            }
            error_page   500 502 503 504  /50x.html;
            location = /50x.html {
                root   html;
            }
        }
    }



沪ICP备19023445号-2号
友情链接