2009/10/30 Chris Blackwell <ch...@team193.com>:
> I'm setting httpd & tomcat's doc roots to the same location because in my
> hosting setup users will be presented with /public_html directory in their
> home directory.  They should be able to place cfml, php and static resources
> in the same location and have them served.

... wow!  That's going to be interesting.

> I realize this might not be ideal, but i can block requests to WEB-INF in my
> httpd.conf using a DirectoryMatch directive

You'll probably also want to block META-INF (and check capitalisation,
that's from memory).

You will also have a more subtle problem that *may* prevent you
implementing this on Windows, though you won't have a problem on any
OS with case-sensitive filenames.  As I recall, httpd will serve a
file even if case doesn't match.  Tomcat is rather more careful.  So
you'll at least need to think about how you handle requests for
WeB-iNf, .CfM files and the like.  If you forward them to Tomcat, it
won't find the file; if you leave them with httpd, it'll serve the
file source.

> I changed the DocumentRoot of my vhost to "C:\temp" and restarted httpd.
> browsing to /CFIDE/administrator/index.cfm still serves up the files source,
> while all other urls are functioning correctly

That's really odd.  Could you use LiveHttpHeaders or similar to
monitor what's going over the wire between browser and server?  I'm
wondering whether something's returning an "unchanged" response and
the browser's returning the file from cache.

- Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to