Monday, February 13, 2012

How to configure Tomcat 6.0 Virtual Directory

Suppose a virtual directory http://localhost:8080/gandhi will be created on Tomcat 6.0, the virtual directory base directory is in /home/gandhi/tomcat-home. The steps to create the virtual directory are as follows:

  1. Create a file named gandhi.xml in $CATALINA_HOME/conf/Catalina/localhost/
  2. Type the following configuration:
    gandhi" docBase="/home/gandhi/tomcat-home" debug="0" privileged="true">
Now restart the tomcat, and the virtual directory will be up and running.

-gandhi

No comments:

Post a Comment