<?xml version="1.0" encoding="utf-8"?>
			
			<rss version="2.0">
			<channel>
			<title>Lynch Consulting Blog - Railo</title>
			<link>http://www.lynchconsulting.com.au/blog/index.cfm</link>
			<description>A blog about ColdFusion, PHP, Flash, Flex, Web Standards and a mish mash of other technologies</description>
			<language>en-us</language>
			<pubDate>Tue, 07 Sep 2010 13:16:18 --1000</pubDate>
			<lastBuildDate>Thu, 18 Mar 2010 12:20:00 --1000</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>mark@lynchconsulting.com.au</managingEditor>
			<webMaster>mark@lynchconsulting.com.au</webMaster>
			
			
			
			
			
			<item>
				<title>proxy_http vs proxy_ajp benchmark</title>
				<link>http://www.lynchconsulting.com.au/blog/index.cfm/2010/3/18/proxyhttp-vs-proxyajp-benchmark</link>
				<description>
				
				After I posted a previous blog entry about &lt;a href=&quot;http://www.lynchconsulting.com.au/blog/index.cfm/2010/3/12/Railo-on-Tomcat-revisited--modproxy&quot;&gt;configuring railo &amp; tomcat with apache and mod_proxy_http&lt;/a&gt;, &lt;a href=&quot;http://blog.kukiel.net/&quot;&gt;Paul Kukiel&lt;/a&gt; and &lt;a href=&quot;http://www.garyrgilbert.com/blog&quot;&gt;Gary Gilbert&lt;/a&gt; suggested that I should be using mod_proxy_ajp.

This has been something I&apos;ve been looking at, but haven&apos;t found a compelling reason for one over the other.

Proxy AJP is claimed to be faster as it is a &quot;Wire protocol&quot; but I couldn&apos;t find any benchmarks around this.  

So I decided to do a very quick and dirty benchmark to satisfy my curiosity.  This is not a scientific process, I just ran a simple railo testpage on the same machine with 50 threads of jmeter requests hitting it. 

First I enabled proxy_http and ran it four times, then enabled proxy_ajp and repeated.  The config is below:

&lt;code&gt;
# Proxy HTTP config
&lt;IfModule mod_proxy_http.c&gt;
	&lt;Proxy *&gt;
	Order deny,allow
	Allow from all
	&lt;/Proxy&gt;
	ProxyPassMatch ^/(.*\.cfm)$ http://testsite.railo:8080/$1
	ProxyPassReverse  /  http://testsite.railo:8080/
&lt;/IfModule&gt;
&lt;/code&gt;

&lt;code&gt;
# Proxy AJP config
&lt;IfModule mod_proxy_ajp.c&gt;
	&lt;Proxy *&gt;
	Order deny,allow
	Allow from all
	&lt;/Proxy&gt;
	ProxyPassMatch ^/(.*\.cfm)$ ajp://testsite.railo:8009/$1
	ProxyPassReverse  /  ajp://testsite.railo:8009/
&lt;/IfModule&gt;
&lt;/code&gt;

&lt;h2&gt;Results:&lt;/h2&gt;
&lt;table&gt;
&lt;tr&gt;&lt;th&gt;Run&lt;/th&gt;&lt;th&gt;HTTP Requests/sec&lt;/th&gt;&lt;th&gt;AJP Requests/sec&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Run 1&lt;/td&gt;&lt;td&gt;206.9&lt;/td&gt;&lt;td&gt;181.4&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Run 2&lt;/td&gt;&lt;td&gt;203.9&lt;/td&gt;&lt;td&gt;143.6&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Run 3&lt;/td&gt;&lt;td&gt;194.6&lt;/td&gt;&lt;td&gt;189.2&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Run 4&lt;/td&gt;&lt;td&gt;204.6&lt;/td&gt;&lt;td&gt;191.4&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;th&gt;Average&lt;/th&gt;&lt;th&gt;202.5&lt;/th&gt;&lt;th&gt;176.4&lt;/th&gt;&lt;/tr&gt;
&lt;/table&gt;

The results showed that the proxy_http module was faster - i.e. more requests per second could be pushed through.

I&apos;m putting this down to the fact that proxy_ajp has to convert the http request into it&apos;s binary format, while proxy_http really just has to pass it along. 

In different scenarios and network configurations the results may be different, but for now I&apos;m going to stick with the http proxy.

Proxy AJP has one other benefit, in that is passes along some extra flags such as whether the request is https or not, but for our purposes we don&apos;t need this.

Cheers,
Mark
				
				</description>
				
				<category>Systems admin</category>
				
				<category>Railo</category>
				
				<category>General</category>
				
				<category>ColdFusion</category>
				
				<pubDate>Thu, 18 Mar 2010 12:20:00 --1000</pubDate>
				<guid>http://www.lynchconsulting.com.au/blog/index.cfm/2010/3/18/proxyhttp-vs-proxyajp-benchmark</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Railo on Tomcat revisited - mod_proxy</title>
				<link>http://www.lynchconsulting.com.au/blog/index.cfm/2010/3/12/Railo-on-Tomcat-revisited--modproxy</link>
				<description>
				
				&lt;b&gt;Updated:&lt;/b&gt; Changed the linking between railo and tomcat to use shared.loader.

I&apos;ve been doing some more work on configuring railo to work flexibly in the numerous different environments we work in, and also making it simpler to set up.

To that end I investigated the use of mod_proxy for linking it to apache instead of mod_jk.

Advantages of this approach are:
&lt;ul&gt;
&lt;li&gt;Simple - communications are in plain http&lt;/li&gt;
&lt;li&gt;Flexible - Load balancing can be easily added at the apache layer&lt;/li&gt;
&lt;li&gt;Simple - No compiling mod_jk&lt;/li&gt;
&lt;/ul&gt;

Here are the basic install instructions for Railo/Tomcat/Apache on Ubuntu.

&lt;h2&gt;Download &amp; Install Tomcat&lt;/h2&gt;

&lt;a href=&quot;http://tomcat.apache.org/download-60.cgi&quot;&gt;Download tomcat&lt;/a&gt; and extract content:

&lt;code&gt;
tar xvzf apache-tomcat-6.0.26.tar.gz
&lt;/code&gt;

Move Tomcat to a more appropriate place:
&lt;code&gt;
sudo mv apache-tomcat-6.0.26 /opt/tomcat
&lt;/code&gt;


&lt;h2&gt;Download Railo&lt;/h2&gt;

Download &lt;a href=&quot;http://www.getrailo.org/index.cfm/download/&quot;&gt;Railo custom version jars file&lt;/a&gt;

Extract and move into Tomcat lib directory:
&lt;code&gt;
tar zxvf railo-3.1.2.001-jars.tar.gz
sudo mv railo-3.1.2.001-jars /opt/railo
&lt;/code&gt;


Make Tomcat load the railo jars by editing catalina.properties to change the shared loader path:
&lt;code&gt;
shared.loader=/opt/railo/*.jar
&lt;/code&gt;

Make Tomcat and Railo work together by modifying the web config file:
&lt;code&gt;
sudo nano -w /opt/tomcat/conf/web.xml
&lt;/code&gt;

add the following inside the &amp;lt;web-app&amp;gt; element:
&lt;code&gt;
&lt;servlet&gt;
&lt;servlet-name&gt;CFMLServlet&lt;/servlet-name&gt;
&lt;servlet-class&gt;railo.loader.servlet.CFMLServlet&lt;/servlet-class&gt;
   &lt;init-param&gt;
      &lt;param-name&gt;configuration&lt;/param-name&gt;
      &lt;param-value&gt;{web-root-directory}/WEB-INF/railo/&lt;/param-value&gt;
      &lt;description&gt;Configuraton directory&lt;/description&gt;
   &lt;/init-param&gt;
   &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
&lt;/servlet&gt;
&lt;servlet-mapping&gt;
   &lt;servlet-name&gt;CFMLServlet&lt;/servlet-name&gt;
   &lt;url-pattern&gt;*.cfm&lt;/url-pattern&gt;
&lt;/servlet-mapping&gt;
&lt;servlet-mapping&gt;
   &lt;servlet-name&gt;CFMLServlet&lt;/servlet-name&gt;
   &lt;url-pattern&gt;*.cfml&lt;/url-pattern&gt;
&lt;/servlet-mapping&gt;
&lt;servlet-mapping&gt;
   &lt;servlet-name&gt;CFMLServlet&lt;/servlet-name&gt;
   &lt;url-pattern&gt;*.cfc&lt;/url-pattern&gt;
&lt;/servlet-mapping&gt;
&lt;/code&gt;

add the following inside &amp;lt;welcome-file-list&amp;gt; element:
&lt;code&gt;
&lt;welcome-file&gt;index.cfm&lt;/welcome-file&gt;
&lt;welcome-file&gt;index.cfml&lt;/welcome-file&gt;
&lt;/code&gt;


Start up tomcat:
&lt;code&gt;
/opt/tomcat/bin/startup.sh
&lt;/code&gt;
Once this is done you should be able to access the railo admin by going to the following URL:
&lt;code&gt;
http://127.0.0.1:8080/railo-context/admin/server.cfm
&lt;/code&gt;


&lt;h2&gt;Back to Tomcat&lt;/h2&gt;
To test our Railo installation, let&apos;s create a test site by adding a new virtual host in both Tomcat and Apache.  We do this by modifying Tomcat server.xml file (/opt/tomcat/conf/server.xml )
&lt;code&gt;
&lt;Host name=&quot;testsite.railo&quot; appBase=&quot;webapps&quot;&gt;
    &lt;Context path=&quot;&quot; docBase=&quot;/vhosts/testsite.railo/www&quot;/&gt;
&lt;/Host&gt;
&lt;/code&gt; 

&lt;h2&gt;Linking with Apache via Mod Proxy&lt;/h2&gt;

Ensure the modules proxy and proxy_http are enabled.  On Ubuntu this is done as follows:
&lt;code&gt;
sudo a2enmod proxy
sudo a2enmod proxy_http
sudo /etc/init.d/apache2 restart
&lt;/code&gt;

&lt;h2&gt;Create vhost&lt;/h2&gt;
Now we need to create a virtual host entry in Apache as well:
&lt;code&gt;
&lt;VirtualHost *:80&gt;
        DocumentRoot /vhosts/testsite.railo/www
        ServerName testsite.railo
        DirectoryIndex index.cfm
	#Proxy .cfm requests to railo
	&lt;IfModule mod_proxy.c&gt;
		&lt;Proxy *&gt;
		Order deny,allow
		Allow from all
		&lt;/Proxy&gt;
		ProxyPassMatch ^/(.*\.cfm)$ http://testsite.railo:8080/$1
		ProxyPassReverse  /  http://testsite.railo:8080/
	&lt;/IfModule&gt;

	#Deny access to admin except for local/portforwarded clients
	&lt;Location /railo-context/&gt;
		Order deny,allow
		Deny from all
		Allow from 127.0.0.1
	&lt;/Location&gt;
&lt;/VirtualHost&gt;
&lt;/code&gt;

This tells apache to forward all requests for CFM files to the railo instance.

Finally restart apache and railo and you should be good to go.

&lt;code&gt;
sudo /opt/tomcat/bin/shutdown.sh 
sudo /opt/tomcat/bin/startup.sh 
sudo /etc/init.d/apache2 restart
&lt;/code&gt;
				
				</description>
				
				<category>Ubuntu</category>
				
				<category>Systems admin</category>
				
				<category>Railo</category>
				
				<category>ColdFusion</category>
				
				<pubDate>Fri, 12 Mar 2010 11:01:00 --1000</pubDate>
				<guid>http://www.lynchconsulting.com.au/blog/index.cfm/2010/3/12/Railo-on-Tomcat-revisited--modproxy</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Upcoming book review - Tomcat 6 Developer&apos;s Guide</title>
				<link>http://www.lynchconsulting.com.au/blog/index.cfm/2009/12/21/Upcoming-book-review--Tomcat-6-Developers-Guide</link>
				<description>
				
				&lt;a href=&quot;http://www.packtpub.com/tomcat-6-developers-guide/mid/211209mc5um2?utm_source=lynchconsulting.com.au&amp;utm_medium=affiliate&amp;utm_content=blog&amp;utm_campaign=mdb_001899&quot;&gt;&lt;img src=&quot;http://www.lynchconsulting.com.au/blog/enclosures/tomcat_6_developers_guide.jpg&quot; align=&quot;right&quot;&gt;&lt;/a&gt;

I&apos;ve just received a copy of the &lt;a href=&quot;http://www.packtpub.com/tomcat-6-developers-guide/mid/211209mc5um2?utm_source=lynchconsulting.com.au&amp;utm_medium=affiliate&amp;utm_content=blog&amp;utm_campaign=mdb_001899&quot;&gt;Tomcat 6 Developer&apos;s Guide&lt;/a&gt; from packt publishing to review.  

It&apos;s nice timing as I&apos;ve been working with Tomcat 6 a bit lately and in the new year plan to move some of our production systems over to running &lt;a href=&quot;http://www.getrailo.org&quot;&gt;Railo&lt;/a&gt; on top of &lt;a href=&quot;http://tomcat.apache.org/&quot;&gt;Tomcat&lt;/a&gt;.

After the extremely busy year Learnosity has had I&apos;m looking forward to reading a few books over the break and coming back in the New Year with lots more ideas and technology to implement.
				
				</description>
				
				<category>Systems admin</category>
				
				<category>Railo</category>
				
				<category>Open Source</category>
				
				<category>Java</category>
				
				<category>ColdFusion</category>
				
				<pubDate>Mon, 21 Dec 2009 21:12:00 --1000</pubDate>
				<guid>http://www.lynchconsulting.com.au/blog/index.cfm/2009/12/21/Upcoming-book-review--Tomcat-6-Developers-Guide</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Chinese characters not working cfdocument for PDF exports - fixed</title>
				<link>http://www.lynchconsulting.com.au/blog/index.cfm/2009/10/26/Chinese-characters-not-working-cfdocument-for-PDF-exports--fixed</link>
				<description>
				
				I&apos;ve just spent quite a few hours grappling with an annoying PDF export issue where the font&apos;s were not displaying correctly.  This is on a CFMX 7 (7.0.2) on Ubuntu Linux system.

All the DB storage and application was using UTF8 throughout, but the PDF exports were showing nothing when they should have been showing Chinese characters.

To fix this up you need to do the following:

&lt;h3&gt;1. Need fonts installed on system:&lt;/h3&gt;
&lt;code&gt;
sudo apt-get install ttf-arphic-bsmi00lp ttf-arphic-gbsn00lp
&lt;/code&gt;

&lt;h3&gt;2. Need fonts installed in CFAdmin&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Go to CFAdmin and Font Management&lt;/li&gt;
&lt;li&gt;Select directory /usr/share/fonts/truetype/arphic&lt;/li&gt;
&lt;li&gt;Select &quot;Add&quot; and you should see 2 new fonts added.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;3: CFdocument Hotfix for CF7.0.2&lt;/h3&gt;
The CFDocument hotfix for 7.0.2 provides some essential fixes and makes this work - Follow the instructions to install: &lt;a href=&quot;http://kb2.adobe.com/cps/402/kb402093.html&quot;&gt;http://kb2.adobe.com/cps/402/kb402093.html&lt;/a&gt;

&lt;h3&gt;Configure cffont.properties file&lt;/h3&gt;
The final step is to set the cffont.properties file so that it will check additional font sets for any characters it doesn&apos;t know about - i.e. Chinese characters.  Each line in the file is like a CSS font-family rule, i.e. it will start at the left and look for the correct font to render the text.  I appended the two extra font names to ensure they are checked, so the file looks like this:

&lt;code&gt;
defaultbasefont=
dialog=Arial, Helvetica, AR PL SungtiL GB,AR PL Mingti2L Big5
dialog.bold=Arial Bold, Helvetica-Bold, AR PL SungtiL GB,AR PL Mingti2L Big5
dialog.italic=Arial Italic, Helvetica-Oblique, AR PL SungtiL GB, AR PL Mingti2L Big5
dialog.bolditalic=Arial Bold Italic, Helvetica-BoldOblique, AR PL SungtiL GB, AR PL Mingti2L Big5
dialoginput=Courier New, Courier, AR PL SungtiL GB, AR PL Mingti2L Big5
dialoginput.bold=Courier New Bold, Courier-Bold, AR PL SungtiL GB, AR PL Mingti2L Big5
dialoginput.italic=Courier New Italic, Courier-Oblique, AR PL SungtiL GB, AR PL Mingti2L Big5
dialoginput.bolditalic=Courier New Bold Italic, Courier-BoldOblique, AR PL SungtiL GB, AR PL Mingti2L Big5
serif=Times New Roman, Times-Roman, AR PL SungtiL GB, AR PL Mingti2L Big5
serif.bold=Times New Roman Bold, Times-Bold, AR PL SungtiL GB, AR PL Mingti2L Big5
serif.italic=Times New Roman Italic, Times-Italic, AR PL SungtiL GB, AR PL Mingti2L Big5
serif.bolditalic=Times New Roman Bold Italic, Times-BoldItalic, AR PL SungtiL GB, AR PL Mingti2L Big5
sansserif=Arial, Helvetica, AR PL SungtiL GB, AR PL Mingti2L Big5
sansserif.bold=Arial Bold, Helvetica-Bold, AR PL SungtiL GB, AR PL Mingti2L Big5
sansserif.italic=Arial Italic, Helvetica-Oblique, AR PL SungtiL GB, AR PL Mingti2L Big5
sansserif.bolditalic=Arial Bold Italic, Helvetica-BoldOblique, AR PL SungtiL GB, AR PL Mingti2L Big5
monospaced=Courier New, Courier, AR PL SungtiL GB, AR PL Mingti2L Big5
monospaced.bold=Courier New Bold, Courier-Bold, AR PL SungtiL GB, AR PL Mingti2L Big5
monospaced.italic=Courier New Italic, Courier-Oblique, AR PL SungtiL GB, AR PL Mingti2L Big5
monospaced.bolditalic=Courier New Bold Italic, Courier-BoldOblique, AR PL SungtiL GB, AR PL Mingti2L Big5
&lt;/code&gt;

The cffont.properties file is located in /opt/jrun4/servers/{instance name}/cfusion.ear/cfusion.war/WEB-INF/cfusion/lib on the jrun multiserver version.

&lt;h3&gt;5. Restart CF&lt;/h3&gt;

Once you restart CF you documents should be coming out with their Chinese fonts intact.

I&apos;m sure there are additional fonts to add to get it working natively with all the other asian languages, so I&apos;ll add to this as and when I need/discover them.  Please feel free to post a comment if you find any more font&apos;s that should be added to the list.
				
				</description>
				
				<category>ColdFusion</category>
				
				<category>Linux</category>
				
				<category>Open Source</category>
				
				<category>Railo</category>
				
				<category>Ubuntu</category>
				
				<pubDate>Mon, 26 Oct 2009 16:38:00 --1000</pubDate>
				<guid>http://www.lynchconsulting.com.au/blog/index.cfm/2009/10/26/Chinese-characters-not-working-cfdocument-for-PDF-exports--fixed</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Installing Railo on Tomcat via Apache on Leopard - Step by Step</title>
				<link>http://www.lynchconsulting.com.au/blog/index.cfm/2009/3/27/Installing-Railo-on-Tomcat-via-Apache-on-Leopard--Step-by-Step</link>
				<description>
				
				After a bit of fiddling and head scratching I managed to install Railo on Tomcat via Apache on my laptop running on OS X 10.5.6.
&lt;h2&gt;Tomcat&lt;/h2&gt;
Firstly, download &lt;a href=&quot;http://tomcat.apache.org/download-60.cgi&quot;&gt;Tomcat 6&lt;/a&gt;

extract content:
&lt;code&gt;
tar xvzf apache-tomcat-6.0.18.tar.gz
&lt;/code&gt;

Move Tomcat to a more secure place:
&lt;code&gt;
sudo mv apache-tomcat-6.0.18 /usr/local/tomcat
&lt;/code&gt;

&lt;h2&gt;Railo&lt;/h2&gt;
Download &lt;a href=&quot;http://www.railo-technologies.com/down.cfm?item=/railo/remote/download/3.0.2.001/custom/all/railo-3.0.2.001-jars.tar.gz&quot;&gt;Railo custom version&lt;/a&gt;

extract and move into Tomcat lib directory:
&lt;code&gt;
tar zxvf railo-3.0.2.001-jars.tar.gz
sudo mv railo-3.0.2.001-jars/* /usr/local/tomcat/lib
&lt;/code&gt;

Make Tomcat and Railo work together by modifying the web config file:
&lt;code&gt;
sudo nano /usr/local/tomcat/conf/web.xml
&lt;/code&gt;

add the following inside the &amp;lt;web-app&amp;gt; element:
&lt;code&gt;
&lt;servlet&gt;
&lt;servlet-name&gt;CFMLServlet&lt;/servlet-name&gt;
&lt;servlet-class&gt;railo.loader.servlet.CFMLServlet&lt;/servlet-class&gt;
   &lt;init-param&gt;
      &lt;param-name&gt;configuration&lt;/param-name&gt;
      &lt;param-value&gt;{web-root-directory}/WEB-INF/railo/&lt;/param-value&gt;
      &lt;description&gt;Configuraton directory&lt;/description&gt;
   &lt;/init-param&gt;
   &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
&lt;/servlet&gt;
&lt;servlet-mapping&gt;
   &lt;servlet-name&gt;CFMLServlet&lt;/servlet-name&gt;
   &lt;url-pattern&gt;*.cfm&lt;/url-pattern&gt;
&lt;/servlet-mapping&gt;
&lt;servlet-mapping&gt;
   &lt;servlet-name&gt;CFMLServlet&lt;/servlet-name&gt;
   &lt;url-pattern&gt;*.cfml&lt;/url-pattern&gt;
&lt;/servlet-mapping&gt;
&lt;servlet-mapping&gt;
   &lt;servlet-name&gt;CFMLServlet&lt;/servlet-name&gt;
   &lt;url-pattern&gt;*.cfc&lt;/url-pattern&gt;
&lt;/servlet-mapping&gt;
&lt;/code&gt;

add the following inside &amp;lt;welcome-file-list&amp;gt; element:
&lt;code&gt;
&lt;welcome-file&gt;index.cfm&lt;/welcome-file&gt;
&lt;welcome-file&gt;index.cfml&lt;/welcome-file&gt;
&lt;/code&gt;

&lt;h2&gt;Apache&lt;/h2&gt;
Leopard OS comes with Apache 2, so you don&apos;t have to worry about installing it.  However, you need to download &lt;a href=&quot;http://tomcat.apache.org/connectors-doc/&quot;&gt;The Apache Tomcat Connector&lt;/a&gt; source code.

Next you need to compile the source so that the resulting binary file is compatible with your Intel Mac architecture.  I got this from &lt;a href=&quot;http://blog.lo-fi.net/2007/10/leopard-for-web-developer-installing.html&quot;&gt;Eric Rank&apos;s blog&lt;/a&gt;

cd into tomcat source:
&lt;code&gt;
cd tomcat-connectors-1.2.27-src/native
&lt;/code&gt;

Edit the apache-2.0/Makefile.apxs.in file.

Replace
&lt;code&gt;
mod_jk.la:
 $(APXS)  -c -o $@ -Wc,&quot;${APXSCFLAGS} ${JK_INCL}&quot; &quot;${JAVA_INCL}&quot; &quot;${APXSLDFLAGS}&quot; mod_jk.c ${APACHE_OBJECTS}
&lt;/code&gt;

with:

&lt;code&gt;
mod_jk.la:
 $(APXS) -c -o $@ -Wc,&quot;${APXSCFLAGS} -arch x86_64 ${JK_INCL}&quot; &quot;${JAVA_INCL}&quot; &quot;${APXSLDFLAGS} -arch x86_64 &quot; mod_jk.c ${APACHE_OBJECTS}
&lt;/code&gt;

configure the build files:
&lt;code&gt;
./configure --with-apxs=/usr/sbin/apxs
&lt;/code&gt;

now go into apache-2.0 directory and build:
&lt;code&gt;
cd apache-2.0
make -f Makefile.apxs
&lt;/code&gt;

Finally install
&lt;code&gt;
sudo make install
&lt;/code&gt;

Now specify the connection between Apache and Tomcat.  To do this you need to create workers.properties file.  I created mine in /etc/apache2.
&lt;code&gt;
sudo nano /etc/apache2/workers.properties
&lt;/code&gt;

Paste the following:
&lt;code&gt;
worker.list=default

worker.default.port=8009
worker.default.host=localhost
worker.default.type=ajp13
worker.default.lbfactor=1
&lt;/code&gt;

Now we need to modify the Apache httpd.conf file:
&lt;code&gt;
sudo nano /etc/apache2/httpd.conf
&lt;/code&gt;

Enable The Apache Tomcat Connector:
&lt;code&gt;
LoadModule jk_module    libexec/apache2/mod_jk.so
&lt;/code&gt;

Underneath that tell Apache where your workers.properties file is located and add some logging info (could be useful):
&lt;code&gt;
# Mod_jk settings                                            
JkWorkersFile /etc/apache2/workers.properties
JkLogFile /var/log/apache2/mod_jk.log
JkLogLevel debug
DirectoryIndex index.html index.htm index.cfm index.cfml
&lt;/code&gt;

&lt;h2&gt;Back to Tomcat&lt;/h2&gt;
To test our Railo installation, let&apos;s create a test site by adding a new virtual host in both Tomcat and Apache.  We do this by modifying Tomcat server.xml file (/usr/local/tomcat/conf/server.xml )
&lt;code&gt;
&lt;Host name=&quot;railo.local&quot; appBase=&quot;webapps&quot;&gt;
    &lt;Context path=&quot;&quot; docBase=&quot;/Library/Webserver/Documents&quot;/&gt;
&lt;/Host&gt;
&lt;/code&gt; 

&lt;h2&gt;Apache&lt;/h2&gt;
Now we need to create a virtual host entry in Apache as well:
&lt;code&gt;
&lt;VirtualHost *:80&gt;
        JkMount /*.cfm default
        ServerName railo.local
        DirectoryIndex index.cfm
&lt;/VirtualHost&gt;
&lt;/code&gt;

&lt;code&gt;
JkMount /*.cfm default
&lt;/code&gt;
Tells mod_jk to use the connector specified in your workers.properties file when it encounters a .cfm extension.

&lt;h2&gt;Important&lt;/h2&gt;
Notice that in my Apache VirtualHost entry there is no DocumentRoot.  I originally had it in there and it was breaking my Apache-Tomcat connection.  It was driving me mad.  It&apos;s probably because document root is already specified in /usr/local/tomcat/conf/server.xml.

One last thing, to start your Tomcat server type in this command:
&lt;code&gt;
/usr/local/tomcat/bin/startup.sh 
&lt;/code&gt;

shut down

&lt;code&gt;
/usr/local/tomcat/bin/shutdown.sh
&lt;/code&gt;

My assumption is that the above steps would be very similar on other operating systems as long as you use the correct file paths.

Good luck :-)

Marko
				
				</description>
				
				<category>Systems admin</category>
				
				<category>Railo</category>
				
				<category>Mac OSX</category>
				
				<category>HOWTO</category>
				
				<pubDate>Fri, 27 Mar 2009 14:45:00 --1000</pubDate>
				<guid>http://www.lynchconsulting.com.au/blog/index.cfm/2009/3/27/Installing-Railo-on-Tomcat-via-Apache-on-Leopard--Step-by-Step</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Railo Useful links</title>
				<link>http://www.lynchconsulting.com.au/blog/index.cfm/2009/2/24/Railo-Useful-links</link>
				<description>
				
				I&apos;ve been doing some research on Railo with a view to moving some of our sites to using it.  I&apos;ve found a few useful links along the way:

&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.compoundtheory.com/?action=displayPost&amp;ID=393&quot;&gt;Mark Mandel&apos;s setup instructions for Railo on Ubuntu&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://blog.bpsite.net/item/37/Why%20Railo%202?.html&quot;&gt;Some great reasons to use Railo&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

My evaluations of Railo are so far so good, with performance being one of the key issues and for our application I&apos;ve seen performance 30% faster than CF7 and 25% faster than CF8.

If I find any major issues or benefits I&apos;ll post them here.

Cheers,
Mark
				
				</description>
				
				<category>ColdFusion</category>
				
				<category>Railo</category>
				
				<pubDate>Tue, 24 Feb 2009 12:30:00 --1000</pubDate>
				<guid>http://www.lynchconsulting.com.au/blog/index.cfm/2009/2/24/Railo-Useful-links</guid>
				
			</item>
			
		 	
			</channel></rss>