Reverse Proxy Test does not handle URL correctly

I struggled with problem as well and reread this thread many times.

It is in an unstated requirement for the nginx examples that the proxy_pass address should be the same as the Jenkins URL set in Manage Jenkins > System.

Since the Jenkins instance often can be reached on multiple IPs, this is not a given.

Alternatively, one can use a more complex proxy_redirect.