fastcgi and index

Sean Allen sean at monkeysnatchbanana.com
Wed Dec 9 19:08:54 MSK 2009


i took care of this by doing, would be interested to know if there is a
better way.

  location /
  {
    index index.html index.htm;
    try_files $uri $uri/ @seaside;
    error_page 403 = @seaside;
  }

  location ~ ^/$
  {
    index no;
    error_page 403 = @seaside;
  }


On Mon, Dec 7, 2009 at 12:18 PM, Sean Allen <sean at monkeysnatchbanana.com>wrote:

> 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/20091209/6106aaf2/attachment.html>


More information about the nginx mailing list