Redirect http:8080 to https:8443

Miguel C miguelmclara at gmail.com
Mon Jun 5 12:48:28 UTC 2017


That should work, whats the output you get using curl or httpie.

the same config works fine for me:

$ curl -I http://127.0.0.1:8080

HTTP/1.1 301 Moved Permanently
Server: nginx/1.10.0 (Ubuntu)
Date: Mon, 05 Jun 2017 12:45:13 GMT
Content-Type: text/html
Content-Length: 194
Connection: keep-alive
Location: https://127.0.0.1:8443/ <---------------------------------------

$ http -h http://127.0.0.1:8080
HTTP/1.1 301 Moved Permanently
Connection: keep-alive
Content-Length: 194
Content-Type: text/html
Date: Mon, 05 Jun 2017 12:45:22 GMT
Location: https://127.0.0.1:8443/ <--------------------------------------
Server: nginx/1.10.0 (Ubuntu)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20170605/ef9fc292/attachment.html>


More information about the nginx mailing list