Hi,
is there any chance to configure a virtual host in JBoss 5.1 to redirect any subdomain to one configured virtual host. Examples of the subdomains:
sub1.domain.tld
sub2.domain.tld
sub3.domain.tld
subn.domain.tld
The goal is to read a subdomain as configuration element in a servlet filter and give the caller his personal view to the application in ervery request. But unfortunately the Alias alement can't handle wildcards:
<Host name="vhost-name" autoDeploy="false" deployOnStartup="false" deployXML="false"> <Alias>domain.tld</Alias> <Alias>*.domain.tld</Alias> </Host>
<jboss-web> <context-root>/</context-root> <virtual-host>vhost-name</virtual-host> </jboss-web>