Zum Inhalt springen

Tomcat Konfigurationsanpassung

Aus LHlab Wiki

Diese Konfiguration Änderungen machen den Tomcat ein kleines bisschen sicherer. Die Änderungen werden in der jeweiligen Tomcat Instanz in der web.xml durchgeführt.

Error Pages

    <error-page>
        <error-code>500</error-code>
        <location>/server_error.html</location>
    </error-page>
    <error-page>
        <error-code>404</error-code>
        <location>/file_not_found.html</location>
    </error-page>

Custom Default Page

    <welcome-file-list>
        <welcome-file>now_see_this.jsp</welcome-file>
        <welcome-file>page1.html</welcome-file>
        <welcome-file>index.html</welcome-file>
    </welcome-file-list>

Directory Listing

    <init-param>
        <param-name>listings</param-name>
        <param-value>true</param-value>
    </init-param>