Directory fallback

merlin corey merlincorey at dc949.org
Wed Dec 30 10:25:46 MSK 2009


On Tue, Dec 29, 2009 at 3:27 PM, Tobia Conforto
<tobia.conforto at gmail.com> wrote:
> merlin corey wrote:
>> Make an attempt at least! :-)
>
> Actually, I posted after 2 hours of failed attempts :(
>
>> I'll get you started... please note this is written for 0.8.30 and above and I didn't test this, but it should be close.
>
> Eh, I was using 0.6.32, maybe that's why I wasn't going far.
> Thank you for your example, tomorrow I'll work on it.
>
> This, for example, I wouldn't have guessed in a million years:
>
>> fastcgi_intercept_errors on;
>> ...
>> error_page 404 = @basephp
>
> This is also pretty ingenious:
>
>> fastcgi_param SCRIPT_FILENAME /var/www/base$fastcgi_script_name;
>
> Many thanks!
>
> Tobia
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>

You're welcome.  Please note a small typo, I did not end the
error_page declaration with a semicolon.  There might be other small
errors I apologize for :).  If you review the documentation at
http://wiki.nginx.org regarding these directives it should all be very
clear to you :).

Good luck!
-- Merlin



More information about the nginx mailing list