ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: как работает proxy redirect
  • From: "burlaka" <nginx-forum@xxxxxxxx>
  • Date: Tue, 10 Sep 2013 08:07:51 -0400
  • Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=helium.jlkhosting.com; s=x; h=Date:Sender:From:References:In-Reply-To:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=nYjdPUR9mp6IFgMLio9q/FPnkjK5tlH0JKdkcWo7bRQ=; b=FwVgG9PQJ7tg9DsCvnIA53w1k8mRe2njbce8IJs31gatOZAvakv/oSx35goSF9Ek98gmjOjs1VOKYXWaIRN+53yhgnDxUmsVCT3pfB+b5iZIjVEsNTnlTt0q/i8upGQRAjqd7rj90SscfyKW44NlmupQyj180qUzkhJ6PxMtZYM=;
  • In-reply-to: <201309081929.12036.vbart@nginx.com>
  • References: <201309081929.12036.vbart@nginx.com>

Конфиг ровно как я написал выше:
        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/ как указано в директиве.
В чем может быть ошибка?

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?21,242647,242710#msg-242710

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.