服务器中
/game/gate/log/ *.log /game/gate/log/ .txt
以 http://xxxx.com/log/.log 访问
http{
......
server {
listen 80;
location /log {
autoindex on;
charset utf-8;
root /game/gate/;
}
}
}
charset utf-8; 解决中文乱码
autoindex on; 目录索引