Use proxy_redirect to fix Location headers

When SSL is enabled, this prevents a "It appears that your reverse proxy
set up is broken." error message from displaying on Jenkin's manage
page.
Merge branch 'ssl-support-nginx' into patches