fastcgi and index

Sean Allen sean at monkeysnatchbanana.com
Mon Dec 7 20:18:59 MSK 2009


Have nginx in from of an application server where

/
or
directory /

if the index doesn't exist needs to be sent to backend...

right now i'm doing this to get it to work sort of

  location /
  {
    index no;
    try_files $uri $uri/ @seaside;
    error_page 403 = @seaside;
  }

If I don't have the 403, then trying to get

http://localhost/

Results in a 403 forbidden. It doesnt pass it along to backend via fastcgi

How can I have that handled and still have an index file take precedence if
it exists?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20091207/29d5f20f/attachment.html>


More information about the nginx mailing list