How to Add a Host Alias to Tomcat

If you want to add additional domain aliases to your Mura Tomcat instance, you will need to add a custom alias element to your application's {Tomcat}/conf/server.xml <Alias> element. By default, the Tomcat <Host> element defined in your server.xml looks like this:

<Host name="localhost" 
	appBase="webapps" 
	unpackWARs="true" 
	autoDeploy="true" 
	xmlValidation="false" 
	xmlNamespaceAware="false">
</Host>

To add an additional host alias you simply add a nested <Alias> element to the above <Host> element example.

<Host name="localhost" 
	appBase="webapps" 
	unpackWARs="true" 
	autoDeploy="true" 
	xmlValidation="false" 
	xmlNamespaceAware="false">
		<Alias>example.mura.local</Alias>
</Host>

In addition, you will need to configure a site within your Mura instance to be bound to the new Tomcat custom host alias. This is done within Mura's site settings by either setting it as a site's domain, or domain alias.