Menu

[r717]: / trunk / php-java-bridge / server / WEB-INF / web.xml  Maximize  Restore  History

Download this file

104 lines (86 with data), 3.5 kB

  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
 99
100
101
102
103
<?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 J2EE cluster -->
<distributable/>
<!-- Override the define ("JAVA_HOSTS", "127.0.0.1:8080"); -->
<!-- setting from your PHP script, Config.inc or Java.inc or -->
<!-- JavaProxy.php, so that PHP connects back to the current VM. -->
<context-param>
<param-name>override_hosts</param-name>
<param-value>On</param-value>
</context-param>
<!-- Attach the JSR223 script factory to the servlet context -->
<listener>
<listener-class>php.java.servlet.ContextLoaderListener</listener-class>
</listener>
<!-- Terminate invocable scripts when the JSP/framework request finishes -->
<listener>
<listener-class>php.java.servlet.RequestListener</listener-class>
</listener>
<!-- PHP Servlet: back-end for Apache or IIS -->
<servlet>
<servlet-name>PhpJavaServlet</servlet-name>
<servlet-class>php.java.servlet.PhpJavaServlet</servlet-class>
<!-- Allow non-local PHP clients. Default is Off. -->
<!-- Leave this off if your server is connected to the internet. -->
<!--
<init-param>
<param-name>promiscuous</param-name>
<param-value>On</param-value>
</init-param>
-->
<!-- Default is the java.log_level from the php.ini. -->
<!-- See also the system property php.java.bridge.default_log_level -->
<!--
<init-param>
<param-name>servlet_log_level</param-name>
<param-value>2</param-value>
</init-param>
-->
<load-on-startup>0</load-on-startup>
</servlet>
<!-- PHP CGI servlet: when IIS or Apache are not available -->
<servlet>
<servlet-name>PhpCGIServlet</servlet-name>
<servlet-class>php.java.servlet.PhpCGIServlet</servlet-class>
<!-- Your php binary. Default is /usr/bin/php-cgi or -->
<!-- c:/Program Files/PHP/php-cgi.exe -->
<!--
<init-param>
<param-name>php_exec</param-name>
<param-value>php-cgi</param-value>
</init-param>
-->
<!-- Prefer the system php-cgi executable (see DEFAULT_CGI_LOCATIONS) -->
<!-- over a local WEB-INF/cgi/php-cgi-xxx-yyy[.sh|.exe]? -->
<!-- Default is to try a local php-cgi executable first. -->
<init-param>
<param-name>prefer_system_php_exec</param-name>
<param-value>On</param-value>
</init-param>
<!-- The number of PHP processes waiting in the FastCGI pool -->
<!-- Default is 5. -->
<!--
<init-param>
<param-name>php_fcgi_children</param-name>
<param-value>5</param-value>
</init-param>
-->
<load-on-startup>0</load-on-startup>
</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>
<!-- Welcome files -->
<welcome-file-list>
<welcome-file>index.php</welcome-file>
</welcome-file-list>
</web-app>