subdomain is not redirecting to main domain but different virtual host

Viewed 17

I am hosting multiple domains from the same server. Each domain is having multiple subdomains. Let's say I have the following domains: example1.com, and example2.com. Also, example1.com has subdomain1.example1.com.

I redirect http to https with SSL certificate on example1.com and *.example1.com and example2.com.

My example1.com and example2.com are redirected fine but subdomain1.example1.com is not redirecting and it is trying to get the certificate from example2.com.

My application is Django and I am using mod-wsgi for deployment.

0 Answers
Related