Welcome! Log In Create A New Profile

Advanced

workaround to handle HTTP and HTTPS on same port?

Nader Ziada
October 18, 2017 11:56AM
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
Subject Author Posted

workaround to handle HTTP and HTTPS on same port?

Nader Ziada October 18, 2017 11:56AM

RE: workaround to handle HTTP and HTTPS on same port?

elico October 18, 2017 05:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 149
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready