2014-04-12 3 views
1

침입 테스트 중간에 war 파일을 만들었으며 manageengine 's Service desk plus에 자동 배포하려고합니다. 내 질문은 내가에 전쟁 파일을 ManageEngine에 war 파일 자동 배포

C 넣어

  1. :

    에 \ ManageEngine의 \의 ServiceDesk \ 서버 \ 기본은 \ 배포 \

가 자동 배포

c : \ ManageEngine \ ServiceDesk \ server \ default \ tmp \ deploy \ tmp2724browser.war \

  1. 나는 그것이 내가 URL을 통해 액세스하거나 할 수 있도록 ManageEngine의의 응용 프로그램의 압축을 해제 한 폴더에 배포 할 수있는 방법이 있나요 내가 context.xml에
  2. 을 변경하여이 파일을 액세스 할 수있는 모든 방법이 다음과 같이

또한 서버 폴더의 server.xml 파일이 :

<Server> 

    <!-- Use a custom version of StandardService that allows the 
    connectors to be started independent of the normal lifecycle 
    start to allow web apps to be deployed before starting the 
    connectors. 
    --> 
    <Service name="jboss.web" 
     className="org.jboss.web.tomcat.tc5.StandardService"> 

     <!-- A HTTP/1.1 Connector on port 8080 --> 
     <!-- The compression parameters are taken from the default Tomcat server.xml--> 
     <Connector port="8080" address="${jboss.bind.address}" 
     maxThreads="150" minSpareThreads="25" maxSpareThreads="75" 
     enableLookups="false" redirectPort="8443" acceptCount="100" 
     connectionTimeout="20000" disableUploadTimeout="true" 
     compression="on" 
     compressionMinSize="2048" 
     URIEncoding="UTF-8" 
     noCompressionUserAgents="gozilla, traviata" 
     compressableMimeType="text/css,text/javascript,application/javascript,text/plain,text/html"/> 

     <!-- setBodyEncodingForURI="true" --> 

<!-- A AJP 1.3 Connector on port 8009 --> 
<!-- 
     <Connector port="8009" address="${jboss.bind.address}" 
     enableLookups="false" redirectPort="8443" debug="0" 
     protocol="AJP/1.3"/> 
--> 

     <!-- SSL/TLS Connector configuration using the admin devl guide keystore 
     <Connector port="8443" address="${jboss.bind.address}" 
      maxThreads="100" minSpareThreads="5" maxSpareThreads="15" 
      scheme="https" secure="true" clientAuth="false" 
      keystoreFile="${jboss.server.home.dir}/conf/sdp.keystore" 
      keystorePass="sdpsecured" sslProtocol = "TLS" /> 
     --> 

     <Engine name="jboss.web" defaultHost="localhost"> 

     <!-- The JAAS based authentication and authorization realm implementation 
      - certificatePrincipal : the class name of the 
      org.jboss.security.auth.certs.CertificatePrincipal impl 
      used for mapping X509[] cert chains to a Princpal. 
     --> 
     <Realm className="org.jboss.web.tomcat.security.JBossSecurityMgrRealm" 
      certificatePrincipal="org.jboss.security.auth.certs.SubjectDNMapping" 
      /> 

     <Logger className="org.jboss.web.tomcat.Log4jLogger" 
      verbosityLevel="INFORMATION" 
      category="org.jboss.web.localhost.Engine"/> 

     <Host name="localhost" 
      autoDeploy="false" deployOnStartup="false" deployXML="false"> 

      <!-- Uncomment to enable request dumper. This Valve "logs interesting 
       contents from the specified Request (before processing) and the 
       corresponding Response (after processing). It is especially useful 
       in debugging problems related to headers and cookies." 
      --> 
      <!-- 
      <Valve className="org.apache.catalina.valves.RequestDumperValve" /> 
      --> 

      <!-- Access logger --> 
      <!-- 
      <Valve className="org.apache.catalina.valves.AccessLogValve" 
       prefix="localhost_access_log." suffix=".log" 
       pattern="common" directory="${jboss.server.home.dir}/log" 
       resolveHosts="false" /> 
      --> 


      <!-- Uncomment to check for unclosed connections in servlets/jsps 
      <Valve className="org.jboss.web.tomcat.tc5.jca.CachedConnectionValve" 
       cachedConnectionManagerObjectName="jboss.jca:service=CachedConnectionManager" /> 
      --> 
      <!-- 
      * Various Patterns and its meaning 
         %u - Remote user that was authenticated (if any), else '-' 
         %U - Requested URL path 
         %S - User session ID 
         %{Referer}i - Referer for the web resource 
         %a - Remote IP address 
         %A - Local IP address 
         %m - Request method (GET, POST, etc.) 
         %t - Date and time, in Common Log Format 
         %D - Time taken to process the request, in millis 
         %b - Bytes sent, excluding HTTP headers, or '-' if zero 
         %s - HTTP status code of the response 
         %{User-Agent}i - Browser , platform , robot info ... 
       --> 
      <!-- 
      <Valve className="org.apache.catalina.valves.AccessLogValve" 
       prefix="localhost_access_log." suffix=".log" 
       pattern="%u %U %{JSESSIONIDSSO}c &quot;%{Referer}i&quot; %a %A %m %t %D %b %s &quot;%{User-Agent}i&quot;" 
       directory="${jboss.server.home.dir}/log"/> 
     --> 
     <!-- Access logger --> 
     <!-- 
      * The default logger as packaged with the Tomcat version. If you do not want all the 
      * information that is being logged (as defined in the previous valve), comment out the 
      * earlier one and uncomment the following definition 
     --> 
     <!-- 
     <Valve className="org.apache.catalina.valves.AccessLogValve" 
      prefix="localhost_access_log." suffix=".log" 
      pattern="common" directory="${jboss.server.home.dir}/log" 
      resolveHosts="false" /> 
     --> 
      <!-- Uncomment to enable single sign-on across web apps 
       deployed to this host. Does not provide SSO across a cluster. 
      --> 
     <Valve className="org.apache.catalina.authenticator.SingleSignOn" debug="0"/> 
     <Valve className="com.adventnet.servicedesk.tools.AuthenticateNtlm" debug="0"/> 
      <Valve className="com.adventnet.client.util.LoginParameters" /> 

        <!-- This interceptor is added by 'AAA' team, in order to associate 
      the caller principal in to the thread that is wroking for the request. --> 
        <Valve className="com.adventnet.authentication.CredentialAssociation"/> 

      <!-- Default context parameters --> 
     <DefaultContext cookies="true" crossContext="true" override="true"/> 

     <!-- 
     static context 'help' added. The general product document can be placed in this folder 
     for easy access 
     --> 
      <Context path="/help" appBase="" 
      docBase="${jboss.home.dir}/help/" 
        debug="99" reloadable="true"> 
     </Context> 
     <Context path="/custom" appBase="" 
      docBase="${jboss.home.dir}/custom/" 
        debug="9" reloadable="true"> 
      </Context> 
     <Context path="/inlineimages" appBase="" 
      docBase="${jboss.home.dir}/inlineimages/" 
        debug="9" reloadable="true"> 
     </Context> 
     <Context path="/archive" appBase="" 
      docBase="${jboss.home.dir}/archive/" 
        debug="9" reloadable="true"> 
     </Context> 
     <!-- 
     <Context path="/log" appBase="" 
      docBase="${jboss.home.dir}/server/default/log/" 
        debug="9" reloadable="true"> 
     </Context> 
     --> 

     </Host> 

     </Engine> 

    </Service> 

제한이 난 단지 파일을 업로드 할 수 있어요 때문이다.

답변

0

전쟁 내용을 [SDP Home] 디렉토리의 'test'폴더로 추출하십시오.

[SDP 홈] /server/default/deploy/jbossweb-tomcat50.sar 디렉토리에있는 server.xml에 다음을 추가하십시오.

<Context path="/test" appBase="" docBase="${jboss.home.dir}/test/" debug="9" reloadable="true"></Context> 

SDP 서버를 다시 시작하고 [http : // hostname : portno/test]에 연결하여 테스트 응용 프로그램에 액세스하십시오.