Using Railo and Resin with domain aliases
There are many guides out there to help you in setting up Railo with IIS. But none of the ones that I found helped you to configure domain aliases.
So I am going to give you a quick example of the way that I have used to configure my domain aliases. I'm sure there are some easier ways of doing it but this is how I did it.
There is a file called resin.conf under the conf folder in you Railo install folder. At the bottom of this file you will find a "</cluster>" tag.
Just before this you will need to add in this piece of code. The host id is the aliases, in this example allmead.com. You will then need to enter the root directory of the actual site. Then you will need to enter where the web site is.
<root-directory>C:/Inetpub/vhosts/allmead.co.uk</root-directory>
<web-app id="/" document-directory="C:/Inetpub/vhosts/allmead.co.uk/httpdocs"/>
</host>
<host id="www.allmead.com">
<root-directory>C:/Inetpub/vhosts/allmead.co.uk</root-directory>
<web-app id="/" document-directory="C:/Inetpub/vhosts/allmead.co.uk/httpdocs"/>
</host>
This is very simple to do.
Just remember you will need to restart the Railo server service after you save the file.
