nginx子域名配置单独的日志文件

    server {
        listen       80;
        server_name  yuying-api.xutongbao.top;

        #配置根目录
        location / {
            proxy_pass http://127.0.0.1:85;
        }
        access_log  logs/access_yuyingapi.log;
        error_log   logs/access_yuyingapi.log;
    }  

 

猜你喜欢

转载自blog.csdn.net/xutongbao/article/details/126157089