Forum

Rewrite non-existent subdomains

Newbie
12 February 2016, 01:30
Hi,
i have a certificate, valid for domain.tld an 3 subdomains. In hiawatha.conf i have configured the 3 virtualhosts for the subdomains and last the virtualhost for domain.tld and *.domain.tld.
When i call a non-existent subdomain, then i get an error: SSL_ERROR_BAD_CERT_DOMAIN, that's right because the certificate is not valid for this subdomain.
How can i configure hiawatha, that all calls of non-existent subdomains will be rewrite to domain.tld?
Hugo Leisink
12 February 2016, 15:34
If your goal is to get rid of the TLS/SSL error message, this won't help. Because the TLS connection comes before any rewriting or redirecting can be done.
This topic has been closed.