httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torge Riedel <torgerie...@gmx.de>
Subject [users@httpd] Redirect all unconfigured sub-domains to specific sub-domain
Date Mon, 15 May 2017 16:03:44 GMT
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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message