ngx_http_memcached_module question

Sean Allen sean at ardishealth.com
Fri Feb 29 22:02:48 MSK 2008


On Feb 29, 2008, at 1:25 PM, Sean Allen wrote:

>
> On Feb 29, 2008, at 11:28 AM, Igor Sysoev wrote:
>
>> On Thu, Feb 28, 2008 at 05:09:18PM -0500, Sean Allen wrote:
>>
>>> can i do the following:
>>>
>>> check memcache for existence of content.
>>>
>>> if not continue our normal processing which is currently:
>>>
>>> check for static file
>>> if it exists, serve it
>>> if it doesnt exist, pass request off to upstream server.
>>
>> The checking local file is faster than memcached, so:
>>
>>    location / {
>>        error_page  404 = @memcache;
>>    }
>>
>>    location @memcache {
>>        set   $memcached_key   "$uri?$args";
>>        memcached_pass    ...
>>
>>        recursive_error_pages  on;
>>
>>        error_page  404 = @upstream;
>>    }
>>
>>    location @upstream {
>>        proxy_pass    ...
>>
>>        error_page  404 = @upstream;
>>    }
>
> I think I might have this working by moving recursive_error_pages  
> on; into my server { } defs.
>
> this should fill my error log with tons of error messages correct?
>
>

well ok so far, it works partially. got the 502 error figured out.

any code that does a redirect, results in 405 error.
been digging for an answer. any ideas?

also is there a way to not have all these requests end up in the error  
log as file not found?







More information about the nginx mailing list