Hi,
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]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: [EMAIL PROTECTED]
>
Hope it helps.
Anton.
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>