Railo and Apache
In one of my previous entries I have explained how to configure Railo with IIS. This entry will take care about the configuration of Railo and Apache Web Server 2.2.
First of all you need to download Railo and Apache from the according locations:
Apache 2.2 - MSI download
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
ResinConfigServer localhost 6800
<Location /caucho-status>
SetHandler caucho-status
</Location>
<!-- define the servers in the cluster -->
<server id="" address="127.0.0.1" port="6800"/>
<!-- At the end of my httpd.conf I do the following -->
include conf/active/*.conf
<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>



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?
<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
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
127.0.0.1 localhost
123.456.789.000 website.com
just a guess,
good luck, josef
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?
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
Obviously not sure how secure this would be in production but good enough for testing stuff out.