Несколько proxy-pass

Nikolay Grebnev nick at algen.spb.ru
Sun Mar 15 23:56:09 MSK 2009


Добрый день.

Есть такая конструкция
        location /static {
            root   /static;
            index  index.html index.htm;
            expires      1y;
            if (!-f $request_filename) {
                break;
                proxy_pass  http://www.www.org ;
            }
       }

Как сделать так, что если nginx не нашел в первом месте (точнее - втором -
proxy_pass  http://www.www.org )
То он шел на второй сервер, и там уже смотрел????

Николай
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20090315/55b57b73/attachment.html>


More information about the nginx-ru mailing list