Redirect http:8080 to https:8443

ST smntov at gmail.com
Mon Jun 5 13:01:17 UTC 2017


Thank you for the fast response.
curl shows correct output, like yours, however in Chromium/Firefox only
http redirects to https while port remains the same - 8080, so I get the
error: "This site can’t provide a secure connection"

If I clear cache it works sometimes...

On Mon, 2017-06-05 at 13:48 +0100, Miguel C wrote:
> 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)
> 
> 
> 
> 
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx



More information about the nginx mailing list