проксирование в зависимости от URL

Igor Sysoev is at rambler-co.ru
Tue Feb 21 15:07:24 MSK 2006


On Tue, 21 Feb 2006, Kovrigin Roman wrote:

> Хочется сделать так:
>             location ~ ^/photos/(a|b|c).* {
>                   proxy_pass http://some.url/;

-                   proxy_pass http://some.url/;
+                   proxy_pass http://some.url;

>             }
>
>             location ~ ^/photos/(d|i|f).* {
>                   proxy_pass http://other.url/;

-                   proxy_pass http://other.url/;
+                   proxy_pass http://other.url;

>             }
>
> Но выдает ошибку:
> [root at at.freebsd:~]# nginx -t
> 2006/02/21 13:01:28 [emerg] 736#0: "proxy_pass" may not have URI part in 
> location given by regular expression in /usr/local/etc/nginx/nginx.conf:116


Игорь Сысоев
http://sysoev.ru





More information about the nginx-ru mailing list