# Upstream SSL Support

**URL:** <https://www.ruby-forum.com/t/upstream-ssl-support/191166>\
**Category:** NGINX\
**Created:** [July 6, 2010, 9:33pm UTC](https://www.ruby-forum.com/t/upstream-ssl-support/191166 "2010-07-06T21:33:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Troy\_Bartlett](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ecae2f/32.png) [@Troy\_Bartlett](https://www.ruby-forum.com/u/Troy_Bartlett)\
**Post date:** [July 6, 2010, 9:33pm UTC](https://www.ruby-forum.com/t/upstream-ssl-support/191166/1 "2010-07-06T21:33:09Z")

</div>

Hi,

I need an IMAP proxy with support for SSL on the backend/upstream side.  
I  
plan to use nginx for this, but I’m pretty sure it doesn’t support SSL  
on  
the upstream side. Can anyone confirm this?

Assuming it does not support it, I will need to add support for that. I  
figure a reasonable starting point would be to look at how it’s done for  
http. I see things online indicating there is support for that, but it’s  
unclear to me exactly how that works. Can anyone confirm that SSL is  
supported for http on the upstream side?

If there is upstream https support, what in the config file tells nginx  
to  
do that?

-Troy

---

<div class="post-metadata">

**Author:** ![Troy\_Bartlett](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ecae2f/32.png) [@Troy\_Bartlett](https://www.ruby-forum.com/u/Troy_Bartlett)\
**Post date:** [July 6, 2010, 10:13pm UTC](https://www.ruby-forum.com/t/upstream-ssl-support/191166/2 "2010-07-06T22:13:32Z")

</div>

Hi,

> If there is upstream https support, what in the config file tells nginx to  
> do that?

You just use “proxy\_pass https://…;” instead of “proxy\_pass  
http://…;”.

Scan ngx\_http\_upstream.c and ngx\_http\_proxy\_module.c for “#if  
(NGX\_HTTP\_SSL)” and you’ll find pretty much everything you need.

Best regards,  
Piotr S. \< [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) \>
