Nginx 1.4.2 2516#12636: CreateFile()

i added the cache configuration in my nginx.conf ,like this :

location ~ .*.(js|css|ico|jpg|jpeg|png|gif)$
{
expires 7d;
root cache;
proxy_store on;

       }
     But i coudlen't login my app ,the error log is :

2014/05/07 09:27:13 [error] 2516#12636: *11 CreateFile()
“D:/myapp/nginx-1.4.2/cache/myapp/static/msgengine/msgengine.js” failed
(3:
The system cannot find the path specified), client: 192.168.3.112,
server:
0.0.0.0, request: “GET /myapp/static/msgengine/msgengine.js HTTP/1.1”,
host:
“10.1.1.7”, referrer: “http://10.1.1.7/myapp/index.action

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,249879,249879#msg-249879

sam.gu Wrote:

          root cache;

“D:/myapp/nginx-1.4.2/cache/myapp/static/msgengine/msgengine.js”

root = nginx base + root value, so it looks for your app where you told
it
to look.

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,249879,249882#msg-249882

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs