nginx location pathing issue

Posted by Michael Jefferys on Server Fault See other posts from Server Fault or by Michael Jefferys
Published on 2012-07-09T19:58:41Z Indexed on 2012/07/09 21:17 UTC
Read the original article Hit count: 115

Filed under:
|
|

I've got a pretty much default sites-enabled set up in my nginx on debian squeeze and i'm now trying to get it to serve up my munin graphs on myhost/munin/

Heres the location i've added to the config

       location /munin
            {
                    root /var/cache/munin/www/;
                    index index.htm index.html;
            }

And here is the error I recieve:

            2012/07/09 23:52:03 [error] 3598#0: *13 "/var/cache/munin/www/munin/index.htm" is not found (2: No such file or directory), client: 93.*.*.*, server: , request: "GET /munin/ HTTP/1.1", host: ""

This set up used to 'just work' in apache. I'm new to nginx so a bit lost as to why its adding the extra /munin when looking for the path. Any advice?

© Server Fault or respective owner

Related posts about nginx

Related posts about debian-squeeze