nginx serving wrong website under proxy_cache

Igor Sysoev is at rambler-co.ru
Sun May 3 08:34:49 MSD 2009


On Sat, May 02, 2009 at 11:16:47PM -0400, Jim Ohlstein wrote:

> Correction:
> 
> The question should read:
> 
> Do I need to use two fastcgi_cache_key settings if a site serves both http and https?

If you use the same backend - no:

      server {
          listen 80;
          location / {
              fastcgi_pass       backend:9000;
              fastcgi_cache_key  backend:9000$request_uri;
          }
      }

      server {
          listen 443;
          location / {
              fastcgi_pass       backend:9000;
              fastcgi_cache_key  backend:9000$request_uri;
          }
      }


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list