Welcome! Log In Create A New Profile

Advanced

Re: https to http error "too many redirects"

March 20, 2015 04:08AM
Thanks for reply!

But, I still saw error.

400 Bad Request
The plain HTTP request was sent to HTTPS port

this setting is wrong?



map $request_uri $example_org_preferred_proto {
default "https";
~^/mobile/PayOnlyResult.do "http";
~^/kor/companyBrand.do "http";
}

server {
listen 443 ssl;
listen 80;
server_name www.aaa.com;

charset utf-8;

ssl on;
ssl_certificate D:/nginx-1.5.2/ssl/cert.pem;
ssl_certificate_key D:/nginx-1.5.2/ssl/key.pem;
ssl_verify_client off;

if ($scheme != $example_org_preferred_proto) {
return 301 $example_org_preferred_proto://$server_name:88$request_uri;
}

location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_buffering off;
proxy_connect_timeout 60;
proxy_read_timeout 60;
proxy_pass http://wwwaaaacom;
proxy_ssl_session_reuse off;
}
}
Subject Author Posted

https to http error "too many redirects"

jinwon42 March 19, 2015 10:29PM

Re: https to http error "too many redirects"

Dmitry Pryadko March 20, 2015 03:32AM

Re: https to http error "too many redirects"

jinwon42 March 20, 2015 04:08AM

Re: https to http error "too many redirects"

Dmitry Pryadko March 20, 2015 04:34AM

Re: https to http error "too many redirects"

jinwon42 March 20, 2015 04:48AM

Re: https to http error "too many redirects"

Daniel Mostertman March 20, 2015 04:58AM

Re: https to http error "too many redirects"

jinwon42 March 20, 2015 05:20AM

Re: https to http error "too many redirects"

Daniël Mostertman March 20, 2015 05:38AM

Re: https to http error "too many redirects"

Gena Makhomed March 20, 2015 06:16AM

Re: https to http error "too many redirects"

dewanggaba March 20, 2015 06:38AM

Re: https to http error "too many redirects"

Gena Makhomed March 20, 2015 07:06AM

Re: https to http error "too many redirects"

Daniël Mostertman March 20, 2015 07:14AM

Re: https to http error "too many redirects"

Gena Makhomed March 20, 2015 07:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 100
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready