Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Разный proxy pass в зависимо сти от $http referer
Благодарю за комментарии!
Но...
Starting nginx: : "proxy_pass" may not have URI part in location given by
regular expression, or inside named location, or inside the "if" statement, or
inside the "limit_except" block in /etc/nginx/conf/nginx.conf:285
location / {
if ($http_referer ~* "https://(.*)/fw-in/(.*)$" ) { return 412;}
if ($uri ~* "^/fw-in(.*)$" ) {return 412;}
error_page 412 =@in;
# default
autoindex on;
root /home/lazutov/default;
index index.html index.htm;
include /etc/nginx/conf/vhost.conf;
add_header X-forward-ups ssl-none;
add_header X-forward-rfr $http_referer;
add_header X-forward-uri $uri;
}
location @in {
proxy_pass http://new.qwerty.name:80/;
proxy_redirect default;
proxy_set_header X-Real-IP $remote_addr;
add_header X-qwerty-forward-ups ssl-dns;
}
Где я недопонял?
PS add_header - для хоть какой-то отладки; v0.7.64
Posted at Nginx Forum: http://forum.nginx.org/read.php?21,41095,41212#msg-41212
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|