Welcome! Log In Create A New Profile

Advanced

Re: как работает proxy redirect

September 10, 2013 04:08AM
Конфиг ровно как я написал выше:
location /bpm1/ {
proxy_pass https://proto4.portal.local:9443/;
proxy_redirect https://proto4.portal.local:9443/ https://wpsdm.portal.local:9443/bpm1/;
}

Делаю запрос: curl -v -k https://wpsdm.portal.local:9443/bpm1/ProcessPortal/
> GET /bpm1/ProcessPortal/ HTTP/1.1
> User-Agent: curl/7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
> Host: wpsdm.portal.local:9443
> Accept: */*
>
< HTTP/1.1 302 Found
< Server: nginx/1.5.3
< Date: Tue, 10 Sep 2013 08:06:13 GMT
< Content-Type: text/html; charset=UTF-8
< Content-Length: 0
< Connection: keep-alive
< X-Powered-By: Servlet/3.0
< Location: https://wpsdm.portal.local:9443/ProcessPortal/jsp/index.jsp
< Content-Language: ru-RU
< Set-Cookie: JSESSIONID=0000XvN3inHgBBXhcSWW0NkVovd:17v6qmgqn; Path=/; HttpOnly
< Expires: Thu, 01 Dec 1994 16:00:00 GMT
< Cache-Control: no-cache="set-cookie, set-cookie2"

Заголовок Location исправлен, но без учета /bpm1/ как указано в директиве.
В чем может быть ошибка?
Subject Author Posted

как работает proxy_redirect

burlaka September 07, 2013 02:51PM

Re: как работает proxy redirect

Валентин Бартенев September 07, 2013 03:30PM

Re: как работает proxy redirect

burlaka September 07, 2013 09:23PM

Re: как работает proxy redirect

Валентин Бартенев September 08, 2013 07:34AM

Re: как работает proxy redirect

burlaka September 08, 2013 08:39AM

Re: как работает proxy redirect

Валентин Бартенев September 08, 2013 11:30AM

Re: как работает proxy redirect

burlaka September 10, 2013 04:08AM

Re: как работает proxy redirect

Maxim Dounin September 10, 2013 08:36AM

Re: как работает proxy redirect

burlaka September 10, 2013 11:45AM

Re: как работает proxy redirect

Daniel Podolsky September 10, 2013 12:04PM

Re: как работает proxy redirect

Maxim Dounin September 11, 2013 06:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 80
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