nginx.conf

#
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;
        }
    }
}

版权声明:
作者:admin
链接:https://www.chenxie.net/archives/1537.html
来源:蜀小陈
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>