Reverse cache not working on start pages

Dingo nginx-forum at
Wed Oct 4 08:32:41 UTC 2017


I am unable to get reverse cache working on startpages. I am using Ubuntu
16.04 with everything updated. I have tried this example:

http {
    proxy_cache_path  /data/nginx/cache  levels=1:2    keys_zone=STATIC:10m
    inactive=24h  max_size=1g;
    server {
        location / {
            proxy_pass   ;
            proxy_set_header       Host $host;
#            proxy_cache            STATIC;
            proxy_cache_valid      200  1d;
            proxy_cache_use_stale  error timeout invalid_header updating
                                   http_500 http_502 http_503 http_504;

It works fine with the row "proxy_cache STATIC" disabled, but when I enable
it, I can not get any startpages woking. If I use, it will only show the default IIS page, but
if I type: it will work. What also
works is, and so on.  I also have one
other server that only hosts one site (apache server) with no host headers
involved, and that one works even with the startpage.

I am totally lost when it comes Nginx, so this could be something really
simple. I have searched a lot on the Internet and only found one guy with
the same problem. The server pointed to by proxy_pass is an IIS-server
hosting mostly wordpress domains on a single IP using host headers.

Posted at Nginx Forum:,276670,276670#msg-276670

More information about the nginx mailing list