LeeChilli
By:
LeeChilli

Ubuntu, Letsencrypt - Redirect from a non subdomain

August 31, 2017 170 views
Apache Let's Encrypt Ubuntu

We have a main website (main.com) and some subdomain (1.main.com) website for the same domain on one server all using HTTPS.

If you try and access the main domain using a subdomain not in use (2.main.com) it'll take you to the last subdomain setup on the website (1.main.com) rather than the main website (main.com)

Is there a way to point the non setup subdomains to correctly redirect to the main website.

Be the first one to answer this question.