root/cgi-bin/blogtrader.net/src/main/webapp/WEB-INF/web.xml

Revision 88:66b027ed61e1, 2.4 KB (checked in by dcaoyuan, 3 months ago)

Fixed wrong path

Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
3    <session-config>
4        <session-timeout>
5            30
6        </session-timeout>
7    </session-config>
8   
9    <welcome-file-list>
10        <welcome-file>
11            index.jsp
12        </welcome-file>
13    </welcome-file-list>
14   
15    <filter>
16        <filter-name>UrlRewriteFilter</filter-name>
17        <filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class>
18    </filter>
19    <filter-mapping>
20        <filter-name>UrlRewriteFilter</filter-name>
21        <url-pattern>/*</url-pattern>
22    </filter-mapping>
23   
24    <filter>
25        <filter-name>GzipFilter</filter-name>
26        <filter-class>org.eclipse.jetty.servlets.GzipFilter</filter-class>
27    </filter>
28    <filter-mapping>
29        <filter-name>GzipFilter</filter-name>
30        <url-pattern>/*</url-pattern>
31    </filter-mapping>   
32   
33    <servlet>
34        <servlet-name>fcgi</servlet-name>
35        <servlet-class>org.aiotrade.servlets.fcgi.FastCGIServlet</servlet-class>
36        <init-param>
37            <param-name>serverAddress</param-name>
38            <param-value>localhost:8000</param-value>
39        </init-param>
40        <init-param>
41            <param-name>startExecutable</param-name>
42            <param-value>/data/releases/trac/trac.fcgi.daemon</param-value>
43        </init-param>
44    </servlet>
45   
46    <servlet>
47        <servlet-name>cgi</servlet-name>
48        <servlet-class>org.aiotrade.servlets.cgi.CGIServlet</servlet-class>
49        <init-param>
50            <param-name>defaultCgi</param-name>
51            <param-value>trac</param-value>
52        </init-param>
53        <init-param>
54            <param-name>debug</param-name>
55            <param-value>1</param-value>
56        </init-param>
57        <init-param>
58            <param-name>cgiPathPrefix</param-name>
59            <param-value>WEB-INF/cgi</param-value>
60        </init-param>
61        <load-on-startup>10</load-on-startup>
62    </servlet>
63   
64    <servlet-mapping>
65        <servlet-name>cgi</servlet-name>
66        <url-pattern>/hg/*</url-pattern>
67    </servlet-mapping>
68   
69    <servlet-mapping>
70        <servlet-name>fcgi</servlet-name>
71        <url-pattern>/*</url-pattern>
72    </servlet-mapping>
73   
74</web-app>
75
Note: See TracBrowser for help on using the browser.