Welcome! Log In Create A New Profile

Advanced

Re: Problem with http/https interoperation

Maxim Dounin
April 21, 2014 07:00AM
Hello!

On Mon, Apr 21, 2014 at 04:14:18PM +0800, Benimaur Gao wrote:

> Hello, all
>
> I have a web application, which use nginx as frontend reverse-proxy
> sever. It's configured to use https to interact with user agent. Several
> tomcats are used as backend application servers. The connection between
> nginx and tomcats is http. The network structure is illustrated as
> following:
>
> Browser -- https --> nginx --- http --> tomcat1
> \-- http --> tomcat2
>
> The normal request works ok. Problem comes when my program returns
> 302/Redirection to user agent. Since tomcat has no idea about https'
> environment, the location field in http response header is set as:
> "Location: http://redirect.url.com". After receiving that, the browser will
> launch subsequent requests through http.

[...]

> I wonder if there is some ready-made module to manipulate the 302
> Location header, or any other better ways to workaround this problem.

http://nginx.org/r/proxy_redirect

--
Maxim Dounin
http://nginx.org/

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

Problem with http/https interoperation

Benimaur Gao April 21, 2014 04:16AM

Re: Problem with http/https interoperation

Maxim Dounin April 21, 2014 07:00AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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