Welcome! Log In Create A New Profile

Advanced

Re: неправильный HTTP GET request с переменными в конфиге

Andrew Kopeyko
December 21, 2009 12:06PM
anatoly wrote:
> похоже nginx создает некорректные http requests когда в config server, location есть proxy_path с переменными, например
> proxy_pass http://$1.site.com/;
> proxy_redirect http://$1.site.com/ http://$1.ru.site.com/;
> ошибка происходит когда request url более сложный чем "/" вроде http://some.ru.site.com/more/complex.html
> происходит обрезание request url до "GET / HTTP/1.0" вместо корректного "GET /more/complex.html HTTP/1.0"
>
> насколько я понимаю проблема в ngx_http_proxy_module.c

Вовсе нет - вы же сами просите проксировать всё на "/".
- proxy_pass http://$1.site.com/;
+ proxy_pass http://$1.site.com;

Пожалуйста, изучите
http://sysoev.ru/nginx/docs/http/ngx_http_proxy_module.html#proxy_pass


--
Best regards,
Andrew A. Kopeyko <kaa@zvuki.ru>
http://www.zvuki.ru/


_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

неправильный HTTP GET request с переменными в конфиге

anatoly December 21, 2009 10:51AM

Re: неправильный HTTP GET request с переменными в конфиге

Igor Sysoev December 21, 2009 10:58AM

Re: неправильный HTTP GET request с переменными в конфиге

anatoly December 21, 2009 11:04AM

Re: неправильный HTTP GET request с переменными в конфиге

Andrew Kopeyko December 21, 2009 12:06PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 299
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready