зависимость апстрима от переменных

Ivan B. Serezhkin ivan at serezhkin.com
Mon Oct 16 23:08:24 MSD 2006


Добрый вечер.

Можно ли как нибудь свернуть вот такой набор proxy_pass
        location /static/ { proxy_pass http://static:81/; }
        location /img1/ { proxy_pass http://img1:81/; }
        location /img2/ { proxy_pass http://img2:81/; }
        location /img3/ { proxy_pass http://img3:81/; }

В что ни будь компактное, как это получается в апаче:
RewriteRule ^/(static|img1|img2|img3)/(.*)$ http://$1/$2 [P,L]


?


-- 
Ivan B. Serezhkin






More information about the nginx-ru mailing list