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/imagegen/imagegen/webapp/src/main/webapp/WEB-INF/web.xml

    rb9d5cdf r2aceca5  
    2222     <load-on-startup>1</load-on-startup>
    2323    </servlet>
    24      
     24
     25    <servlet>
     26      <servlet-name>net.i2p.servlet.ErrorServlet</servlet-name>
     27      <servlet-class>net.i2p.servlet.ErrorServlet</servlet-class>
     28      <init-param>
     29        <param-name>name</param-name>
     30        <param-value>imagegen</param-value>
     31      </init-param>
     32    </servlet>
     33
    2534    <!-- precompiled servlets -->
    2635   
     
    3948      <url-pattern>/ra</url-pattern>
    4049    </servlet-mapping>
     50
     51    <servlet-mapping>
     52      <servlet-name>net.i2p.servlet.ErrorServlet</servlet-name>
     53      <url-pattern>/error</url-pattern>
     54    </servlet-mapping>
     55     
    4156   
    4257    <!-- this webapp doesn't actually use sessions or cookies -->
     
    5065    </session-config>
    5166
     67    <error-page>
     68        <error-code>403</error-code>
     69        <location>/error</location>
     70    </error-page>
     71    <error-page>
     72        <error-code>404</error-code>
     73        <location>/error</location>
     74    </error-page>
     75    <error-page>
     76        <error-code>500</error-code>
     77        <location>/error</location>
     78    </error-page>
     79
    5280</web-app>
Note: See TracChangeset for help on using the changeset viewer.