摘要:宝塔网站日志添加访问域名/www/server/nginx/conf/nginx.conflog_format main $remote_addr - $remote_user [$time_local]...
/www/server/nginx/conf/nginx.conf
log_format main '$remote_addr - $remote_user [$time_local] "$scheme://$host" "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent"';
然后再在站点设置里,修改配置文件, access_log /www/wwwlogs/92yi.com.log;后面加一个 main,再后重新 nginx。就可以了