how to make nginx find my assets that are not in my public/?

Patrick Aljord patcito at
Tue Aug 16 21:24:26 UTC 2011

On Tue, Aug 16, 2011 at 4:12 PM, Maxim Dounin <mdounin at> wrote:
> Hello!
> On Tue, Aug 16, 2011 at 03:47:05PM -0500, Patrick Aljord wrote:
>> Thanks a lot Maxim, this worked great. This is how my conf looks like
>> now, not sure if it's perfect yet but for anyone interested:
> You don't need all these if's in "location /", try_files is to
> replace them all.

I get this error when I remove those ifs:

2011/08/16 16:23:17 [error] 9352#0: *1 directory index of
"/home/pat/gitreps/shapado/public/" is forbidden, client:,
server: localhost.lan, request: "GET / HTTP/1.1", host:

More information about the nginx mailing list