[root@localhost nginx]# tail /usr/local/nginx/logs/error.log
2013/03/19 15:32:27 [error] 4614#0: *49899552 failed to load Lua inlined code: cannot open /root/nginx/monitor.lua: Permission denied, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", host: "localhost:81"
nginx.conf:
location / {
root html;
index index.html index.htm;
set $str $uri;
content_by_lua_file /root/nginx/monitor.lua;
}
权限正常,为什么不对呢?
[root@localhost nginx]# ls /root/nginx/monitor.lua
/root/nginx/monitor.lua
[root@localhost ~]# ls -l
drwxrwxr-x 2 1000 1000 4096 03-19 15:27 nginx
[root@localhost ~]# ls -l nginx
-rw-r--r-- 1 1000 1000 1095 03-19 14:18 monitor.lua
-rw-rw-r-- 1 1000 1000 457 03-19 14:18 mydata.lua