Installing Railo with Resin on Slackware 13 - page 3

Author: Steven Neiland
Published:

Warning: This blog entry was written two or more years ago. Therefore, it may contain broken links, out-dated or misleading content, or information that is just plain wrong. Please read on with caution.

Check and Confirm httpd.conf

At this stage the make command should have appended 4 lines to the bottom of our "httpd.conf" file. These should read something like this.

LoadModule caucho_module /usr/lib/httpd/modules/mod_caucho.so
ResinConfigServer localhost 6800
CauchoConfigCacheDirectory /tmp
CauchoStatus yes

If all is set then we need to make one small modification to the Directory Index setting to tell apache to serve index.cfm files if a file is not explicitly named.

<IfModule dir_module>
DirectoryIndex index.cfm index.html
</IfModule>

Restart apache and test by going to "http://{yourLinuxBox}"

/etc/rc.d/rc.httpd restart

Setup vhosts

For every vhost in our apache vhosts.conf file that will use railo we must also add an entry into the resin.conf file. Edit "/opt/railo/conf/resin.conf" and add the following for each vhost modified for each host.

<host id="neiland.net" root-directory="/path/to/vhost/htdocs/">
<host-name>neiland.net</host-name>
<host-alias>www.neiland.net</host-alias>
<host-alias>some other alias</host-alias>
<web-app id="/" root-directory="" />
</host>

It is not strictly necessary but I like to give railo its own vhost and explicitly set which other vhosts use railo.

Create a vhost named "railo" in the httpd-vhosts.conf file and move the railo commands from the httpd.conf file into here. Here I have enabled the status page. Copy and modify this as needed for each vhost that uses Railo.

<VirtualHost *:80>
ServerName railo.localhost
DocumentRoot "/path/to/railo/htdocs/"

#Resin / railo config
LoadModule caucho_module /usr/lib/httpd/modules/mod_caucho.so
ResinConfigServer localhost 6800
CauchoConfigCacheDirectory /tmp
CauchoStatus yes
#Setup caucho-status location
<Location /caucho-status>
SetHandler caucho-status
</Location>

#Logging
--snip--
</VirtualHost>
1 2 3 4 5

Reader Comments

  • Please keep comments on-topic.
  • Please do not post unrelated questions or large chunks of code.
  • Please do not engage in flaming/abusive behaviour.
  • Comments that contain advertisments or appear to be created for the purpose of link building, will not be published.

Archives Blog Listing