Good day all,
i have an issue with NGINX correctly managin my tomcat as reverse proxy.

1 istance of Tomcat is managing an application that was originally direct connected to port 80/443.
Application to logon users understand if the request comes from HTTP or HTTPS and manage all the logon to be on HTTPS.

Now, with NGINX in front of it, all the requests come as HTTP, because i'm offloading SSL traffic directly to NGINX.
It is working like a charm, but i'm not more able to understand it it was originally coming from HTTP or HTTPS.

How i can deal with it?

Some header to add to nginx maybe?

Thank you in advance.

Regards,
Re: Nginx offloading SSL and Tomcat to understand if the request was initally on HTTPS
April 07, 2014 09:16AM
See http://nginx.org/en/docs/http/ngx_http_realip_module.html
Oh, well,
i see real-ip, i'm not sure i will see also the real url requested: http://site or https://site

I need that one, not exactly which one is contacting me, but how it does.

thank you.
Re: Nginx offloading SSL and Tomcat to understand if the request was initally on HTTPS
April 07, 2014 11:19AM
You should see that in the logfiles.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 262
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready