Welcome! Log In Create A New Profile

Advanced

Re: The plain HTTP request was sent to HTTPS port

August 21, 2009 09:08AM
I've come across this setting for nginx, but am not sure if this will solve
it?

proxy_set_header X_FORWARDED_PROTO https;



2009/8/21 Igor Sysoev

> On Thu, Aug 20, 2009 at 09:05:18PM -0400, Ilan Berkner wrote:
>
> > So we're doing a credit card transaction and it comes back from paypal on
> > the return trip with that error (on our end). The reason is that the
> return
> > URL is:
> >
> > http://www.domain.com:443/....
> >
> > so its trying to access port 443 via http.
> >
> > I won't know till tomorrow, but I hope that we can adjust the return URL
> to
> > correctly be "https://www.domain.com... than it works as it should.
> >
> > My question is, should I put something in the Nginx configuration file
> that
> > if someone tries to access "http" using port 443, redirect them to https?
> > If so, how? Is that the correct way of going about it outside of
> correcting
> > the return URL (which of course would be the ideal way), but in general,
> > should requests coming to http://www.domain.com:443 be forced to HTTPS?
>
> nginx supports some internal error codes to handle error_page redirection:
>
> error_page 497 https://$host$request_uri;
>
> 497 means that plain HTTP request was sent to HTTPS port.
>
>
> --
> Igor Sysoev
> http://sysoev.ru/en/
>
>
SubjectAuthorPosted

The plain HTTP request was sent to HTTPS port

iberknerAugust 20, 2009 09:05PM

Re: The plain HTTP request was sent to HTTPS port

Igor SysoevAugust 21, 2009 01:35AM

Re: The plain HTTP request was sent to HTTPS port

iberknerAugust 21, 2009 09:08AM

Re: The plain HTTP request was sent to HTTPS port

Igor SysoevAugust 21, 2009 09:16AM

Re: The plain HTTP request was sent to HTTPS port

iberknerAugust 21, 2009 09:53AM

Re: The plain HTTP request was sent to HTTPS port

Igor SysoevAugust 21, 2009 10:21AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 78
Record Number of Users: 5 on December 17, 2014
Record Number of Guests: 154 on December 17, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready