Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a secure website that I would like to proxy behind nginx. Is this possible? How?

So, it will be like this:

Client --> https --> nginx --> htts --> other site

I have seen others ask the same question but have been unable to find a definitive answer.

Thanks!

EV

share|improve this question

1 Answer 1

up vote 0 down vote accepted

You'd need to setup SSL on your nginx, which means that you need an SSL certificate and the configs for nginx to support SSL. Then you add a proxy pass rule like

proxy_pass https://exapmle.com:443

I haven't tested it yet but maybe it works

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.