Добрый день.
Надо сделать 2 кеша на 2 дисках для 2 разных локейшенов, но с try_files
локальных файлов.
Вариант
server {
server_name server80;
listen 80;
root /etc/nginx/html;
try_files $uri @local;
location @local {
internal;
proxy_pass http://localhost80:800;
}
}
server {
server_name local800;
listen 127.0.0.1:800;
location /1/ {
proxy_cache1;
proxy_pass http://server1;
}
location /2/ {
proxy_cache2;
proxy_pass http://server2;
}
}
Гоняет трафик через лупбэк почем зря.
А в @локейшен вложенные локейшены делать нельзя.
--
Рустам
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru