AFAIK, you can't proxy directly to https. Why are you trying to do this. Generally you terminate SSL on nginx the proxy to something else in cases like this. If you really (for some reason) needed to proxy over https, you could put something like stunnel (or stud) and have nginx talk to it.