You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Emilio Miranda <em...@atos-ods.com.pe> on 2002/05/06 19:28:52 UTC
Access to the source code from the begining
Hello!!
I am developing a little site :
http://myhost:8080/mkg/
In mkg I have mi site, well if I put this link it appears the list of all my
files like this :
Directory Listing For /
Filename Size Last Modified
cfg/ Sat, 04 May 2002 00:19:27 GMT
images/ Thu, 02 May 2002 21:52:59 GMT
jsp/ Fri, 03 May 2002 23:35:32 GMT
servlets/ Thu, 02 May 2002 21:52:59 GMT
And somebody could read it, I mean the source code or cfg files. ... what
can I do in order to avoid this?
Thanks a lot!
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Access to the source code from the beginning
Posted by Emilio Miranda <em...@atos-ods.com.pe>.
ok, that is!
I am using just Tomcat 4.0.3, without apache.
It works now, well it is right, I modified the web.xml that is in the
TOMCAT_HOME/conf/web.xml
in listing I put false, but what I for got was put and index.html (welcome
page) in my directory.
Now it works I have
http://myhost:8080/examples/
and in the directory examples I put an index.html and I see it when I put
the link, but you know? there was still a problem.
for example if I know that there is and images directory I could put the
link of that and I can access to the files
http://myhost:8080/examples/images/
so I put and index.html also in this directory and well now when I tried to
enter to some directory (asume that I know the name) I show a page of
wellcome.
I Really apreciate your help.
Thanks a lot!
Monday, May 06, 2002, 12:51:49 PM, you wrote:
EM> So sorry, but apparently it doesn`t work , I made the changes and it
still
EM> show the directories
EM> even with the examples directory of the tomcat I have the problem.
EM> http://myhost:8080/examples/
EM> Directory Listing For /Filename Size Last Modified
EM> images/ Tue, 09 Apr 2002 18:05:14 GMT
EM> jsp/ Tue, 09 Apr 2002 18:05:14 GMT
EM> servlets/ Tue, 09 Apr 2002 18:05:12 GMT
EM> Apache Tomcat/4.0
EM> Please some other advice? I am using Tomcat4.0.3 I found the file, ok, I
EM> turn off , I have the welcome page, but apparently it just work for the
main
EM> page, but what happen when I try to enter to my webapps like examples?
EM> Really apreciate your help
EM> -----Mensaje original-----
EM> De: Golan [mailto:approved_lists@opticnerve.tv]
EM> Enviado el: lunes, 06 de mayo de 2002 12:38
EM> Para: Tomcat Users List
EM> Asunto: RE: Access to the source code from the beginning
EM> Emilio:
EM> Check out the web.xml file located at ./TOMCAT_HOME/conf/web.xml.
EM> You will notice, probably in the first <servlet/> mapping, the
following...
EM> <init-param>
EM> <param-name>listings</param-name>
EM> <param-value>true</param-value>
EM> </init-param>
EM> change this to...
EM> <init-param>
EM> <param-name>listings</param-name>
EM> <param-value>false</param-value>
EM> </init-param>
EM> Restart your server and this should solve the problem you have
indicated.
EM> Peace,
EM> Tal
EM> -----Original Message-----
EM> From: Emilio Miranda [mailto:emiranda@atos-ods.com.pe]
EM> Sent: Monday, May 06, 2002 10:29 AM
EM> To: Tomcat Users List
EM> Subject: Access to the source code from the begining
EM> Hello!!
EM> I am developing a little site :
EM> http://myhost:8080/mkg/
EM> In mkg I have mi site, well if I put this link it appears the list of
all my
EM> files like this :
EM> Directory Listing For /
EM> Filename Size Last Modified
EM> cfg/ Sat, 04 May 2002 00:19:27 GMT
EM> images/ Thu, 02 May 2002 21:52:59 GMT
EM> jsp/ Fri, 03 May 2002 23:35:32 GMT
EM> servlets/ Thu, 02 May 2002 21:52:59 GMT
EM> And somebody could read it, I mean the source code or cfg files. ...
what
EM> can I do in order to avoid this?
EM> Thanks a lot!
EM> --
EM> To unsubscribe, e-mail:
EM> <ma...@jakarta.apache.org>
EM> For additional commands, e-mail:
EM> <ma...@jakarta.apache.org>
EM> ---
EM> Incoming mail is certified Virus Free.
EM> Checked by AVG anti-virus system (http://www.grisoft.com).
EM> Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
EM> ---
EM> Outgoing mail is certified Virus Free.
EM> Checked by AVG anti-virus system (http://www.grisoft.com).
EM> Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
EM> --
EM> To unsubscribe, e-mail:
EM> <ma...@jakarta.apache.org>
EM> For additional commands, e-mail:
EM> <ma...@jakarta.apache.org>
EM> --
EM> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
EM> For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
Best regards,
Jacob mailto:hoju@visi.com
--
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[2]: Access to the source code from the beginning
Posted by Jacob Kjome <ho...@visi.com>.
Hello Emilio,
Are you using Apache and mod_jk to front requests to Tomcat? If so,
you need to protect the static files or directories using Apache
directives. Only if you forward *all* requests to Tomcat or just go
directly to Tomcat on port 8080 will the
previously mentioned solutions work.
Jake
Monday, May 06, 2002, 12:51:49 PM, you wrote:
EM> So sorry, but apparently it doesn`t work , I made the changes and it still
EM> show the directories
EM> even with the examples directory of the tomcat I have the problem.
EM> http://myhost:8080/examples/
EM> Directory Listing For /Filename Size Last Modified
EM> images/ Tue, 09 Apr 2002 18:05:14 GMT
EM> jsp/ Tue, 09 Apr 2002 18:05:14 GMT
EM> servlets/ Tue, 09 Apr 2002 18:05:12 GMT
EM> Apache Tomcat/4.0
EM> Please some other advice? I am using Tomcat4.0.3 I found the file, ok, I
EM> turn off , I have the welcome page, but apparently it just work for the main
EM> page, but what happen when I try to enter to my webapps like examples?
EM> Really apreciate your help
EM> -----Mensaje original-----
EM> De: Golan [mailto:approved_lists@opticnerve.tv]
EM> Enviado el: lunes, 06 de mayo de 2002 12:38
EM> Para: Tomcat Users List
EM> Asunto: RE: Access to the source code from the beginning
EM> Emilio:
EM> Check out the web.xml file located at ./TOMCAT_HOME/conf/web.xml.
EM> You will notice, probably in the first <servlet/> mapping, the following...
EM> <init-param>
EM> <param-name>listings</param-name>
EM> <param-value>true</param-value>
EM> </init-param>
EM> change this to...
EM> <init-param>
EM> <param-name>listings</param-name>
EM> <param-value>false</param-value>
EM> </init-param>
EM> Restart your server and this should solve the problem you have indicated.
EM> Peace,
EM> Tal
EM> -----Original Message-----
EM> From: Emilio Miranda [mailto:emiranda@atos-ods.com.pe]
EM> Sent: Monday, May 06, 2002 10:29 AM
EM> To: Tomcat Users List
EM> Subject: Access to the source code from the begining
EM> Hello!!
EM> I am developing a little site :
EM> http://myhost:8080/mkg/
EM> In mkg I have mi site, well if I put this link it appears the list of all my
EM> files like this :
EM> Directory Listing For /
EM> Filename Size Last Modified
EM> cfg/ Sat, 04 May 2002 00:19:27 GMT
EM> images/ Thu, 02 May 2002 21:52:59 GMT
EM> jsp/ Fri, 03 May 2002 23:35:32 GMT
EM> servlets/ Thu, 02 May 2002 21:52:59 GMT
EM> And somebody could read it, I mean the source code or cfg files. ... what
EM> can I do in order to avoid this?
EM> Thanks a lot!
EM> --
EM> To unsubscribe, e-mail:
EM> <ma...@jakarta.apache.org>
EM> For additional commands, e-mail:
EM> <ma...@jakarta.apache.org>
EM> ---
EM> Incoming mail is certified Virus Free.
EM> Checked by AVG anti-virus system (http://www.grisoft.com).
EM> Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
EM> ---
EM> Outgoing mail is certified Virus Free.
EM> Checked by AVG anti-virus system (http://www.grisoft.com).
EM> Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
EM> --
EM> To unsubscribe, e-mail:
EM> <ma...@jakarta.apache.org>
EM> For additional commands, e-mail:
EM> <ma...@jakarta.apache.org>
EM> --
EM> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
EM> For additional commands, e-mail: <ma...@jakarta.apache.org>
--
Best regards,
Jacob mailto:hoju@visi.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
R: Access to the source code from the beginning
Posted by Gianluca Gravina <g_...@virgilio.it>.
> So sorry, but apparently it doesn`t work , I made the changes
> and it still show the directories even with the examples
> directory of the tomcat I have the problem.
>
> http://myhost:8080/examples/
>
> Directory Listing For /Filename Size Last Modified
> images/ Tue, 09 Apr 2002 18:05:14 GMT
> jsp/ Tue, 09 Apr 2002 18:05:14 GMT
> servlets/ Tue, 09 Apr 2002 18:05:12 GMT
>
> Apache Tomcat/4.0
>
> Please some other advice? I am using Tomcat4.0.3 I found the
> file, ok, I turn off , I have the welcome page, but
> apparently it just work for the main page, but what happen
> when I try to enter to my webapps like examples?
>
> Really apreciate your help
I didn't try, but perhaps U have to put that directive in the web.xml
situated in your app-folder, not in the server.xml. Try it and let me
know ...
Gianluca Gravina
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Access to the source code from the beginning
Posted by Golan <ap...@opticnerve.tv>.
Did you restart Tomcat?
T
-----Original Message-----
From: Emilio Miranda [mailto:emiranda@atos-ods.com.pe]
Sent: Monday, May 06, 2002 10:52 AM
To: Tomcat Users List
Subject: RE: Access to the source code from the beginning
So sorry, but apparently it doesn`t work , I made the changes and it still
show the directories
even with the examples directory of the tomcat I have the problem.
http://myhost:8080/examples/
Directory Listing For /Filename Size Last Modified
images/ Tue, 09 Apr 2002 18:05:14 GMT
jsp/ Tue, 09 Apr 2002 18:05:14 GMT
servlets/ Tue, 09 Apr 2002 18:05:12 GMT
Apache Tomcat/4.0
Please some other advice? I am using Tomcat4.0.3 I found the file, ok, I
turn off , I have the welcome page, but apparently it just work for the main
page, but what happen when I try to enter to my webapps like examples?
Really apreciate your help
-----Mensaje original-----
De: Golan [mailto:approved_lists@opticnerve.tv]
Enviado el: lunes, 06 de mayo de 2002 12:38
Para: Tomcat Users List
Asunto: RE: Access to the source code from the beginning
Emilio:
Check out the web.xml file located at ./TOMCAT_HOME/conf/web.xml.
You will notice, probably in the first <servlet/> mapping, the following...
<init-param>
<param-name>listings</param-name>
<param-value>true</param-value>
</init-param>
change this to...
<init-param>
<param-name>listings</param-name>
<param-value>false</param-value>
</init-param>
Restart your server and this should solve the problem you have indicated.
Peace,
Tal
-----Original Message-----
From: Emilio Miranda [mailto:emiranda@atos-ods.com.pe]
Sent: Monday, May 06, 2002 10:29 AM
To: Tomcat Users List
Subject: Access to the source code from the begining
Hello!!
I am developing a little site :
http://myhost:8080/mkg/
In mkg I have mi site, well if I put this link it appears the list of all my
files like this :
Directory Listing For /
Filename Size Last Modified
cfg/ Sat, 04 May 2002 00:19:27 GMT
images/ Thu, 02 May 2002 21:52:59 GMT
jsp/ Fri, 03 May 2002 23:35:32 GMT
servlets/ Thu, 02 May 2002 21:52:59 GMT
And somebody could read it, I mean the source code or cfg files. ... what
can I do in order to avoid this?
Thanks a lot!
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
--
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>
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Access to the source code from the beginning
Posted by Emilio Miranda <em...@atos-ods.com.pe>.
So sorry, but apparently it doesn`t work , I made the changes and it still
show the directories
even with the examples directory of the tomcat I have the problem.
http://myhost:8080/examples/
Directory Listing For /Filename Size Last Modified
images/ Tue, 09 Apr 2002 18:05:14 GMT
jsp/ Tue, 09 Apr 2002 18:05:14 GMT
servlets/ Tue, 09 Apr 2002 18:05:12 GMT
Apache Tomcat/4.0
Please some other advice? I am using Tomcat4.0.3 I found the file, ok, I
turn off , I have the welcome page, but apparently it just work for the main
page, but what happen when I try to enter to my webapps like examples?
Really apreciate your help
-----Mensaje original-----
De: Golan [mailto:approved_lists@opticnerve.tv]
Enviado el: lunes, 06 de mayo de 2002 12:38
Para: Tomcat Users List
Asunto: RE: Access to the source code from the beginning
Emilio:
Check out the web.xml file located at ./TOMCAT_HOME/conf/web.xml.
You will notice, probably in the first <servlet/> mapping, the following...
<init-param>
<param-name>listings</param-name>
<param-value>true</param-value>
</init-param>
change this to...
<init-param>
<param-name>listings</param-name>
<param-value>false</param-value>
</init-param>
Restart your server and this should solve the problem you have indicated.
Peace,
Tal
-----Original Message-----
From: Emilio Miranda [mailto:emiranda@atos-ods.com.pe]
Sent: Monday, May 06, 2002 10:29 AM
To: Tomcat Users List
Subject: Access to the source code from the begining
Hello!!
I am developing a little site :
http://myhost:8080/mkg/
In mkg I have mi site, well if I put this link it appears the list of all my
files like this :
Directory Listing For /
Filename Size Last Modified
cfg/ Sat, 04 May 2002 00:19:27 GMT
images/ Thu, 02 May 2002 21:52:59 GMT
jsp/ Fri, 03 May 2002 23:35:32 GMT
servlets/ Thu, 02 May 2002 21:52:59 GMT
And somebody could read it, I mean the source code or cfg files. ... what
can I do in order to avoid this?
Thanks a lot!
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
--
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: Access to the source code from the beginning
Posted by Golan <ap...@opticnerve.tv>.
Emilio:
Check out the web.xml file located at ./TOMCAT_HOME/conf/web.xml.
You will notice, probably in the first <servlet/> mapping, the following...
<init-param>
<param-name>listings</param-name>
<param-value>true</param-value>
</init-param>
change this to...
<init-param>
<param-name>listings</param-name>
<param-value>false</param-value>
</init-param>
Restart your server and this should solve the problem you have indicated.
Peace,
Tal
-----Original Message-----
From: Emilio Miranda [mailto:emiranda@atos-ods.com.pe]
Sent: Monday, May 06, 2002 10:29 AM
To: Tomcat Users List
Subject: Access to the source code from the begining
Hello!!
I am developing a little site :
http://myhost:8080/mkg/
In mkg I have mi site, well if I put this link it appears the list of all my
files like this :
Directory Listing For /
Filename Size Last Modified
cfg/ Sat, 04 May 2002 00:19:27 GMT
images/ Thu, 02 May 2002 21:52:59 GMT
jsp/ Fri, 03 May 2002 23:35:32 GMT
servlets/ Thu, 02 May 2002 21:52:59 GMT
And somebody could read it, I mean the source code or cfg files. ... what
can I do in order to avoid this?
Thanks a lot!
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>