Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm working to setup a reverse proxy cache. In nginx.conf I added the following:

location /blog {
        # Reverse Proxy
        # Cache the Blog Pages from Heroku
        proxy_cache                             STATIC;
        proxy_cache_valid               200     10m;
        proxy_cache_valid               404     1m;
        proxy_cache_use_stale   error timeout invalid_header updating http_500 http_502 http_503 http_504;

        rewrite ^/blog$             /;
        rewrite ^/blog/(.*)$    /$1;

        proxy_pass http://whispering-retreat-1.herokuapp.com;

However when trying to restart nginx I received the following error:

$ /opt/nginx/sbin/nginx -s stop
nginx: [emerg] "proxy_cache" zone "STATIC" is unknown in /opt/nginx/conf/nginx.conf:182

Any ideas what's the problem is with using STATIC? I just want to cache the blog pages so it doesn't hit heroku every time which is horribly slow.


share|improve this question

1 Answer 1

up vote 1 down vote accepted

"proxy_cache" zone "STATIC" is unknown

Means that you forgot to configure it. http://nginx.org/r/proxy_cache_path

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.