The docs at https://tomcat.apache.org/tomcat-9.0-doc/config/host.html
say I should be able to use a name attribute starting "*." to use
wildcard hosts in Tomcat's server.xml
I have downloaded the 9.0.37 distribution and replaced the default
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true">
...
</Host>
with
<Host name="*.dev.foo.co.uk" unpackWARs="true" autoDeploy="true"
>
<Context path="" docBase="/tmp" /></Host>
<Host name="localhost" unpackWARs="true" autoDeploy="true" >
<Context path="" docBase="/tmp" /></Host>
however Tomcat fails to deploy, logging "SEVERE [main]
org.apache.tomcat.util.modeler.Registry.registerComponent Error
registering MBean" ultimately "Caused by:
java.lang.IllegalArgumentException: Repository: cannot add mbean for
pattern name Catalina:type=Host,host=*.dev.foo.co.uk
Am I mis-reading the docs ?
Tom Chiverton --
*Tom Chiverton*
Lead Developer
e: [email protected] <mailto:[email protected]>
p: 0161 817 2929
t: @extravision
w: extravision.com
Extravision <https://www.extravision.com>
Registered in the UK at: Tomorrow, MediaCityUK, Salford M50 2AB.
Company Reg No: 05017214 VAT: GB 824 5386 19
This e-mail is intended solely for the person to whom it is addressed
and may contain confidential or privileged information. Any views or
opinions presented in this e-mail are solely of the author and do not
necessarily represent those of Extravision Ltd.
______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________