现在的位置: 首页 > 综合 > 正文

resin-admin.xml文件内容,这个管理程序用的是php,因此可以看看php程序的配置。

2018年05月15日 ⁄ 综合 ⁄ 共 1582字 ⁄ 字号 评论关闭
  1. <server xmlns="http://caucho.com/ns/resin"   
  2.         xmlns:resin="http://caucho.com/ns/resin/core">   
  3.   <host-default>   
  4.     <web-app id="/resin-admin" document-directory="${resinHome}/php/admin">   
  5.       <authenticator jndi-name="caucho/admin/auth">   
  6.         <type>com.caucho.server.security.XmlAuthenticator</type>   
  7.         <init path="${serverRoot}/conf/password.xml"/>   
  8.       </authenticator>   
  9.       <login-config auth-method="DIGEST"   
  10.         authenticator="${jndi:lookup('caucho/admin/auth')}"/>   
  11.       <servlet servlet-name="resin-php"   
  12.                servlet-class="com.caucho.quercus.servlet.QuercusServlet">   
  13.       </servlet>   
  14.       <servlet-mapping url-pattern="*.php" servlet-name="resin-php"/>   
  15.       <security-constraint>   
  16.         <web-resource-collection>   
  17.           <url-pattern>/login.php</url-pattern>   
  18.         </web-resource-collection>   
  19.         <auth-constraint role-name='*'/>   
  20.       </security-constraint>   
  21.   
  22.       <servlet servlet-name='remote'   
  23.                servlet-class='com.caucho.hessian.server.HessianServlet'>   
  24.         <init>   
  25.           <service resin:type="com.caucho.services.jmx.JMXService">   
  26.             <mbean-server>${jndi:lookup("jmx/MBeanServer")}</mbean-server>   
  27.           </service>   
  28.          </init>   
  29.       </servlet>   
  30.   
  31.       <servlet-mapping url-pattern='/remote' servlet-name='remote'/>   
  32.   
  33.       <security-constraint>   
  34.         <web-resource-collection>   
  35.           <url-pattern>/remote</url-pattern>   
  36.         </web-resource-collection>   
  37.         <auth-constraint role-name='*'/>   
  38.       </security-constraint>   
  39.   
  40.     </web-app>   
  41.   </host-default>   
  42.   
  43. </server>  

抱歉!评论已关闭.