You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Michael Remijan <Mi...@solocup.com> on 2002/08/12 19:45:15 UTC
automatically serve index.jsp
hi all,
I'm currently working on Apache 2.0.39 <-> tomcat-4.1.8 with mod_jk2 and jdk1.4.0_01. I've posted previously about apache giving a directory listing instead of returning index.jsp. The only way I've been able to get around this problem is editing the workers2.properties file to include a mapping to the whole webapp...
- workers2.properties (snippet) -------------------------------------------
[uri:/diary/*]
info=Map the whole webapp
---------------------------------------------------------------------------
I have an alias and directory in httpd.conf set up as follows....
- httpd.conf (snippet) ----------------------------------------------------
##
## diary webapp
##
Alias /diary "C:/apps/Tomcat/jakarta-tomcat-4.1.8-LE-jdk14/webapps/diary"
<Directory "C:/apps/Tomcat/jakarta-tomcat-4.1.8-LE-jdk14/webapps/diary">
Options FollowSymLinks MultiViews IncludesNoExec
AddOutputFilter Includes html htm gif jpeg jpg
AllowOverride None
Order allow,deny
Allow from all
</Directory>
----------------------------------------------------------------------------
The question I have is, because of mapping the whole webapp in the workers2.properties file, will that basically override apache serving static content? I assuming it would but I don't have the time to go digging around in the connector's source.
thanks,
<mike/>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: automatically serve index.jsp
Posted by Steve Prior <sp...@geekster.com>.
You're a little ahead of me in doing this, but did you try adding
index.jsp to a DirectoryIndex directive in Apache?
This was very obious to do in Apache 1.3, not sure as obvious in 2.0.
Steve
Michael Remijan wrote:
> hi all,
>
> I'm currently working on Apache 2.0.39 <-> tomcat-4.1.8 with mod_jk2 and jdk1.4.0_01. I've posted previously about apache giving a directory listing instead of returning index.jsp. The only way I've been able to get around this problem is editing the workers2.properties file to include a mapping to the whole webapp...
>
>
> - workers2.properties (snippet) -------------------------------------------
> [uri:/diary/*]
> info=Map the whole webapp
> ---------------------------------------------------------------------------
>
>
>
> I have an alias and directory in httpd.conf set up as follows....
>
> - httpd.conf (snippet) ----------------------------------------------------
> ##
> ## diary webapp
> ##
> Alias /diary "C:/apps/Tomcat/jakarta-tomcat-4.1.8-LE-jdk14/webapps/diary"
>
> <Directory "C:/apps/Tomcat/jakarta-tomcat-4.1.8-LE-jdk14/webapps/diary">
> Options FollowSymLinks MultiViews IncludesNoExec
> AddOutputFilter Includes html htm gif jpeg jpg
> AllowOverride None
> Order allow,deny
> Allow from all
> </Directory>
> ----------------------------------------------------------------------------
>
>
> The question I have is, because of mapping the whole webapp in the workers2.properties file, will that basically override apache serving static content? I assuming it would but I don't have the time to go digging around in the connector's source.
>
>
> thanks,
> <mike/>
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: automatically serve index.jsp
Posted by Andrew <an...@attbi.com>.
It's a known bug, and fixed.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10789
The next build will contain the fix. (build is July 19, bug fixed July
20)
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/
- Andrew
> -----Original Message-----
> From: Michael Remijan [mailto:Michael.Remijan@solocup.com]
> Sent: Monday, August 12, 2002 1:45 PM
> To: Tomcat Users List
> Subject: automatically serve index.jsp
>
>
> hi all,
>
> I'm currently working on Apache 2.0.39 <-> tomcat-4.1.8 with
> mod_jk2 and jdk1.4.0_01. I've posted previously about apache
> giving a directory listing instead of returning index.jsp.
> The only way I've been able to get around this problem is
> editing the workers2.properties file to include a mapping to
> the whole webapp...
>
>
> - workers2.properties (snippet)
> -------------------------------------------
> [uri:/diary/*]
> info=Map the whole webapp
> --------------------------------------------------------------
> -------------
>
>
>
> I have an alias and directory in httpd.conf set up as follows....
>
> - httpd.conf (snippet)
> ----------------------------------------------------
> ##
> ## diary webapp
> ##
> Alias /diary
> "C:/apps/Tomcat/jakarta-tomcat-4.1.8-LE-jdk14/webapps/diary"
>
> <Directory
> "C:/apps/Tomcat/jakarta-tomcat-4.1.8-LE-jdk14/webapps/diary">
> Options FollowSymLinks MultiViews IncludesNoExec
> AddOutputFilter Includes html htm gif jpeg jpg
> AllowOverride None
> Order allow,deny
> Allow from all
> </Directory>
> --------------------------------------------------------------
> --------------
>
>
> The question I have is, because of mapping the whole webapp
> in the workers2.properties file, will that basically override
> apache serving static content? I assuming it would but I
> don't have the time to go digging around in the connector's source.
>
>
> thanks,
> <mike/>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:tomcat-user-> unsubscribe@jakarta.apache.org>
> For
> additional commands,
> e-mail: <ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>