Trying to get back into the swing of blogging.....
I had a customer ask a question of me today. "How do you turn of the virtual directory listing in AS9?" Its actually an easy answer, but for anyone used to Web Server or previous versions of Application Server its a little different.
By default in Glassfish (If there is no welcome/index file present), it will display a file directory listing. Its useful for developing and debugging, but you probably want to disable this feature when going into production. In AS8.x world, this setting is located in the domain.xml file. In AS9/Glassfish world, there is a default-web.xml file in the config directory. Look for the setting:
I had a customer ask a question of me today. "How do you turn of the virtual directory listing in AS9?" Its actually an easy answer, but for anyone used to Web Server or previous versions of Application Server its a little different.
By default in Glassfish (If there is no welcome/index file present), it will display a file directory listing. Its useful for developing and debugging, but you probably want to disable this feature when going into production. In AS8.x world, this setting is located in the domain.xml file. In AS9/Glassfish world, there is a default-web.xml file in the config directory. Look for the setting:
<init-param>
<param-name>listings</param-name>
<param-value>true</param-value>
</init-param>