Welcome! Log In Create A New Profile

Advanced

proxy_pass uri

Vasil Mikhalenya
May 18, 2017 05:34PM
Всем привет,

вопрос по proxy_pass в случае указания uri. В документации не нашел
описания данного поведения, пытаюсь понять, что не так.

map $scheme $o_upstream {
"http" "http://o_up";
"https" "https://o_up_ssl";
}

в случае
location / {
proxy_pass $o_upstream/pp/;

на origin вижу неправильный uri

ip_address o "http" [18/May/2017:21:32:08 +0000] r:0.000 up:- "GET
/pp/ HTTP/1.0" 403 162 "-" "curl/7.42.1" "-"

в случае
location / {
proxy_pass https://o_up_ssl/pp/;

все работает хорошо
==> /var/log/nginx/o_access.log <==
ip_address o "https" [18/May/2017:21:31:29 +0000] r:0.000 up:- "GET
/pp/t.txt HTTP/1.0" 200 9 "-" "curl/7.42.1" "-"

в чем же отличие с точки зрения nginx? где в документации это отражено?

Спасибо


--
Best regards,
Vasil Mikhalenya
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

proxy_pass uri

Vasil Mikhalenya May 18, 2017 05:34PM

Re: proxy_pass uri

Валентин Бартенев May 18, 2017 06:50PM

Re: proxy_pass uri

Vasil Mikhalenya May 19, 2017 04:22AM

Re: proxy_pass uri

Oleksandr V. Typlyns'kyi May 19, 2017 08:42AM

Re: proxy_pass uri

Валентин Бартенев May 19, 2017 09:26AM

Re: proxy_pass uri

Vasil Mikhalenya May 20, 2017 05:02PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 84
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready