Sub-Domain Redirect To Main Domain


#1

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.


#2

Hello, how have you proceed to activate SSL on your subdomain ?


#3

ee site create subdomain --php–letsencrypt


#4

Hello,

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


#5

I have 2 sites running on EE, let say abc.com with a sub domain media.abc.com and xyz.com with sub domain media.xyz.com

All websites are working very fine, but when I try to access media.xyz.com, it opens abc. com.

I dont know what is wrong here


#6

May I ask if this is still a problem, or if you resolved it?


#7

I had reinstalled EasyEngine, between that problem was not solved.


#8

Are you trying to use a single installation of EE and a single publicly facing IP address with both your domain and your subdomain?

It is possible to use EE with Subdomains, though it is probably not as dynamic as one would hope. I do it all the time. It doesn’t necessarily have to take modifications to your EE config, though it does take a separate VPS with it’s own EE installation.


#9