ReWriteEngine on
RewriteRule ^\/(.+)\.cfm(.+)? ajp://localhost:8009/$1.cfm$2 [P,L]
RewriteRule ^\/(.+)\.cfc(.+)? ajp://localhost:8009/$1.cfc$2 [P,L]
Dave Shuck wrote:
I am trying to set up ColdFusion as a Tomcat application using Apache 2.2.4 as
the web server. Previously when using Jrun, there was simple connector gui
tool that modified the httpd.conf in such a way that all requested *.cfm and
*.cfc files were sent to a ColdFusion server in JRun for processing, while
static pages were served by httpd. I have been trying for countless hours to
replicate that behavior with httpd --> tomcat --> ColdFusion but just can't
seem to get the right combination of tools/configuration. From what I read
mod_jk did this exact thing quite well, but I am also finding that its
functionality has been replaced by mod_proxy/mod_proxy_ajp. I was able to
pass *all* requests using ProxyPass, but that isn't what I need. It also
appears that some people are accomplishing this task using mod_rewrite, but
that one is escaping me as well. I have walked down many write-ups that were
close but just can't find exactly what I am looking for.
In my complete scenario, I need to have virtual hosts in httpd, and allow
those hosts to send .cfm/.cfc files to specific ColdFusion server
applications within Tomcat.
If someone could offer offer some guidance on moving forward with
mod_proxy/mod_proxy_ajp or perhaps offer a better idea, I would be *very*
grateful!
As I mentioned, I am running httpd 2.2.4 and using Tomcat 6.0.9. This is what
I used for compiling httpd:
./configure --enable-dav=shared --enable-proxy=shared --enable-proxy-ajp=shared
--enable-rewrite=shared --enable-mods-shared=all --enable-ssl=shared
--enable-vhost-alias=shared --enable-proxy-http=shared
I feel like I am missing something quite simple, but I just can't put my
finger on it. Much thanks in advance to anyone who can get me closer.
~Dave
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]