The global download site of apache can be found under this address: http://httpd.apache.org/download.cgi
Railo 2.0.x - Railo 2.0.1 Server for Microsoft Windows
After having installed both Railo and Apache (just follow the setup wizard) you need to update the httpd.conf in your Apache installation directory. The line you have to enter is:
LoadModule caucho_module <RailoInstallDir>/resin-3.1.x/win32/apache-2.0/mod_caucho.dll
If you want Railo to serve all of your virtual hosts then you might add the following lines below the above one:
ResinConfigServer localhost 6800
<Location /caucho-status>
SetHandler caucho-status
</Location>
The port 6800 corresponds to the port configured somewhere in the resin.conf like follows <!-- define the servers in the cluster -->
<server id="" address="127.0.0.1" port="6800"/>
Note that this port number has changed from 6800 to 6802 in later Resin versions. So you might want to check the port number before entering it in the httpd.conf.
After you have entered the above lines in the two configuration files, you can restart the two services (Railo & Apache).
Now the default virtual host already reacts on .cf* files since the mod_caucho.dll tells apache which files it can serve.
If you want to server both Railo and maybe CFMX files with the same Apache server, you can include .conf files containing the definitions of the corresponding derver. I always include all .conf files located in an "active" directory. Within these files I define a virtual host and all necessary configuration servers for the necessary modules (In this case mod_caucho.dll).
<!-- At the end of my httpd.conf I do the following -->
include conf/active/*.conf
The following example of such an included .conf file configures a new server to use Railo for the defined virtual host:
<VirtualHost *>
ServerAdmin info@yourserver.com
DocumentRoot "c:/wwwroot/testproject"
ServerName testproject
ErrorLog "c:/logfiles/testproject/error_log.txt"
CustomLog "c:/logfiles/testproject/access_log.txt" combined
#Welcome files DirectoryIndex index.cfm index.php index.htm index.html index.html.var #invoking Resin
ResinConfigServer localhost 6800
<Location /caucho-status>
SetHandler caucho-status
</Location>
</VirtualHost>
One thing is to mention. If your server responds to your requests with a 403 error message, you might check the <Directory> entry in your httpd.conf. By default all files are prohibited for access.
19 responses so far ↓
1 Jeff Gladnick // May 3, 2008 at 2:16 AM
Also, something to mull over - blue dragon (and i think Adobe CF) has a button inside of the admin menu where you can automatically wire it into apache/iis. You might consider adding that feature at some point but these guides will tide us over in the mean time.
2 AJ Mercer // May 8, 2008 at 3:16 PM
http://www.railo.ch/blog/index.cfm/2008/4/7/Configuring-IIS6-with-Railo
I think it is relevant to Apache too
3 Daniel Bleisch // Jun 27, 2008 at 9:46 AM
is there any howto/installation-guide about how to install railo with
apache and jboss from the scratch?
Regards, Daniel
4 Streit Michael // Jun 30, 2008 at 10:05 AM
at the moment check out this links:
http://www.jboss.org/jbossas/docs/
http://sis36.berkeley.edu/projects/streek/howto/apache-mod_jk2-win.html
http://today.java.net/pub/a/today/2005/03/01/InstallingJBoss.html
5 Gerald Guido // Sep 10, 2008 at 10:42 PM
I tried to set up Railo 3 using this method. CF templates are being handled by Rialo but I used the following include (httpd-railo.conf )
<VirtualHost *:80>
ServerAdmin info@yourserver.com
DocumentRoot "c:/xampplite/htdocs"
ServerName jguido
ErrorLog "C:/xampplite/apache/logs/error_log.txt"
CustomLog "c:/xampplite/apache/logs/access_log.txt" combined
#Welcome files
DirectoryIndex index.cfm index.php index.htm index.html index.html.var
#invoking Resin
ResinConfigServer localhost 6800
<Location /caucho-status>
SetHandler caucho-status
</Location>
</VirtualHost>
When I try to hit http://jguido/test.cfm on on apache I get this:
Message Page /test.cfm [C:\Program Files\Railo\webapps\ROOT\test.cfm] not found
Page /test.cfm [C:\Program Files\Railo\webapps\ROOT\test.cfm] not found
at railo.runtime.PageSourceImpl.loadPage(Unknown Source):-1
at railo.runtime.PageContextImpl.include(Unknown Source):-1
at railo.runtime.listener.ClassicAppListener._onRequest(Unknown Source):-1
at railo.runtime.listener.MixedAppListener.onRequest(Unknown Source):-1
at railo.runtime.PageContextImpl.execute(Unknown Source):-1
at railo.runtime.engine.CFMLEngineImpl.serviceCFML(Unknown Source):-1
at railo.loader.servlet.CFMLServlet.service(CFMLServlet.java:32):32
at javax.servlet.http.HttpServlet.service(HttpServlet.java:91):91
at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:103):103
at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:175):175
at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:240):240
at com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:424):424
at com.caucho.server.port.TcpConnection.run(TcpConnection.java:481):481
at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:685):685
at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:607):607
at java.lang.Thread.run(Unknown Source):-1
What am I missing here?
6 Sana // Sep 12, 2008 at 1:09 AM
Just subscribing to this, because I have same error with Apache connector.
7 Gert Franz // Sep 12, 2008 at 1:42 AM
Just check what Michael Hnat has written in the railo_talk mailing list:
<start>
Hi,
Gerald Guido had an installation issue with Railo3/Resin and Apache.
He posted his problem in the Railo Blog
(http://www.railo.ch/blog/index.cfm/2008/5/2/Railo-and-Apache)
Gerald, I hope you read this. The problem is a missing configuration of the
resin.conf file.
In your http.conf you define the DocumentRoot to "c:\xampplite/htdocs". But
resins root still points to "C:\Program Files\Railo\webapps\ROOT\"
So, edit your resin.conf file and look for the
<host id="" root-directory=".">
<web-app id="/" root-directory=" C:\Program
Files\Railo\webapps\ROOT\" />
</host>
Entry and change ist to the document root defined in the http.conf.
Heave fun,
Michi
</stop>
8 dave // Sep 12, 2008 at 3:24 AM
9 Gerald Guido // Sep 14, 2008 at 10:53 PM
I got it up and running and it is working beautifully. I have blog.cfc running on my dev box and it is blazing fast.
One thing to note is that Apache did not like the space in the path to mod_caucho
This did not work on vista
C:\Program Files\Railo3Server\win32\apache-2.2\mod_caucho.dll
If I moved the DLL or installed Railo to a folder with out a space everything worked fine
EX: C:\Railo3Server\win32\apache-2.2\mod_caucho.dll
10 Chris // Sep 15, 2008 at 2:49 AM
11 JohnB // Feb 18, 2009 at 10:31 AM
I've just followed these instructions using the latest Railo server version yet I can't get it to serve the files up as defined in my apache vhost config - it always shows the content from C:\Program Files\Railo\webapps\ROOT\index.cfm whichever of my sites I hit.
Am i missing a step some where?
12 JohnB // Feb 18, 2009 at 10:55 AM
<host regexp="(.+)">
<host-name>${host.regexp[1]}</host-name>
<root-directory>c:/htdocs/${host.regexp[1]}</root-directory>
<web-app id="/">
<document-directory></document-directory>
</web-app>
</host>
and it's working now
13 misty // Feb 20, 2009 at 9:07 PM
Been struggling a bit here with railo.
I have several virtual hosts.
Everything seems to work as long as I use the numeric IP address to
refer to my sites.
For example.....
Let's pretend I have a domain called website.com and it's IP address
is 123.456.789.000
http://123.456.789.000/mysite/index.cfm (works)
But.........
http://www.website.com (does not work)
Can someone help me with this?
It's proably VERY simple and I'm brain locked.
thx
14 Josef Pichler // Apr 2, 2009 at 2:42 AM
127.0.0.1 localhost
123.456.789.000 website.com
just a guess,
good luck, josef
15 Jeff Gladnick // Apr 11, 2009 at 3:41 AM
Like I might have a project called jeff, that is stored in inetpub/wwwroot/cftest
or something like that?
Is there a way to just pass everything through from apache so you dont have to go through the trouble of making a new host for each project?
16 Johan // Apr 15, 2009 at 9:44 AM
Running resin on port 80, all other settings on default, web root at: c:/resin-3.2/webapps/ROOT
have a website called mysite in c:/resin-3.2/webapps/ROOT/mysite
Working fine when going to http://localhost/mysite or the equivalent URL with server IP
Added the domain on the host file - 127.0.0.1 mysite.com
Going to http://mysite.com takes me to the Resin home page so looks like everything's done ok so far.
Setting in resin.xml virtual host as follows (here I' must be doing something wrong)
<resin xmlns="http://caucho.com/ns/resin"
xmlns:resin="http://caucho.com/ns/resin/core">
<cluster id="">
<host host-name=" mysite.com ">
<host-alias> mysite.com </host-alias>
<host-alias>www. mysite.com </host-alias>
<root-directory>c:/resin-3.2/webapps/ROOT/mysite</root-directory>
<document-directory></document-directory>
<web-app id="/">
</web-app>
</host>
</cluster>
......... the rest of the original xml.........
Can someone please help with the right code and telling me where exactly to place in the resin.xml file ?
Thanks
Johan
17 Andrew // Jun 3, 2009 at 8:39 PM
Obviously not sure how secure this would be in production but good enough for testing stuff out.
18 Reinhard Jung // Aug 21, 2009 at 4:43 AM
19 Sean Corfield // Aug 21, 2009 at 5:35 AM
Leave a Comment