Serghey Rodin 12 лет назад
Родитель
Сommit
d20cfcc285
2 измененных файлов с 2 добавлено и 0 удалено
  1. 1 0
      install/debian/nginx.conf
  2. 1 0
      install/ubuntu/nginx.conf

+ 1 - 0
install/debian/nginx.conf

@@ -82,6 +82,7 @@ http {
 
     # Cache
     proxy_cache_path /var/cache/nginx levels=2 keys_zone=cache:10m inactive=60m max_size=512m;
+    proxy_cache_key "$host$request_uri $cookie_user";
     proxy_temp_path  /var/cache/nginx/temp;
     proxy_ignore_headers Expires Cache-Control;
     proxy_cache_use_stale error timeout invalid_header http_502;

+ 1 - 0
install/ubuntu/nginx.conf

@@ -82,6 +82,7 @@ http {
 
     # Cache
     proxy_cache_path /var/cache/nginx levels=2 keys_zone=cache:10m inactive=60m max_size=512m;
+    proxy_cache_key "$host$request_uri $cookie_user";
     proxy_temp_path  /var/cache/nginx/temp;
     proxy_ignore_headers Expires Cache-Control;
     proxy_cache_use_stale error timeout invalid_header http_502;