Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: Directory recursion with mod_jk2.

Brett Simpson

2004-05-11

Replies:

On Tuesday 11 May 2004 08:21 am, Cox, Charlie wrote:
> Did you set the <welcome-file-list> in web.xml so that it knows to use
> index.cfm as a welcome page?

If I set that then it does work but I would rather control it through Apache
since that will function much closer to our existing Apache + mod_jrun +
Coldfusion MX non-j2ee install.

> Also, I think your <Directory> is wrong for Apache. Apache doesn't know
> about the directories used by tomcat, so it will never match your path. I
> think you want something like this:
>
> <Location />
>   Options All
>   DirectoryIndex index.cfm
> </Location>

I have my document root set the same as the Directory. If I disable mod_jk2
then Apache can browse the files in the
"/opt/jakarta-tomcat-4.1.30/webapps/cfusion/" folder.

DocumentRoot "/opt/jakarta-tomcat-4.1.30/webapps/cfusion/"

  <Directory "/opt/jakarta-tomcat-4.1.30/webapps/cfusion">
    Options All
    DirectoryIndex index.cfm
  </Directory>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.