Home / Tutorials / Tomcat7 change default root directory in ubuntu

Tomcat7 change default root directory in ubuntu

  • Create a file ROOT.xml in $CATALINA_HOME/conf/Catalina/localhost/
    In my case its/var/lib/tomcat7/conf/Catalina/localhost/
  • Add following code into ROOT.xml file
    <Context
    docBase="custom_root_path"
    path=""
    reloadable="true"
    />

    In my case custom_root path is /var/www
  • Restart apache tomcat7 using this command:
    service tomcat6 stop
    service tomcat6 start
  • Create index.html file in custom_root_path and access tomcat localhost using http://localhost:8080

 

About cmadmin

Web Developer & Designer | Android App Developer

Check Also

install cpanel whtm

Install And Setup CPanel On A Linux Server

What is CPanel? cPanel is the most popular Linux based hosting control panel used in the …

AMLA-BENEFITS

Amla or Indian Gooseberry – Amazing benefits & uses

The Amla  or Indian Gooseberry is also called Amalka &  Amalaki in Sanskrit which translates …

Login


Username
Create an Account!
Password
Forgot Password? (close)

Sign Up


Username
Email
Password
Confirm Password
Want to Login? (close)

Forget Password?


Username or Email
(close)
%d bloggers like this:
SHARE
OR
SUBSCRIBE
To get latest new / tutorial / technology / development information subscribe with us.
ARE YOU READY? GET IT NOW!
Lets Get Updated with latest trends & tutorials!
Your Information will never be shared with any third party.
Ready for latest tutorials & tools !
OR SUBSCRIBE WITH