Redirecting requests on port 80 to port 443

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Redirecting requests on port 80 to port 443

995 Views
jesperevertsson
Contributor IV

Hi, after enabling RTCSCFG_ENABLE_SSL in user_config.h I've noticed that the web server stops listening on port 80 completely and only listens to port 443. This means that I have to write https://192.168.XXX.XXX in the browser to access the web server in our product. Is there any way to make the HTTP server in MQX to listen to port 80 as well and redirect all connections to port 443? That way it would be enough to write 192.168.XXX.XXX in the browser.

Regards, Jesper Evertsson

Labels (1)
Tags (1)
0 Kudos
2 Replies

691 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Jesper:

I haven't ever tried this, I think something like NAT should be enabled to redirect request on port 80 to port 443. But currently no out of the box solution for this for the HTTPS.

Regards

Daniel

0 Kudos

691 Views
jesperevertsson
Contributor IV

Hello Daniel, thanks for the reply. I'm not really sure how things like this works. But for example, when I type "community.nxp.com" in my browser I get an https connection automatically without having to explicitly type "https://". This is what I would like to happen with my program as well, but I have no idea what is needed for this. Or if it is possible at all with MQX.

Regards, Jesper

0 Kudos