I have two site on two different web server(NGINX & nodejs) on my CentOS server.
in my NGINX config, I have set http://example.com to be redirected to https://example.com permanently.
on the other side, the URL http://example.com:8080 are handle by nodejs and is not redirected to anywhere.
Scenario
When I request http://example.com in my browser (Chrome, firefox or safari), it's redirected to https://example.com and this is OK. when I enter http://example.com:8080, it's also redirected to https://example.com:8080 and this is not correct.
When I clear browser cache, the URL http://example.com:8080 worked correctly but after entring http://example.com, the URL http://example.com:8080 redirected again to HTTPS. Can anyone help me about this issue?