Configuring Railo Express to use the webroot of your choice.

The other day I posted about how I configure Railo 3.1 and Apache on Windows to use a web root in the location of my choosing. That was on my live server so today I thought I would post on how I set up my development machine. I choose to run Railo Express on my laptop to develop with and I prefer to keep my web files seperate from the Railo express files. Just like with the regular version of Railo you can modify your resin.conf file to make these types of changes. It is as simple as adding a host section to your resin.conf like so:

<host id="127.0.0.1">
    <web-app id="/" root-directory="e:/dev/examplesite_1/" />
</host>

To use multiple sites you could create multiple hosts with actual domain names and then modify your hosts file to point those addresses to your local machine.

Comments

Write your comment

(it will not be displayed)

Leave this field empty: