config 1:
Apache:
<VirtualHost *:80>
DocumentRoot "D:/sites/foo/ROOT/"
ServerName foo.com
DirectoryIndex index.cfm index.html
ProxyPreserveHost On
RewriteEngine On
RewriteRule ^/(.*) ajp://foo.com:8009/$1?path_info=$1 [P,L]
</VirtualHost>
Tomcat:
<Host name="foo.com" appBase="webapps" autoDeploy="true"
unpackWARs="true">
<Context path="" docBase="D:/sites/foo/ROOT/" />
</Host>
----------------
config 2:
Apache:
<VirtualHost *:80>
DocumentRoot "D:/sites/foo/ROOT/"
ServerName foo.com
DirectoryIndex index.cfm index.html
ProxyPreserveHost On
RewriteEngine On
RewriteRule ^/(.*) ajp://foo.com:8009/$1?path_info=$1 [P,L]
</VirtualHost>
Tomcat:
<Host name="foo.com" appBase="D:/sites/foo" autoDeploy="true"
unpackWARs="true">
<Context path="" docBase="D:/sites/foo/ROOT/" />
</Host>
> MediumCoolhttp://www.mediumcool.com
I'm not sure if you can put that trailing slash (/) at the end of the docBase. I don't have it on any hosts.
1. Your apache vhost isn't pass anything on to tomcat and it can't process the cfm file
2. your apache httpd file might already have a connection to localhost, I would choose a different name for it.
3. You really don't need all that in the server.xml, below will suffice
The ROOT app is the one served by default by Tomcat.
If you used Jordans installer, you might need to uncomment a section
in sever.xml and add your own context. Can you share the part in
Tomcat server.xml that you have changed?
Take Apache out of the equation, ie hit http://localhost:8888/ what do you see?
Cheers.
> --
> To unsubscribe, reply using "remove me" as the subject.
>
--
Sent from my mobile device
The error you were getting was when Tomcat doesn't know how to resolve a
URL, and passes it off to the default VHost (exactly like Apache does).
So, for one reason or another, Tomcat wasn't picking up your configs.
--
Warm regards,
Jordan Michaels
Vivio Technologies
http://www.viviotech.net/
Open BlueDragon Steering Committee
Railo Community Distributions
The error you were getting was when Tomcat doesn't know how to resolve a URL, and passes it off to the default VHost (exactly like Apache does). So, for one reason or another, Tomcat wasn't picking up your configs.
Services Panel?