using nginx as proxy from http to https

Francis Daly francis at
Thu Oct 25 16:06:48 UTC 2012

On Thu, Oct 25, 2012 at 10:17:08AM -0400, mgenov wrote:

Hi there,

>         location /test_server {
>                 proxy_pass     
>                 proxy_set_header  X-Real-IP  $remote_addr;
>         }
> The problem is that when I send request to the nginx server I get 505 error
> from remote server. If I execute the request directly to the remote server
> it works as expected.

HTTP 505 means HTTP Version Not Supported.

What version do you use when you execute the request directly?

What version does nginx use?

Do you see a different response from

curl -i -k


curl -i -k -0


Good luck,

Francis Daly        francis at

More information about the nginx mailing list