Showing posts with label Apache-Tomcat. Show all posts
Showing posts with label Apache-Tomcat. Show all posts

Customise Application Dirctory in Apache-Tomcat 6.0.16

In server.xml in ${catalina.base} has the <Host> customized asà



<Host name="localhost" appBase="D:/Work/IPV/IPV/emptyDir" autoDeploy="false">

<Context path="/" docBase="c:/work/IPV/IPV/site"/>

</Host>


 


For default webapps <Host> tag is as shown belowà

<Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true" xmlNamespaceAware="false" xmlValidation="false">

        <!-- SingleSignOn valve, share authentication between web applications
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
        -->

        <!-- Access log processes all example.
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" 
               prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>

        -->

<Context path="webapps" docBase="C:/xampp/webapps"

         debug="0">

  <!-- Link to the user database we will get roles from -->
 
</Context>
</Host>