I have created a domain (domain.com) and activated LetsEncrypt SSL, then I added sub-domain, like media.domain.com and activated SSL on it too.
Now problem is now https://media.domain.com and http://media.domain.com redirect to https://domain.com.
how have you proceed to activate SSL on your subdomain ?
ee site create subdomain --php–letsencrypt
EE doesn’t support subdomain with letsencrypt (it try to validate www.subdomain.domain.tld), so you should take a look in files in /etc/nginx/conf.d to check if there is a file forcessl-yoursubdomain.domain.tld