AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Negare l'accesso a Tomcat

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java (Italian)
View previous topic :: View next topic  
Author Message
dopatodicaffe
Guest





PostPosted: Tue Mar 28, 2006 7:12 pm    Post subject: Negare l'accesso a Tomcat Reply with quote



salve a tutti,
qualcuno sa' dirmi come posso negare
l'accesso diretto ad una directory di una web-application
con Tomcat?

Grazie
Enrico
Back to top
Davide Consonni
Guest





PostPosted: Tue Mar 28, 2006 10:12 pm    Post subject: Re: Negare l'accesso a Tomcat Reply with quote



dopatodicaffe wrote:

Quote:
salve a tutti,
qualcuno sa' dirmi come posso negare
l'accesso diretto ad una directory di una web-application
con Tomcat?

cioè ?

--
Davide Consonni
<davideconsonni (AT) virgilio (DOT) it>
http://csvtosql.sf.net

Legge di Lowery: Se si blocca, forzalo. Se si rompe, tanto si doveva
cambiare.
Back to top
dopatodicaffe
Guest





PostPosted: Wed Mar 29, 2006 8:12 am    Post subject: Re: Negare l'accesso a Tomcat Reply with quote



In pratica, se al browser do il percorso di una directory , questo mi
da l'elenco di tutti i
files contenuti e quindi riesco a vedere il contenuto di questi file,
vorrei poterlo evitare, penso che sia poossibile.

Enrico
Back to top
dopatodicaffe
Guest





PostPosted: Wed Mar 29, 2006 8:12 am    Post subject: Re: Negare l'accesso a Tomcat Reply with quote

Mi spiego:
index___dir1
|__dir2
|__dir3
|__dir4
|___dir5

Se cerco di accedere, ad esempio, ad una delle directory
mi deve redirigere verso una pagina di errore, in praticadevo poter
accedere
solo al file index
Spero di essermi spiegato

Ciao e Grazie

Enrico
Back to top
dopatodicaffe
Guest





PostPosted: Wed Mar 29, 2006 9:12 am    Post subject: Re: Negare l'accesso a Tomcat Reply with quote

Utilizzo solo Tomcat.
Pensi che per fare questi controlli debba installare Apache?
Back to top
Gian Uberto Lauri
Guest





PostPosted: Wed Mar 29, 2006 9:12 am    Post subject: Re: Negare l'accesso a Tomcat Reply with quote

Quote:
Long count = 12.19.13.3.1; tzolkin = 2 Imix; haab = 19 Cumku.
I get words from the Allmighty Great Gnus that
"d" == dopatodicaffe <reginfo1966 (AT) email (DOT) it> writes:

d> In pratica, se al browser do il percorso di una directory , questo
d> mi da l'elenco di tutti i files contenuti e quindi riesco a vedere
d> il contenuto di questi file, vorrei poterlo evitare, penso che sia
d> poossibile.

Non è che è magari Apache quello che va configurato correttamente ?

--
/\ ___
/___/\__|_|\_|__|___Gian Uberto Lauri_____________________
//--\ | | \| | Integralista GNUslamico
\/ e allevatore di bug da competizione
Back to top
Gian Uberto Lauri
Guest





PostPosted: Wed Mar 29, 2006 10:12 am    Post subject: Re: Negare l'accesso a Tomcat Reply with quote

Quote:
Long count = 12.19.13.3.1; tzolkin = 2 Imix; haab = 19 Cumku.
I get words from the Allmighty Great Gnus that
"d" == dopatodicaffe <reginfo1966 (AT) email (DOT) it> writes:

d> Utilizzo solo Tomcat. Pensi che per fare questi controlli debba
d> installare Apache?

Mah, ho appena parlato con la mia sistemista di fiducia e lei diceva
che il directory browsing lo si configura in apache. E penso lei si
riferisse ad un directory listing più ampio che della singola webapp.

Pe la singola webapp penso che tu debba agire sulla configurazione
della servlet di default o a livello di server (nella directory conf,
file web.xml) o nel web.xml della singola applicazione.

Questa è la configurazione della servlet di default nel web.xml
distribuito da Debian, e il listing è attivo:

<servlet>
<servlet-name>default</servlet-name>
<servlet-class>
org.apache.catalina.servlets.DefaultServlet
</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>listings</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>


Se porti a false il parametro listings blocchi il browsing (e qui es-
sendo in $TOMCAT_HOME/conf/web.xml la cosa è per tutte le
applicazioni).

--
/\ ___
/___/\__|_|\_|__|___Gian Uberto Lauri_____________________
//--\ | | \| | Integralista GNUslamico
\/ e allevatore di bug da competizione
Back to top
dopatodicaffe
Guest





PostPosted: Wed Mar 29, 2006 1:12 pm    Post subject: Re: Negare l'accesso a Tomcat Reply with quote

Grazie
va benissimo!

Enrico
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.