Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9186617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:34:23+00:00 2026-06-17T19:34:23+00:00

I want to have tomcat put different webapps to different folders on my server.

  • 0

I want to have tomcat put different webapps to different folders on my server.
Reason is: I am using (test phase) different virtual hosts and therefore I want to seperate the access to them, too.
Lets say:

vhost1.mydomain.com accesses locally at /home/vhost1/webapps/app1

vhost2.mydomain.com accesses locally at /home/vhost2/webapps/app2

BTW: I am only concerned about the deployed path, the war file could stay where ever tomcat wants to have it.
This is because I want to let different users access my deployed content, but not all tomcat webapps.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T19:34:25+00:00Added an answer on June 17, 2026 at 7:34 pm

    I’m not sure about having the deployed path separate from the war file, but you can certainly have different deployment locations for different URLs.

    Edit the (tomcat home)/conf/server.xml

    Find the <host> element:

    <Host name="localhost"  appBase="webapps"
          unpackWARs="true" autoDeploy="true"
          xmlValidation="false" xmlNamespaceAware="false">
    
       <!-- other stuff -->
    </Host>
    

    name should be changed to the URL, e.g. vhost1.mydomain.com
    appBase can be an absolute path on your filesystem where it will look for WAR files to deploy

    You can have multiple <host> entries, all with different name and appBase.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have apache httpd that I want to proxy to two different tomcat servers.
I have a Tomcat server running some Jersey RESTful services and I'm using Apache
we have running tomcat server and in server.xml file we have password=secret I want
I have apache-tomcat as my web server. I want to check what heap size
I have an instance of Apache Tomcat 6.x running, and I want it to
I want to put my images to db but i want to have a
I have put my project in tomcat_home/webapps/ directory. The structure is : project_name/WEB-INF/classes. in
I use tomcat-maven-plugin to deploy my war to a server. What I have to
I am using Tomcat 5.5 server and there is a web application deployed. I
I have a Tomcat v7.0 server setup in my eclipse (helios) environment which I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.