Linux AMI, where is permanent redirection?


#1

I’ve installed Letsencrypt certificate on EC2 Linux AMI (Amazon) and all works fine,
now when i go to “http://www.mysite.com” i’m redirected to "https://www.mysite.com"
But now i can’t understand how apache is performing permanent redirect from http to https.
In fact neither httpd.conf nor ssl.conf has the directive “Redirect permanent” implemented.
I’ve also disabled .htaccess, but apache still redirect from http to https!!

But it’s magic?
Seriously,i can’t understand why.


#2

You probably set the HSTS header, you can’t find the redirect because from that point on it’s all done client side.


#3

Possibly this - https://www.troyhunt.com/understanding-http-strict-transport/


#4

I did not know that i have set HSTS, but now i’m happy to know this feature.

Thank you
Fluc


#5

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.