memcached error page not work fine

Maxim Dounin mdounin at mdounin.ru
Wed Jul 27 14:41:45 UTC 2011


Hello!

On Wed, Jul 27, 2011 at 09:30:15PM +0800, m zy wrote:

> hi, all:
>         i use nignx and tomat on my web site, tomcat work on 14100 port, i
> want when tomcat error i can get the html from my memcache for response,
>         if html not found in memcache should response c.html to client! but
> i set "error_page 404 /c.html;" in  @mem don't work for me!
>         this is my url: http://localhost/pos/2.htm(2 is key for memcache, 2
> not found)
>         the response to client is nginx default 404 page with text:
>        404 Not Found
>         not my config  c.html (command: error_page 404 /c.html;)
>         buy if i visit http://localhost/memtest/somepathnotfound c.html
> response ok, why?
>         can everybody help me please ,thank all!

http://wiki.nginx.org/HttpCoreModule#recursive_error_pages

Maxim Dounin



More information about the nginx mailing list