Now that we've got Tomcat, Railo and Apache httpd up and running, lets connect Tomcat and Apache.
For this we will need a mod_jk connector. The binary can be found here.
There is no x64 connector as there is no x64 official release of Apache httpd, so we will be using the x32 connector. In my case I downloaded mod_jk-1.2.28-httpd-2.2.3.so from the win32 folder. Download this file and put it in C:\Apache2\modules. Now rename it to mod_jk.so
Create a file in c:\Apache2\conf\extra called workers.properties and put this into the file
2 worker.list=worker1
3 # Set properties for worker1 (ajp13)
4 worker.worker1.type=ajp13
5 worker.worker1.host=localhost
6 worker.worker1.port=8009
Now lets download Railo and lets set it up. We want to get the custom one, the jars, in my case "railo-3.1.2.001-jars.zip (34 MB)". Create a Railo folder in the Tomcat folder, in my case "C:\Program Files (x86)\Apache Software Foundation\Tomcat 6.0".
Now open up the railo zip file and put the jar files from the railo-3.1.2.001-jars into the railo folder we just created.
Now edit the catalina.properties file that was in Tomcat conf folder, in my case "C:\Program Files (x86)\Apache Software Foundation\Tomcat 6.0\conf". Find the line that says "common.loader=${catalina.home}/lib,${catalina.home}/lib/*.jar" and edit it to say "common.loader=${catalina.home}/lib,${catalina.home}/lib/*.jar,${catalina.home}/railo/*.jar"
Now open tomcat-users.xml and change the encoding to utf-8. At the top where it says "<?xml version='1.0' encoding='cp1252'?>" and change it to "<?xml version='1.0' encoding='utf-8'?>" This is needed due to some weird Tomcat bug on windows.
Now lets open web.xml in the Tomcat's conf directory. Just before the "Built In Servlet Mappings" add the following:
2 <servlet-name>RailoCFMLServlet</servlet-name>
3 <description>CFML runtime Engine</description>
4 <servlet-class>railo.loader.servlet.CFMLServlet</servlet-class>
5 <init-param>
6<param-name>configuration</param-name>
7<param-value>/WEB-INF/railo</param-value>
8<description>Configuration directory</description>
9</init-param>
10 <!-- init-param>
11<param-name>railo-server-root</param-name>
12<param-value>.</param-value>
13<description>directory where railo root directory is stored</description>
14</init-param -->
15 <load-on-startup>1</load-on-startup>
16</servlet>
17<servlet>
18 <servlet-name>RailoAMFServlet</servlet-name>
19 <description>AMF Servlet for flash remoting</description>
20 <servlet-class>railo.loader.servlet.AMFServlet</servlet-class>
21 <load-on-startup>1</load-on-startup>
22</servlet>
23<servlet>
24 <servlet-name>RailoFileServlet</servlet-name>
25 <description>File Servlet for simple files</description>
26 <servlet-class>railo.loader.servlet.FileServlet</servlet-class>
27 <load-on-startup>2</load-on-startup>
28</servlet>
Now at the end of the servlet mapping section, add the following
2 <servlet-name>RailoCFMLServlet</servlet-name>
3 <url-pattern>*.cfm</url-pattern>
4</servlet-mapping>
5<servlet-mapping>
6 <servlet-name>RailoCFMLServlet</servlet-name>
7 <url-pattern>*.cfml</url-pattern>
8</servlet-mapping>
9<servlet-mapping>
10 <servlet-name>RailoCFMLServlet</servlet-name>
11 <url-pattern>*.cfc</url-pattern>
12</servlet-mapping>
13<servlet-mapping>
14 <servlet-name>RailoAMFServlet</servlet-name>
15 <url-pattern>/flashservices/gateway/*</url-pattern>
16</servlet-mapping>
17<servlet-mapping>
18 <!-- could be RailoFileServlet -->
19 <servlet-name>default</servlet-name>
20 <url-pattern>/</url-pattern>
21</servlet-mapping>
Now open up server.xml and at the end of the file inside the Engine tag, we'll add a new host definition.
2 <Context path="" docBase="c:/websites/railotest" />
3</Host>
Now lets go back to our httpd-vhosts.conf Apache file. We need to add the following (I do this outside of any virtualhost definitions.
2LoadModule jk_module modules/mod_jk.so
3# Where to find workers.properties
4JkWorkersFile conf/extra/workers.properties
5# Where to put jk shared memory
6JkShmFile logs/mod_jk.shm
7# Where to put jk logs
8JkLogFile logs/mod_jk.log
9# Set the jk log level [debug/error/info]
10JkLogLevel info
11# Select the timestamp log format
12JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
We also need to add the following to the VirtualHost definition
2 JkMount /*.cfm worker1
The full virtualhost definition should look like
2 DocumentRoot "C:/websites/railotest"
3 ServerName railotest
4 ErrorLog "logs/railotest.com-error.log"
5 CustomLog "logs/railotest-access.log" common
6 # Send requests for cfm files to worker named worker1
7 JkMount /*.cfm worker1
8</VirtualHost>
Now if we restart Tomcat and Apache we should be able to hit http://railotest in our browser and see the debugging info. We will also see a WEB-INF folder created inside c:\websites\railotest.
Now lets put in an alias for the railo-context so that we can get to the admin. Inside the virtual host add
Now restart Apache and we should be able to get to the Web Administrator for this host by going to http://railotest/railo-context/admin.cfm
#1 by Marwan Narian on 12/23/09 - 4:33 PM
Maybe in the wrong place. Once I remove them apache starts.
# Load mod_jk module
LoadModule jk_module modules/mod_jk.so
# Where to find workers.properties
JkWorkersFile conf/extra/workers.properties
# Where to put jk shared memory
JkShmFile logs/mod_jk.shm
# Where to put jk logs
JkLogFile logs/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevel info
# Select the timestamp log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
#2 by coachbags on 3/16/10 - 9:15 PM
#3 by allods gold on 3/22/10 - 9:11 PM
#4 by ssss on 4/18/10 - 11:31 PM
#5 by watches on 5/1/10 - 11:50 PM
#6 by linda on 5/5/10 - 6:15 AM
#7 by 丰胸 on 5/20/10 - 1:00 AM
#8 by chanel jewelry on 5/25/10 - 2:52 AM
#9 by okley sunglasses on 5/28/10 - 12:18 PM
#10 by ghd on 5/31/10 - 8:40 PM
<a href="http://www.ghdhairs.com/chiflatiron-c-75.html"... flat iron</strong></em></a>. As we know, the
<a href="http://www.ghdhairs.com/ghdivstyler-p-34.html"... iv styler</em></strong></a> is the first class and famous brand. So it is the good chance for you. Don't let it pass. If you are looking for the
<a href="http://www.ghdhairs.com/babylissflatiron-p-48.html... flat iron</strong></em></a>, you have come to the right place for
<a href="http://www.ghdhairs.com/instylerrotatingiron-p-52.... rotating iron</a>.
#11 by christian louboutin on 6/3/10 - 7:13 AM
However, attitudes have changed, consumers are more educated and if they are prepared to pay a few thousand euros for a bespoke suit with hand-stitched buttonholes and a canvas interlining and purchase a crocodile <a href="http://www.echristianlouboutincom.com/christian-lo... Louboutin Pumps</b></a>, then they are not going to be satisfied with a cynical piece of battery-powered brand extension.
Gildo Zegna of the eponymous men's apparel brand, explains what prompted him to work on a watch with Gino Macaluso, proprietor of Girard <a href="http://www.echristianlouboutincom.com/christian-lo... Louboutin Sandals</b></a>.
#12 by jdskjskldfj on 6/11/10 - 5:29 AM
#13 by asdw on 6/17/10 - 3:03 AM
#14 by vibramfivefingers on 6/18/10 - 10:32 AM
#15 by vibramfivefingers on 6/18/10 - 10:34 AM
#16 by Pet Forest Gold on 6/18/10 - 11:39 PM
#17 by sfdjlkj on 6/21/10 - 4:26 AM
#18 by dfsdkfj on 6/21/10 - 4:37 AM
#19 by mbt on 6/22/10 - 12:12 PM
<strong><a href="http://www.trade161.com/mbt-tembea-shoes-c-662.htm... Tembea shoes </a>
sole is patented structure, blazon of ambit appearance reasonable position, anniversary footfall can advance your close circulation, in short, walking, not alone accept <strong><a href="http://www.trade161.com/mbt-tunisha-shoes-c-561.ht... Tunisha shoes</a>
in training and massage. MBT Shoes atramentous are the alone two models, something that is about new. The aboriginal type, style, sports and aboriginal design, but just like <strong><a href="http://www.trade161.com/mbt-voi-c-565.html"&g... Voi </a>architecture is chip trunk. Secondly, the architecture of added contempo is the bifold configuration.
#20 by allods gold on 6/23/10 - 11:47 PM
#21 by coach sling bags on 7/2/10 - 6:14 AM
#22 by ghdstraighteners-au on 7/8/10 - 12:16 AM
#23 by glattejern ghd on 7/14/10 - 7:44 AM
http://www.myhairdiscount.com ghd fladjern
http://www.myhairdiscount.com ghd Denmark
#24 by mbtschuhe on 7/21/10 - 4:52 AM
#25 by r4cardsohot on 7/24/10 - 12:22 AM
#26 by christian louboutin on 7/24/10 - 1:31 AM
http://www.golfonlinediscount.com ping g15
http://www.pumpdiscount.com christian louboutin 2010
http://www.pumpdiscount.com christian louboutin 2010
http://www.tt88times.com Rolex watches
http://www.tt88times.com Rolex watches
#27 by aaa on 7/24/10 - 2:30 PM
#28 by ssk on 7/24/10 - 2:36 PM
#29 by California Escorts on 7/24/10 - 2:39 PM
#30 by r4cardsohot on 7/25/10 - 12:19 AM
http://www.r4cardsohot.com/
The <a href="http://www.r4cardsohot.com/"><strong>DS R4</strong></a> is the most popular version and the <a href="http://www.r4cardsohot.com/">R4 card,r4i card,m3i zero,nintendo ds r4 card,r4i dsi,r4 card for ds</a> has the capacity to store 2GB,4GB,8GB. This R4 card with amazing price and easy to use
#31 by adw on 7/28/10 - 3:49 AM
#32 by supra skakt shoes on 7/31/10 - 5:22 AM
<h1><a href="http://www.supra-shoes-cheap.com/supra-chad-muska-... chad muska skytop pattern yellow</strong></a>, supra chad muska skytop pattern yellow</h1><br><br />
<h1><a href="http://www.supra-shoes-cheap.com/supra-skytop-ns-s... skytop ns magenta black</strong></a>, supra skytop ns magenta black</h1><br><br />
#33 by ugg boots shop on 7/31/10 - 7:01 AM
#34 by christian louboutin on 8/4/10 - 6:07 AM
#35 by SDFSD on 8/5/10 - 5:10 AM
#36 by ugg boots shop on 8/5/10 - 6:30 AM
#37 by ugg boots shop on 8/5/10 - 6:39 AM
#38 by UGG Boots on 8/8/10 - 12:24 PM
#39 by UGG Boots on 8/8/10 - 12:31 PM
#40 by zongcheng01blog on 8/18/10 - 4:38 AM
the family left the room quietly for a moment and returned with a piece of cheese which he laid on the guest's plate. The visitor smiled, put the cheese into his mouth and then
said: "You must have better eyes than your mother, sonny. Where did you find the cheese?" "In the rat-trap, <a href="http://www.mbtshoesaleonline.com">mbt outlet</a> sir,"
replied the boy.
#41 by zongcheng01blog on 8/18/10 - 4:38 AM
One day, a father and his little son were going home. At this age, the boy was interested in all kinds of things and was always asking questions. Now, he asked, "What's the
meaning of the word 'Drunk', dad?" "Well, my son," his father replied, "look, there are standing two policemen. If I regard the two policemen as four then I am drunk."
"But, dad," the boy said, " there's only ONE policeman!"
http://www.coach-handbags-outlet.com/ coach bags outlet
#42 by ロレックスミルガウス on 8/23/10 - 12:53 AM
http://www.brand-well.com/rolex/milgauss
ロレックスチェリーニ チェリニウム
http://www.brand-well.com/rolex/cellinium
オメガコンステレーション
http://www.brand-well.com/omega/constellation
#43 by J12 Watch on 9/8/10 - 12:18 PM
<br>
<br>
#44 by hollister clothing on 9/10/10 - 4:06 AM
#45 by NIKE NINJA on 9/14/10 - 12:29 PM
#46 by Bottes uggs on 11/5/10 - 4:12 AM
<a href="http://www.fruggbottes.com/UGG-Enfant-Bottes-c-102... enfants</a>
#47 by fendi on 12/17/10 - 11:03 PM
#48 by burberry outlet on 5/16/11 - 6:33 AM
#49 by jerry on 6/13/11 - 6:31 AM
#50 by tiffey on 6/13/11 - 8:16 AM
#51 by Emal on 6/30/11 - 5:48 AM
#52 by sooojerseys on 11/9/11 - 3:06 AM
http://www.jetsfansshop.com New York Jets Jerseys