[prev in list] [next in list] [prev in thread] [next in thread]
List: nginx
Subject: RE: workaround to handle HTTP and HTTPS on same port?
From: "Eliezer Croitoru" <eliezer () ngtech ! co ! il>
Date: 2017-10-18 20:57:53
Message-ID: 0d3e01d34853$c44d6bd0$4ce84370$ () ngtech ! co ! il
[Download RAW message or body]
Have you tried using 307 or 308 redirect codes?
It works for any request which contains a body like POST\PUT\OTHERS.
Eliezer
----
http://ngtech.co.il/lmgtfy/
Linux System Administrator
Mobile: +972-5-28704261
Email: eliezer@ngtech.co.il
From: nginx [mailto:nginx-bounces@nginx.org] On Behalf Of Nader Ziada
Sent: Wednesday, October 18, 2017 18:55
To: nginx@nginx.org
Subject: workaround to handle HTTP and HTTPS on same port?
Hi,
In order to support HTTP and HTTPS on the same port we had to enable SSL for that \
listen port in the nginx config and remap the 497 nginx error code to a permanent \
redirect. To be transparent to the client making the request (written in go), we used \
"error_page 497 301 =200 $request_uri;".
This seems to work for the GET requests, but not for PUT requests.
This is a temporary workaround that we need while the more permanent solution is \
being worked on, so we're wondering if anybody here had any workarounds or tips on \
how to achieve that.
Thanks!
Nader
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic