Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.



share|improve this question
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


I haven't tested it yet but maybe it works

share|improve this answer

Your Answer


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.