You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Daniel de Almeida Alvares <da...@techie.com> on 2001/07/19 17:09:55 UTC
Directory Listing
Hi,
I am configuring Tomcat and Apache. They seem to be integrated, but when I type for example:
http://localhost/cnpi
I can see this:
Index of /cnpi
Name Last modified Size Description
--------------------------------------------------------------------------------
Parent Directory 18-Jul-2001 17:51 -
META-INF/ 19-Jun-2001 10:27 -
WEB-INF/ 19-Jun-2001 10:27 -
bd/ 16-Jul-2001 16:52 -
images/ 28-Jun-2001 17:48 -
jsp/ 16-Jul-2001 15:42 -
old/ 19-Jun-2001 10:27 -
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
daniel.alvares@techie.com
Re: Directory Listing
Posted by Denis <g....@gmx.fr>.
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
>daniel.alvares@techie.com
>----- Original Message -----
>From: "Denis" <g....@gmx.fr>
>To: <to...@jakarta.apache.org>
>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
> > ><ma...@techie.com>daniel.alvares@techie.com
> > >
> >
RE: Directory Listing
Posted by Isaac Arias <ik...@tokenzone.com>.
Daniel,
The easiest and fastest way is to add and empty file called index.jsp
to your /cnpi directory. This will be read instead of showing the
directory listing.
Good luck,
Ike
__________________________________________________________
Isaac Arias
Tokenzone <w> www.tokenzone.com </w>
__________________________________________________________
Man will occasionally stumble over the truth, but most
of the time he will pick himself up and continue.
- Winston Churchill
> -----Original Message-----
> From: Daniel de Almeida Alvares [mailto:daniel.alvares@techie.com]
> Sent: Thursday, July 19, 2001 11:20 AM
> To: tomcat-user@jakarta.apache.org
> Subject: Re: Directory Listing
>
>
> 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
> daniel.alvares@techie.com
> ----- Original Message -----
> From: "Denis" <g....@gmx.fr>
> To: <to...@jakarta.apache.org>
> 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
> > ><ma...@techie.com>daniel.alvares@techie.com
> > >
> >
>
Re: Directory Listing
Posted by Daniel de Almeida Alvares <da...@techie.com>.
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
daniel.alvares@techie.com
----- Original Message -----
From: "Denis" <g....@gmx.fr>
To: <to...@jakarta.apache.org>
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
> ><ma...@techie.com>daniel.alvares@techie.com
> >
>
Re: Directory Listing
Posted by Denis <g....@gmx.fr>.
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 17:51 -
>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 10:27 -
>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
><ma...@techie.com>daniel.alvares@techie.com
>