tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julien OIX <julien....@presidence.univ-nantes.fr>
Subject Re: Tomcat/Apache acces control
Date Thu, 24 Jan 2002 13:40:36 GMT
Anton Brazhnyk a écrit :
> 
> Hi,
> 
> > -----Original Message-----
> > From: oix@av9500.presidence.univ-nantes.fr
> > [mailto:oix@av9500.presidence.univ-nantes.fr]On Behalf Of Julien OIX
> > Sent: Thursday, January 24, 2002 2:37 PM
> > To: Tomcat list
> > Subject: Tomcat/Apache acces control
> >
> >
> > hi everybody,
> >
> > I'd like that directories under my Virtual Host's DocumentRoot can't be
> > browsed by an URL ...
> >
> > I supposed that the Apache configuration could resolve this (in a
> > <Directory> directive, put the line "Options -Indexes"), but it doesn't
> > work ...(browsing is always enabled by the Tomcat/Apache service!!)
> >
> > Is this with tomcat configuration (server.xml or web.xml) that I can
> > control this stuff or do I have a problem with my httpd.conf ?
> >
> 
> I don't know about the way (if possible) to do it with Apache,
> but you should be able to do it with Tomcat.
> if you don't care about indexing in the apps other then yours
> you could edit your CATALINA_BASE/conf/web.xml
> 
>   <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>false</param-value>   <!-- HERE it was true by default
-->
>     </init-param>
>   </servlet>
> 
> or you could disable an indexing in your app only,
> in its web.xml :
> 
>   <servlet>
>     <servlet-name>my_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>false</param-value>
>     </init-param>
>   </servlet>
> 
>   <servlet-mapping>
>     <servlet-name>my_default</servlet-name>
>     <url-pattern>/</url-pattern>
>   </servlet-mapping>
> 
> > thanks in advance
> > --
> > Julien OIX
> > Service Informatique de Gestion
> > T?l: 02 40 99 83 65
> > mail: julien.oix@presidence.univ-nantes.fr
> >
> 
> Hope it helps.
> Anton.
> 

That's right !!!!

thanks a lot, anton 

-- 
Julien OIX
Service Informatique de Gestion
Tél: 02 40 99 83 65
mail: julien.oix@presidence.univ-nantes.fr

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message