when you execute
http://localhost/cnpi
if cnpi is your app
you must have a index.html or a index.jsp

in conf files :
in tomcat.conf
add

Alias /cnpi/usr/website/webapps/cnpi
<Directory "/usr/website/webapps/cnpi" >
</Directory>
<Location /myApp/WEB-INF/ >
AllowOverride None
deny from all
</Location>

in server.xml
uncomment 8080
use ajpv12 for ex
add in server.xml
<Context 
path="/cnpi"  docBase="webapps/cnpi"   crossContext="false"    debug="0" 
  reloadable="true" >  </Context>

stop tomcat
stop apache
start tomcat and start apache
see error.log access.log  tomcat.log

good luck

denis


At 12:20 19/07/01 -0300, you wrote:
>yes
>iīm using 8080
>but īmy app dir is mapped at Apache, and I donīt need to use :8080 but itīs
>allowing directory listing !
>is it possible to avoid that ?
>regards
>Daniel
>_______________________
>Daniel de Almeida Alvares
>Santos - SP - Brasil
>[EMAIL PROTECTED]
>----- Original Message -----
>From: "Denis" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, July 19, 2001 12:20 PM
>Subject: Re: Directory Listing
>
>
> > check your configuration file
> > what port are u using ? 8080 ajpv12 ajpv13
> > if 8080
> > try http://localhot:8080
> > can u see tomcat app ?
> >
> >
> >
> > At 12:09 19/07/01 -0300, you wrote:
> > >Hi,
> > >I am configuring Tomcat and Apache. They seem to be integrated, but when
>I
> > >type for example:
> > >
> > ><http://localhost/cnpi>http://localhost/cnpi
> > >
> > >I can see this:
> > >
> > >
> > >
> > >Index of /cnpi
> > >
> > >
> > >
> > >
> > >blank.gif
> > ><http://daniel/cnpi/?N=D>Name
> > ><http://daniel/cnpi/?M=A>Last
> > >modified       <http://daniel/cnpi/?S=A>Size
> > ><http://daniel/cnpi/?D=A>Description
> > >
> > >----------
> > >
> > >
> > >
> > >folder.gif <http://daniel/>Parent Directory        18-Jul-2001
>       -
> > >folder.gif
> > ><http://daniel/cnpi/META-INF/>META-INF/               19-Jun-2001
> > >10:27      -
> > >folder.gif
> > ><http://daniel/cnpi/WEB-INF/>WEB-INF/                19-Jun-2001
>       -
> > >folder.gif <http://daniel/cnpi/bd/>bd/                     16-Jul-2001
> > >16:52      -
> > >folder.gif <http://daniel/cnpi/images/>images/
>28-Jun-2001
> > >17:48      -
> > >folder.gif <http://daniel/cnpi/jsp/>jsp/                    16-Jul-2001
> > >15:42      -
> > >folder.gif <http://daniel/cnpi/old/>old/                    19-Jun-2001
> > >10:27      -
> > >folder.gif <http://daniel/cnpi/temp/>temp/                   26-Jun-2001
> > >17:53      -
> > >
> > >----------
> > >Apache/1.3.12 Server at daniel Port 80         How can I avoid directory
> > >listing ?????   Regards   Daniel   _______________________
> > >Daniel de Almeida Alvares
> > >Santos - SP - Brasil
> > ><mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]
> > >
> >

Reply via email to