The thing with your way is that.. well it doesn't work right, you are
over complicating it.
I read lots of things to and really none of them worked and the way I
have it now I have dozens of sites running in production so it must be
ok.
<Host name="
www.site1.com" appBase="webapps">
<Context path="" docBase="/Volumes/Sites/site1/" />
</Host>
lets go over this:
name: well that is self explanatory
appBase: that is the base for the main railo server which is in
webapps, if you change this it will still work in some cases but like
you are seeing with yours it's not right. In other words appBase =
main railo engine which should be in webapps
contxt path: if you put stuff here with jar install it will spawn all
those web-inf folders everywhere
docBase: use this to put your apps outside the web root, most of what
you read says not to but don't waorry about what you are reading most
of those weren't written for deploying cfm sites. And the root
application usually means tomcat is serving 1 app not many.
running on tomcat with war is dead simple:
install tomcat
open up webapps folder in tomcat and drop railo war into it
start tomcat
rename the ROOT folder to something else or delete it
rename exploded railo war folder to ROOT
copy the web-inf folder to each sites root
make the tomcat server file just like i showed you... forget what you
have read and do it like I showed u
if running through apache add vhost file, here is my base one
<VirtualHost *:80>
ServerAdmin
da...@dffss.com
DocumentRoot "/Volumes/Sites/site1"
ServerName
www.site1.com
ServerAlias
site1.com
ServerAlias ftp.
site1.com
DirectoryIndex index.cfm index.html
<Directory "/Volumes/Sites/site1">
Allow from all
</Directory>
ProxyPreserveHost On
ProxyPassReverse / ajp://localhost:8009/
RewriteEngine On
RewriteRule ^/(.*\.cf[cm])$ ajp://localhost:8009/$1 [P]
RewriteLog /private/var/log/apache2/site1/site1.com-rewrite_log
RewriteCond %{HTTP_HOST} !^www\. site1\.com [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^/(.*)
http://www.
site1.com/$1 [L,R]
ErrorLog "/var/log/apache2/site1/site1.com-error_log"
CustomLog "/var/log/apache2/site1/site1.com-access_log" common
</VirtualHost>
If you stick with your way you will have issues, I can tell you that
right now