Reverse Proxy with caching

Rafa Pedroche lists at ruby-forum.com
Wed Apr 28 02:35:57 MSD 2010




Maxim Dounin wrote:
> Hello!
> 
> On Mon, Oct 19, 2009 at 06:06:25PM -0400, avery wrote:
> 
>> I am also trying to get the caching to work. Whenever I use the proxy_cache_path or proxy_cache directive I get this error when starting nginx and it fails to start- unknown directive "proxy_cache" - unknown directive "proxy_cache_path". Anyone know what I'm doing wrong? I am using Ubuntu 9.04 and installed NGINX from the repos.
> 
> Cache support first appeared in nginx 0.7.45.  Ubuntu 9.04 seems
> to have 0.6.35 in the package list.
> 
> Maxim Dounin

Hi, I have a similar error with version 0.8.36...

[emerg]: unknown directive "proxy_cache_path" in 
/usr/local/nginx/nginx.conf:33

The line is the following:

proxy_cache_path  /var/lib/nginx/cache  levels=1:2 
keys_zone=staticfilecache:180m  max_size=500m;

what's wrong? thank you

(nginx -v -->  nginx version: nginx/0.8.36)

-- 
Posted via http://www.ruby-forum.com/.



More information about the nginx mailing list