Adding these lines from your link helps

proxy_set_header   X-Forwarded-Host $host;
  proxy_set_header   X-Forwarded-Server $host;

As far as I understand Nginx, Location header should be like 'http://10.0.0.19:8080/log/' (upstream ip) to be rewritten properly to 'https://build.example.com/log/'. But it receives 'Location https://build.example.com:8080/log/' and cannot to anything with it.

With these lines to nginx config added now we have

rootPath -> https://build.example.com
scheme -> https
serverPort -> 443
requestURLWithQueryString -> https://build.batanov.me/script

Which leads to correct redirection construction

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to