|
请教高手 nginx经典版如何给多个站点分别做运行日志和错误日志。
我添加了主机头后发现里面并没有发现日志生成和存放地址, 请教如何添加。谢谢大婶们。 server {
listen 80;
server_name 123.com alias *.123.com;
location / {
root D:/www/123;
index index.html index.htm default.html default.htm index.php default.php u.php;
include D:/www/healthcity/up-*.conf;
}
autoindex off;
error_page 404 /404.html;
location ~ ^.+\.php {
root D:/www/123;
fastcgi_pass bakend;
fastcgi_index index.php;
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
include fastcgi.conf;
}
}
#server 123.com end}
以上为主机头的代码,请大神帮忙看看。谢谢。 |
|
|
沙发#
发布于:2014-07-05 11:40
upupw nginx版本默认已经为每个网站配置了运行日志和错误日志记录。
请于Nginx/logs目录内查看以网址开头的.log文件。 为了让你更好的了解upupw的结构,请查看下程序根目录下的目录结构说明.txt |
|