Forum

Wildcard for Hostname of a Virtual Host

Kai
22 July 2014, 09:51
Dear all,

I have the following issue to be solved:
We have a number of TLD, e.g. .com, .net, .de, .biz, .at and for all of those TLD, we do have some subdomains, e.g.

- download.mydomain.com
- download.mydomain.net
- download.mydomain.de
- download.mydomain.biz
- download.mydomain.at

What I would like to do is to redirect all requests to any of those subdomains to our old domain download.olddomain.de.

I configured a toolkit rule, which matches the string "download.mydomain" and then redirects to the old domain. This seems to work fine, at least according to wigwam.

However, If I configure the virtual host, I tried Hostname = download.xchangemanager.* , but this didn't work.

Question: Is it supported to set a wildcard at the end of the hostname, because the manual pages state that a hostname "... may start with a wildcard ..." ??

Maybe, I am thinking too complicated, any hint how I can achieve this configuration in an easier way ??

Any help is very appreciated, many tx.


Cheers

Kai



Hiawatha version: 9.5
Operating System: CentOS 6.4
Hugo Leisink
31 July 2014, 08:41
Just simply specify all hostnames for the Hostname setting.
VirtualHost {
Hostname = download.olddomain.de, download.mydomain.com, download.mydomain.net, download.mydomain.de, download.mydomain.biz, download.mydomain.at
...
}
This topic has been closed.