users@glassfish.java.net

Re: How to disable directory listing?

From: Edson Carlos Ericksson Richter <edson.richter_at_mgrinformatica.com.br>
Date: Tue, 19 Sep 2006 11:31:53 -0300

Thanks for the fast response.
Since the server is out of my office, there is any chance I can set this
property using Admin GUI? I have access to 4848 port, but not to ssh
port (it's a Windoze box).

Tkx,

Richter



Jeanfrancois escreveu:
>
>
> Edson Carlos Ericksson Richter wrote:
>> Sometimes this feature is a need. Sometimes it's just a security fault.
>> AFAIK, directory listing is enabled by default. How could I disable
>> this?
>
> I agree it should be disabled, but changing default value in GlassFish
> out of the box configuration is not easy ;-) Just think about access
> logging still enabled :-).
>
> Edit ${glassfish.home}/domains/domain1/config/default-web.xml and change:
>
> <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>
>
> Set listing to false.
>
> -- Jeanfrancois
>
>
>>
>> Tkx,
>>
>> Edson Richter
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>