Welcome! Log In Create A New Profile

Advanced

Re: problem with http headers when using ssl

Reinis Rozitis
July 17, 2012 09:46AM
> when i'm proxying to tomcat server everything is fine, proxy_pass works.
>From there i connect to some payment site, but if i decide to go back,
> it brings me to to site:
> https://www80/actionVaiisisPayment.action
> but it should be ip adress not upstream name:
> https://10.255.7.120:8080/actionVaiisisPayment.action


The www80 probably comes from the upstream application (which makes a
redirect) since you don't pass the real Host: header back to upstream and
nginx uses the 'www80' upstream name when connecting to the backend.

You can either try to pass the actuall Host: header back to upstream - add:

proxy_set_header Host $host;


Or you can change the redirects with proxy_redirect (
http://wiki.nginx.org/NginxHttpProxyModule#proxy_redirect )


rr

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

problem with http headers when using ssl

karolis July 17, 2012 09:26AM

Re: problem with http headers when using ssl

Reinis Rozitis July 17, 2012 09:46AM

Re: problem with http headers when using ssl

karolis July 17, 2012 10:09AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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