nginx报file not found错误

查看错误日志

[:q2013/10/20 18:41:40 [error] 27151#0: *106117 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 10.18.128.21, server: crm.hubo.360.cn, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "xxxxxx.xxx.com"

由于nginx虚拟主机路径没有权限导致,我配的web目录是在home目录下,默认都是drwx------, 需要改为chmod 755 /home/xxx, 然后就可以访问了

上一篇:WPF DataContext与Binding的关系


下一篇:一个简单java爬虫爬取网页中邮箱并保存