twitter
    !! Tell us what you want to Learn / Know !!
Showing posts with label manager for virtual host in tomcat. Show all posts
Showing posts with label manager for virtual host in tomcat. Show all posts

Virtual Hosting

Step1:
     Open server.xml file located in $CATALINA_HOME/conf

     Add the following lines after <Engine name="Catalina" defaultHost="localhost">

       <Host name="127.0.0.1"  appBase="myapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">
            </Host>


      Save the file.

Step2:
      Now create a folder myapps in $CATALINA_HOME/


Step3:
     Start the server.

     Now deploy an application (download) into myapps.

     You can access it with the following url

      http://127.0.0.1:8080/Amig

      If everything went ok you should see the following screen.


Manager for the virtual host:
     
             If you want manager for your virtual host, copy the manager folder from $CATALINA_HOME/webapps to $CATALINA_HOME/myapps


Now you can access manager at following url

http://127.0.0.1:8080/manager/html