-
Notifications
You must be signed in to change notification settings - Fork 9
/
web.xml
98 lines (83 loc) · 3.44 KB
/
web.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<!--
support for JEE cluster, remove this line if you want to put non-serializable objects into the java_session()
-->
<distributable/>
<!-- Prefer a system PHP executable, if available.
Otherwise use the PHP from the .war file. Default is On
-->
<context-param>
<param-name>prefer_system_php_exec</param-name>
<param-value>On</param-value>
</context-param>
<!-- Location of your system PHP executable. Default is /usr/bin/php-cgi or c:/Program Files/PHP/php-cgi.exe
If exported (Linux) or on the path (Windows) you can use 'php-cgi' as a platform
independent pointer to the executable
-->
<context-param>
<param-name>php_exec</param-name>
<param-value>php-cgi</param-value>
<!-- As an example, the param value
of the php-cgi executable could be:
<param-value>/usr/bin/php-cgi5.6</param-value>
<param-value>/usr/bin/php-cgi7.0</param-value>
<param-value>c:/Program Files/PHP/php-cgi.exe</param-value>
-->
</context-param>
<!--
######################################################################
# Servlet filter registrations #
######################################################################
-->
<!-- Handle PHP urls which cannot be expressed using a standard servlet spec 2.2 url-pattern,
e.g.: *.php/delete/from?what=that You may remove this and the filter-mapping below
-->
<filter>
<filter-name>PhpCGIFilter</filter-name>
<filter-class>io.soluble.pjb.servlet.PhpCGIFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>PhpCGIFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- Attach the JSR223 script factory to the servlet context -->
<listener>
<listener-class>io.soluble.pjb.servlet.ContextLoaderListener</listener-class>
</listener>
<!--
######################################################################
# Servlet registrations #
######################################################################
-->
<servlet>
<servlet-name>PhpJavaServlet</servlet-name>
<servlet-class>io.soluble.pjb.servlet.PhpJavaServlet</servlet-class>
</servlet>
<!-- PHP CGI servlet: when IIS or Apache are not available -->
<servlet>
<servlet-name>PhpCGIServlet</servlet-name>
<servlet-class>io.soluble.pjb.servlet.fastcgi.FastCGIServlet</servlet-class>
</servlet>
<!-- PHP Servlet Mapping -->
<servlet-mapping>
<servlet-name>PhpJavaServlet</servlet-name>
<url-pattern>*.phpjavabridge</url-pattern>
</servlet-mapping>
<!-- PHP CGI Servlet Mapping -->
<servlet-mapping>
<servlet-name>PhpCGIServlet</servlet-name>
<url-pattern>*.php</url-pattern>
</servlet-mapping>
<!-- Only for debugging purposes, let it off -->
<context-param>
<param-name>php_include_debugger</param-name>
<param-value>Off</param-value>
</context-param>
<!-- Welcome files -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>