收藏首页
您所在的位置:首页 > 完美国际久游 > 正文

私服后台加密教程

作者:admin 来源: 日期:2018-12-11 22:37:11 人气:29 加入收藏 标签:

今天和大家来说下完美国际私服后台加密修改教程

usr\local\jakarta-tomcat-5.5.9\conf


tomcat-users.xml 文件


<?xml version='1.0' encoding='utf-8'?>

<tomcat-users>

  <role rolename="你的用户名"/>

  <user username="你的用户名" password="密码" roles="你的用户名"/>

</tomcat-users>






\usr\local\jakarta-tomcat-5.5.9\webapps\iweb\WEB-INF    


web.xml 文件


<?xml version="1.0" encoding="ISO-8859-1"?>


<!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>

<display-name>Welcome to IWeb</display-name>

<description>Welcome to IWeb</description>


<filter>

<filter-name>IWebRole Filter</filter-name>

<filter-class>com.goldhuman.auth.AuthFilter</filter-class>

<init-param>

<param-name>encoding</param-name>

<param-value>GBK</param-value>

</init-param>

<init-param>

<param-name>allow_users</param-name>

<param-value>manager:zhangxiaoyi; plan:liqing; develope:zengpan,sunzhenyu,hedi,cuiming,baiwei; system:zhaoxiang; gmuser:iwebrole</param-value>

</init-param>

<init-param>

<param-name>allow_issuer_O</param-name>

<param-value>world2.com.cn,wanmei.com</param-value>

</init-param>

</filter>

<filter-mapping>

<filter-name>IWebRole Filter</filter-name>

<url-pattern>/role/*</url-pattern>

</filter-mapping>


<filter>

<filter-name>IWebManage Filter</filter-name>

<filter-class>com.goldhuman.auth.AuthFilter</filter-class>

<init-param>

<param-name>encoding</param-name>

<param-value>GBK</param-value>

</init-param>

<init-param>

<param-name>allow_users</param-name>

<param-value>manager:zhangxiaoyi; plan:liqing; develope:zengpan,sunzhenyu,hedi,cuiming,baiwei; zhaoxiangmonitor:zhaoxiangmonitor; gmuser:iwebrole,iwebmanage; gmhost:aumanager; system:-</param-value>

</init-param>

<init-param>

<param-name>groups_veritype</param-name>

<param-value>system:OU_only</param-value>

</init-param>

<init-param>

<param-name>allow_issuer_O</param-name>

<param-value>world2.com.cn,wanmei.com</param-value>

</init-param>

</filter>

<filter-mapping>

<filter-name>IWebManage Filter</filter-name>

<url-pattern>/manage/*</url-pattern>

</filter-mapping>


<filter>

<filter-name>IWebCGI Filter</filter-name>

<filter-class>com.goldhuman.auth.AuthFilter</filter-class>

<init-param>

<param-name>encoding</param-name>

<param-value>GBK</param-value>

</init-param>

<init-param>

<param-name>allow_users</param-name>

<param-value>manager:zhangxiaoyi; plan:liqing; develope:zengpan,sunzhenyu,hedi,cuiming,baiwei; zhaoxiangmonitor:zhaoxiangmonitor; gmuser:iwebrole,iwebmanage; gmhost:aumanager; system:-</param-value>

</init-param>

<init-param>

<param-name>groups_veritype</param-name>

<param-value>system:OU_only</param-value>

</init-param>

<init-param>

<param-name>allow_issuer_O</param-name>

<param-value>world2.com.cn,wanmei.com</param-value>

</init-param>

</filter>

<filter-mapping>

<filter-name>IWebCGI Filter</filter-name>

<url-pattern>/cgi-bin/*</url-pattern>

</filter-mapping>


<!--

<filter>

<filter-name>IWebGMService Filter</filter-name>

<filter-class>com.goldhuman.auth.AuthFilter</filter-class>

<init-param>

<param-name>encoding</param-name>

<param-value>GBK</param-value>

</init-param>

<init-param>

<param-name>allow_users</param-name>

<param-value>gmhost:aumanager</param-value>

</init-param>

<init-param>

<param-name>allow_issuer_O</param-name>

<param-value>world2.com.cn,wanmei.com</param-value>

</init-param>

<init-param>

<param-name>need_cert</param-name>

<param-value>false</param-value>

</init-param>

</filter>

<filter-mapping>

<filter-name>IWebGMService Filter</filter-name>

<url-pattern>/gmservice</url-pattern>

</filter-mapping>

-->


<servlet>

<servlet-name>cgi</servlet-name>

<servlet-class>org.apache.catalina.servlets.CGIServlet</servlet-class>

<init-param>

<param-name>debug</param-name>

<param-value>0</param-value>

</init-param>

<init-param>

<param-name>cgiPathPrefix</param-name>

<param-value>WEB-INF/cgi</param-value>

</init-param>

<load-on-startup>5</load-on-startup>

</servlet>

<servlet-mapping>

<servlet-name>cgi</servlet-name>

<url-pattern>/cgi-bin/*</url-pattern>

</servlet-mapping>


<servlet>

<servlet-name>gmservice</servlet-name>

<servlet-class>com.caucho.hessian.server.HessianServlet</servlet-class>

<init-param>

<param-name>home-class</param-name>

<param-value>com.goldhuman.service.GMServiceImpl</param-value>

</init-param>

<init-param>

<param-name>home-api</param-name>

<param-value>com.goldhuman.service.interfaces.GMService</param-value>

</init-param>

</servlet>

<servlet-mapping>

<servlet-name>gmservice</servlet-name>

<url-pattern>/gmservice</url-pattern>

</servlet-mapping>


<servlet>

<description>This is the description of my J2EE component</description>

<display-name>This is the display name of my J2EE component</display-name>

<servlet-name>StartupServlet</servlet-name>

<servlet-class>StartupServlet</servlet-class>

<load-on-startup>1</load-on-startup>

</servlet>

<servlet-mapping>

<servlet-name>StartupServlet</servlet-name>

<url-pattern>/servlet/StartupServlet</url-pattern>

</servlet-mapping>



<!-- JSPC servlet mappings start -->

<servlet>

<servlet-name>SOAPMonitorService</servlet-name>

<display-name>SOAP Monitor Service</display-name>

<servlet-class>org.apache.axis.monitor.SOAPMonitorService</servlet-class>

<init-param>

<param-name>SOAPMonitorPort</param-name>

<param-value>5001</param-value>

</init-param>

<load-on-startup>100</load-on-startup>

</servlet>

<servlet>

<servlet-name>AxisServlet</servlet-name>

<display-name>Apache-Axis Servlet</display-name>

<servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>SOAPMonitorService</servlet-name>

<url-pattern>/SOAPMonitor</url-pattern>

</servlet-mapping>

<servlet-mapping>

<servlet-name>AxisServlet</servlet-name>

<url-pattern>/servlet/AxisServlet/*</url-pattern>

</servlet-mapping>

<servlet-mapping>

<servlet-name>AxisServlet</servlet-name>

<url-pattern>*.jws</url-pattern>

</servlet-mapping>

<servlet-mapping>

<servlet-name>AxisServlet</servlet-name>

<url-pattern>/services/*</url-pattern>

</servlet-mapping>

<!-- JSPC servlet mappings end -->



<security-constraint> 

  <web-resource-collection> 

  <web-resource-name>Entire Application</web-resource-name> 

  <url-pattern>/*</url-pattern> 

  </web-resource-collection> 

  <auth-constraint> 

  <!-- NOTE: This role is not present in the default users file --> 

  <role-name>你的用户名</role-name> 

  </auth-constraint> 

  </security-constraint> 


  <!-- Define the Login Configuration for this Application --> 

  <login-config> 

  <auth-method>BASIC</auth-method> 

  <realm-name>警告:密码输错3次,您的IP将自动屏蔽</realm-name> 

  </login-config>



</web-app>


    本文网址:http://wmxiaoai.com/wan/wmgj/273.html
    读完这篇文章后,您心情如何?
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0