Redirect all unconfigured sub-domains to specific sub-domain

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm using Apache 2.2 and currently have the following configuration files:

00-default                    -> redirect non-https-URLs to https-URLs
00-default-ssl               -> default configuration for https://mydomain.de and https://www.mydomain.de

Then several files

20-sub.mydomain.de    -> configuration for https://sub.mydomain.de

So what I want to do is if a user browses to my domain with an unconfigured sub domain, he is redirected to lets say https://www.mydomain.de

Reason: Currently he gets a certificate error, cause cert (letsencrypt) is only valid https://mydomain.de and https://www.mydomain.de

Any hints?

Thanks in advance

Torge


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux