Month ago I wrote blog about "Installing RAILO with Tomcat" this is what I have first time installed RAILO on my PC. After getting success in that I tried to run multiple instances of RAILO for different site and even single site. Below is step by step guide to create multiple instance of RAILO.
Note: I assume that reader has already gone through my first blog on installing RAILO on Tomcat.
Copy RAILO jar files into tomcat folder under "railojars".
Open catalina.properties file and add ${catalina.home}/railojars/*.jar in common.loader (see more).
Create new folder "instance1" under tomcat folder.
Create bin,conf,logs,temp and webapps folder under instance1.
Copy catlina.properties,web.xml and server.xml from tomcat/conf to instance1/conf folder.
Open server.xml file and change port numbers and make sure it doesn't conflict.
Open web.xml file and servlet settings explain in my first blog.
That's it and your instance is ready to go...
Create start.bat file under instance1/bin folder and following code which says to tomcat which is base file tomcat need to consider.
set JAVA_HOME="%JAVA_HOME%"
set "CATALINA_HOME=e:\webserver1\apache-tomcat"
set "CATALINA_BASE=e:\webserver1\apache-tomcat\instance1"
%CATALINA_HOME%\bin\catalina.bat start
Now run your bat file and you will be able to run cfm files on configured port.
Now to create another instance create new folder instance2 and copy all files from instance1. Now open server.xml and change port number and make sure doesn't conflict. Also make relevant changes in startup.bat file and run it.
Cool.. two different instances running on same computer.
Now to run single site on different instances.....
Nothing to do much just open server.xml file of both instances and configure your site as explain in my first blog.
Sample Modal Window
This is just a sample…
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent suscipit iaculis libero sed tristique. Quisque mollis dolor non tellus placerat vitae sodales lectus porta. Curabitur ut suscipit tellus. Maecenas rhoncus, ante vitae vehicula vestibulum, metus sapien dapibus tellus, et mattis dolor neque vitae nisl. Nullam eleifend ultrices ipsum eget pretium. Curabitur semper metus ut ante adipiscing nec volutpat sem rutrum. Nullam a nisi lacus, non interdum ante. Vivamus ante augue, commodo vel egestas sed, pharetra nec dui. Quisque sed tellus felis. Donec ipsum mauris, sagittis eu accumsan in, aliquam non ipsum.
Vestibulum tempor nunc nec felis scelerisque eget elementum erat dignissim. Ut vel ipsum mollis orci venenatis luctus. Aenean vehicula quam vel quam porttitor ac iaculis elit pulvinar. Proin consequat, ipsum eu venenatis semper, justo turpis posuere tortor, ac placerat metus nisl et lectus. Nulla cursus dui id nunc ullamcorper sed semper nisl lobortis. Aliquam erat volutpat. Phasellus arcu ante, imperdiet in ornare sed, laoreet eu massa.