Adding new site to Railo03 Oct 2009 | Comments
Just a little note for myself as I am trying to get the workflow going on setting up new site in Railo.
In here I am using the application server Resin that comes with Railo – I would like to change this to Tomcat one day to mimic the my hosted environment at Viviotech.
Here I created a new site called personal.cbcommerce:
1. Add site to hosts.txt
2. Edit Apache vhosts file
[xml] <VirtualHost *:80> ServerAdmin email@example.com DocumentRoot "C:/prj/personal/cbcommerce" ServerName personal.cbcommerce ResinConfigServer localhost 6800 <Location /caucho-status> SetHandler caucho-status </Location> </VirtualHost> [/xml]
3. Edit resin.conf
Add the following:
[xml] <host id="personal.cbcommerce"> <web-app id="/" root-directory="c:/prj/personal/cbcommerce" /> </host> [/xml]
Restart Apache server at this point.
4. Set up Railo local settings
Access the site’s admin on: http://personal.cbcommerce/railo-context/admin/web.cfm There we can set up datasources and necessary mappings.