Ignore:
Timestamp:
Mar 14, 2018 6:33:14 PM (2 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
00dc1ed
Parents:
b9d5cdf
Message:

Console: Add error handler to all webapps (ticket #2155)
Fix up default servlet handling in i2ptunnel and susidns

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/i2psnark/web.xml

    rb9d5cdf r2aceca5  
    1919     <load-on-startup>1</load-on-startup>
    2020    </servlet>
     21
     22    <servlet>
     23      <servlet-name>net.i2p.servlet.ErrorServlet</servlet-name>
     24      <servlet-class>net.i2p.servlet.ErrorServlet</servlet-class>
     25      <init-param>
     26        <param-name>name</param-name>
     27        <param-value>I2PSnark</param-value>
     28      </init-param>
     29    </servlet>
    2130     
    2231    <!-- precompiled servlets -->
     
    2534      <servlet-name>org.klomp.snark.web.I2PSnarkServlet</servlet-name>
    2635      <url-pattern>/</url-pattern>
     36    </servlet-mapping>
     37
     38    <servlet-mapping>
     39      <servlet-name>net.i2p.servlet.ErrorServlet</servlet-name>
     40      <url-pattern>/.error</url-pattern>
    2741    </servlet-mapping>
    2842   
     
    3751    </session-config>
    3852
     53    <error-page>
     54        <error-code>403</error-code>
     55        <location>/.error</location>
     56    </error-page>
     57    <error-page>
     58        <error-code>404</error-code>
     59        <location>/.error</location>
     60    </error-page>
     61    <error-page>
     62        <error-code>500</error-code>
     63        <location>/.error</location>
     64    </error-page>
    3965</web-app>
Note: See TracChangeset for help on using the changeset viewer.