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 pull request #3 from blt04/ssl-support-nginx

Use proxy_redirect to fix Location headers