It's not currently possible to wildcard a host entry in Tomcat. You have
two alternatives, however:
1) Set the domain that you need wildcards for as the "Default" host and
any request that Tomcat doesn't know how to resolve will be passed on to
the default host. You can then resolve the domain programmatically in
order to serve up content for it.
2) The mod_cfml project (www.modcfml.org) is designed to dynamically add
hosts to Tomcat using information passed to it from the web server. If
your hosts will be defined in your web server, then you can pass on
their host information to mod_cfml and mod_cfml will create the tomcat
host entries for you dynamically.
Hope one of those will work for you.
Warm Regards,
Jordan Michaels
On 05/08/2012 02:57 PM, Jason King wrote:
Ok.. This might be leaning into a tomcat issue.
I talked to my host (i work there) and they'll let me use the wildcard,
they just don't recommend it because my webserver will see any subdomain
as a somewhat valid request and answer to it.
So I have the wildcard setup and anything.company.com
<http://anything.company.com> will forward requests to my webserver.
Problem is that I can't get the wild card entry in tomcat to work. It's
just seeing requests as invalid hostnames and taking me to a 404 page
(as if I don't have a context configured).
Googling now...
--
online documentation: http://openbd.org/manual/
google+ hints/tips: https://plus.google.com/115990347459711259462
http://groups.google.com/group/openbd?hl=en
--
online documentation: http://openbd.org/manual/
google+ hints/tips: https://plus.google.com/115990347459711259462
http://groups.google.com/group/openbd?hl=en