I am not using an alias because I want the apache root to be redirected to
Tomcat for jsp/servlet calls but still have apache serve up the other
request (images..etc).

DocumentRoot is setup to the Apache root, which is different then the Tomcat
root.

<Directory/> : I have not setup any special for this.

In my mod_jk.conf, I am using :

JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

to forward root requests to Tomcat. And in the server.xml:

<Context path="" docBase="ROOT" debug="0"/>

so that calls to the document root will be directed to the correct folder
under tomcat.

Like I said, calls to http://localhost:8080 go to the correct place on
tomcat, but calls to http://localhost only give me the apache directory
listing.

Thanks

Ted

-----Original Message-----
From: Joel Rees [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 12, 2002 10:22 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: Apache serve index.jsp not index.php


Edward Haynes wrote:

> Yes, I have that setup, but I just get a directory listing of the apache
> folder, not the tomcat folder

Other things in httpd.conf that I'm sure you'ved done?
    DocumentRoot
   <directory />
   Alias

> -----Original Message-----
> From: Peter Wieland [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 12, 2002 2:29 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Apache serve index.jsp not index.php
>
>
> Have you tried the Apache DirectoryIndex directive?
> Something like
>
> DirectoryIndex index.jsp
>
> in your httpd.conf should work.
>
> This can be applied at global level or for each <Directory> or <Location>
>
> Refer to the Apache doc for details.
>
> Peter
>
> > Hi. How can I get apache to serve up index.jsp as the default page? I
have
> > read a post on http://www.jguru.com/faq/view.jsp?EID=228635 that talks
> > about
> > setting up the DirectoryIndex on Apache and setting up the
> > <welcome-file-list> in the web.xml of my application. I have done both
of
> > these, but I am still unable to have Apache use the index.jsp as the
> > default
> > page. Currently my app is setup as <Context path="" docBase="myfolder"
> > debug="0" reloadable="true" crossContext="true"/>
>
> > Using http://localhost:8080 defaults to my index.jsp but not
> > http://localhost, this still defaults to my index.php
>
> > Thanks, Ted
>
>
>
>




--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to