Hi all,

I've setup tomcat and apache on my workstation, and unpacked the contents of
the coldfusion 9 war file to my application root.
I have added Host in server.xml and can browse to http://mysite.dev:8080 and
everything runs fine.

looks like this

<Host name="mysite.dev" appBase="webapps"
unpackWARs="true" autoDeploy="true"
 xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="C:\Users\Chris\Documents\Eclipse Workspace\mysite"
/>
</Host>

So i then wanted to connect apache to tomcat, so i've setup apache with a
virtualhost

<VirtualHost *:80>
DocumentRoot "C:\Users\Chris\Documents\Eclipse Workspace\mysite"
 ServerName mysite.dev

ProxyPreserveHost On
ProxyPassReverse / ajp://localhost:8009/

RewriteEngine On
# If it's a CFML (*.cfc or *.cfm) request, just proxy it to Tomcat:
 RewriteRule ^(.+\.cf[cm])$ ajp://localhost:8009$1 [P]
</VirtualHost>

Ok so this seems to work, apart from one really annoying snag.  in the
coldfusion war theres a directory call CFIDE which contains amongst other
things the administrator.  I can browse to
http://mysite.dev:8080/CFIDE/administrator/index.cfm and it happily shows me
the login screen, however if it try to access that directory through apache
it sends me the source code for the file. This only happens with that
directory, content from other directories including others under /CFIDE are
served correctly.  And to make it even more confusing, replace
/CFIDE/administrator with an empty directory, restart tomcat & apache it
still serves up the same source file.

I have mod_rewrite logging turned on and when i hit /CFIDE/administrator/
via apache nothing appears in the access or rewrite log, its like the
request completely bypasses apache and tomcat...

Hope this is the right place to ask, as i'm not sure what the real source of
this problem is.

Cheers, Chris

Reply via email to