archiva/jetty with nginx ssl proxy: getting http responses

Posted by numb3rs1x on Server Fault See other posts from Server Fault or by numb3rs1x
Published on 2013-09-25T14:20:09Z Indexed on 2014/06/06 3:28 UTC
Read the original article Hit count: 442

Filed under:
|
|

I've been banging my head against this for awhile now. I have an archiva repository server I'm trying to proxy through nginx with ssl offloading. archiva has a jetty server built in that is listening on port 8008 of the localhost. I'm able to get to the archiva server through the proxy, but it wants to return http responses and not https responses. I thought that setting the following headers was supposed to tell the server to respond with https:

            proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header        X-Forwarded-Proto https;
        proxy_redirect     off;

I also tried "proxy_redirect default;". It seems that the jetty/archiva server is not recognizing these or there needs to be something more. I've been scouring forums and as far as I can tell, everything is set as it should be. I'm not sure where else to check at this point. Has anyone had any success with this?

© Server Fault or respective owner

Related posts about nginx

Related posts about ssl