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:
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:
Actually when i insert into my configuration this line
proxy_set_header Host $host;
i can’t access site at all. I tried every configuration with
proxy_redirect, still no results…
Any more suggestions?
Posted at Nginx Forum:
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.