# Reverse SSL proxy for jetty

**URL:** <https://www.ruby-forum.com/t/reverse-ssl-proxy-for-jetty/215309>\
**Category:** NGINX\
**Created:** [December 29, 2011, 10:55pm UTC](https://www.ruby-forum.com/t/reverse-ssl-proxy-for-jetty/215309 "2011-12-29T22:55:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [December 29, 2011, 10:55pm UTC](https://www.ruby-forum.com/t/reverse-ssl-proxy-for-jetty/215309/1 "2011-12-29T22:55:29Z")

</div>

Hi,

I’m trying to use nginx as a reverse-proxy in front of a jetty (running  
artifactory[^1](http://wiki.jfrog.org/confluence/display/RTF/Running+Behind+Apache+HTTPd)).

HTTPS → NGINX → HTTP → Jetty

In plain HTTP it works like a charm, but HTTPS fails. Jetty doesn’t  
recognizes the $scheme. I tried

```
    add_header Front-End-Https on;
    proxy_set_header X-Forwarded-Proto https;

```

Jetty or Artifactory ignores the protocol and some links are calculated  
as http:// others as relative links (which works). For Jetty it should  
work as stated here[^2](http://wiki.eclipse.org/Jetty/Tutorial/Apache#Proxying_SSL_on_Apache_to_HTTP_on_Jetty) .

May be there is something magic I can’t see?  
Can you share your config

Thanks for your help

Micha
