I've changed ProxyPassMatch to
ProxyPassMatch ^/(.+\.cf[cm])(/.*)?$ ajp://localhost:8009/cfusion/$1$2
and now have CF serving up the 404's instead of Tomcat.

On Fri, Jun 17, 2011 at 2:09 AM, Michael Wright
<mich...@mwwebsolutions.com>wrote:

> Hi,
>
> I'm experimenting with running CF on Tomcat and having a bit of a problem
> getting the proxying set up.
>
> I've been using
>
>
> http://www.web-rat.com/blog/post.cfm/installing-railo-on-tomcat-the-windows-edition
> and
>
> http://www.andyallan.com/blog/post.cfm/coldfusion-and-tomcat-web-server-conifguration
>
> as guides.
>
> I've got my vhost set-up and it works finee with basic .htm but gives me
> 404's on all my .cfm
>
> It's probably something simple I've missed due to it being 2am :)
>
> Extract from httpd.conf:
>
> LoadModule proxy_module modules/mod_proxy.so
> LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
> #LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
> #LoadModule proxy_connect_module modules/mod_proxy_connect.so
> #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
> #LoadModule proxy_http_module modules/mod_proxy_http.so
> #LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
> #LoadModule reqtimeout_module modules/mod_reqtimeout.so
> LoadModule rewrite_module modules/mod_rewrite.so
>
> And my httpd-vhosts entry:
>
> <VirtualHost *:80>
> ServerName cfusion.local
> # We need to specify the Document Root as we are only proxying .cf* files
> to Tomcat, therefore keeping
> # all static files served by Apache
> DocumentRoot "C:/Websites"
> DirectoryIndex index.cfm
> <Location />
>      Order allow,deny
>      Allow from All
> </Location>
> # Only allow proxing from 127.0.0.1
> <Proxy *>
>      Order Deny,Allow
>      Deny from all
>      Allow from 127.0.0.1
> </Proxy>
> # We need the ProxyPreserveHost if we are using multiple VHosts
> ProxyPreserveHost On
> # Only Proxy .cfc and .cfm files
> ProxyPassMatch ^/(.+\.cf[cm])(/.*)?$ ajp://localhost:8009/$1$2#
> # Need these two lines to maintain sessions
> ProxyPassReverseCookieDomain / /
> ProxyPassReverseCookiePath / /
> # Configure logging
> ErrorLog "logs/cfusion-error.log"
> CustomLog "logs/cfusion-access.log" common
> </VirtualHost>
>
>
> I'm guessing it's something to do with the ProxyPassMatch entry???
>
> Thanks,
> Michael
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:345380
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to