软件环境
centos6.4
ganglia-3.6.0
ganglia-web-3.5.10
nginx-1.6.0
pcre-8.33
php-5.5.14
rrdtool-1.4.7
nginx配置:
location /ganglia/ {
root /usr/local/ganglia/web; #这是我ganglia-web目录
fastcgi_pass 10.xxx.xxx.112:9000; #主节点
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
访问10.xxx.xxx.112/ganglia之后就是404,error日志信息
[mw_shl_code=html,true]2016/03/22 17:36:21 [error] 2740#0: *2 "/usr/local/nginx/html/ganglia/index.html" is not found (2: No such file or directory), client: 10.xx.xx.49, server: localhost, request: "GET //ganglia/ HTTP/1.1", host: "10.xx.xx.112"
2016/03/22 17:40:54 [error] 2740#0: *3 "/usr/local/nginx/html/ganglia/index.html" is not found (2: No such file or directory), client: 10.xx.xx.49, server: localhost, request: "GET /ganglia/ HTTP/1.1", host: "10.xx.xx.112"
2016/03/22 17:40:58 [error] 2740#0: *4 open() "/usr/local/nginx/html/ganglia" failed (2: No such file or directory), client: 10.xx.xx.49, server: localhost, request: "GET /ganglia HTTP/1.1", host: "10.xx.xx.112"
2016/03/22 17:41:05 [error] 2740#0: *3 open() "/usr/local/nginx/html/ganglia" failed (2: No such file or directory), client: 10.xx.xx.49, server: localhost, request: "GET /ganglia HTTP/1.1", host: "10.xx.xx.112"
2016/03/22 17:50:42 [error] 2821#0: *1 directory index of "/usr/local/nginx/html/ganglia/" is forbidden, client: 10.xx.xx.49, server: localhost, request: "GET /ganglia/ HTTP/1.1", host: "10.xx.xx.112"
2016/03/22 17:50:45 [error] 2821#0: *1 directory index of "/usr/local/nginx/html/ganglia/" is forbidden, client: 10.xx.xx.49, server: localhost, request: "GET /ganglia/ HTTP/1.1", host: "10.xx.xx.112"
2016/03/22 17:50:47 [error] 2821#0: *1 directory index of "/usr/local/nginx/html/ganglia/" is forbidden, client: 10.xx.xx.49, server: localhost, request: "GET /ganglia/ HTTP/1.1", host: "10.xx.xx.112"
2016/03/22 17:51:06 [error] 2821#0: *1 "/usr/local/nginx/html/ganglia/index.html" is not found (2: No such file or directory), client: 10.xx.xx.49, server: localhost, request: "GET /ganglia/ HTTP/1.1", host: "10.xx.xx.112"
2016/03/22 17:51:08 [error] 2821#0: *1 "/usr/local/nginx/html/ganglia/index.html" is not found (2: No such file or directory), client: 10.xx.xx.49, server: localhost, request: "GET /ganglia/ HTTP/1.1", host: "10.xx.xx.112"
2016/03/22 18:00:00 [error] 2867#0: *1 "/usr/local/nginx/html/ganglia/index.html" is not found (2: No such file or directory), client: 10.xx.xx.49, server: localhost, request: "GET /ganglia/ HTTP/1.1", host: "10.xx.xx.112"[/mw_shl_code]
说我这个路径下没有/usr/local/nginx/html/ganglia/,我是按照这个博客搭建的http://shiyanjun.cn/archives/893.html
有人遇到过这个问题吗?谢谢
|
|