-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Leo,

On 11/8/13, 12:18 PM, Leo Donahue - OETX wrote:
> Tomcat 7.0.47
> 
> Reading over the security benchmark I posted a link to earlier,
> there is one that suggests to separate out the web content
> directory from the Tomcat system files.  Reading the Tomcat docs
> for appBase, I see I can set this value.
> 
> Reading further down in the Tomcat docs for Host, other questions
> have spawned... and I blame it on being Friday.
> 
> 1.  When/Why would I change the xmlBase directory location?  For
> the same reasons I would change the appBase directory?
> 
> 2.  What is the benefit of un-packing WAR files? a.  If you drop a
> WAR file into your webapps directory (appBase I guess), and it
> unpacks, should you leave the WAR file there or remove it?
> 
> 3.  WAR files located outside of the Host's appBase will not be
> expanded... a.  Why would I deploy WAR files outside of the Host's
> appBase? b.  Where are those deployed?  By specifying the docBase?
> 
> 4. What is the difference exactly between appBase and docBase?

appBase is where webapps for a host generally live. You'll find WAR
files and expanded-WAR directories that will be deployed as contexts.
You can disable autoDeploy and deployOnStartup and then basically
appBase is no longer relevant (unless you just want to continue to use
it in that capacity, but use e.g. the Manager webapp to deploy
everything). You specify appBase in a <Host> element in server.xml.

docBase is the root of a specific webapp. Unless you put your
WAR/exploded-WAR-dir outside of Tomcat's autoDeploy directory (that
is, appBase), you generally don't have to specify this. You specify
docBase in a <Context> element in those places where <Context>s are
expected.

> If the Context is specified in server.xml, I can have an appBase
> and a docBase?

The context only has a docBase. appBase has no meaning for a single
context.

> I know docBase has to be set outside of the Host's appBase, but why
> would I have two locations for WAR files?

You might not want to auto-deploy. Or you may want to host Tomcat on
one disk but your webapp on another. There are lots reasons to put WAR
files in places other than the appBase but under normal circumstances,
you just drop your WAR file into the <Host>'s appBase and and call it
a day.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSfV2xAAoJEBzwKT+lPKRYztAP+wVWnKqn4FhpZUUzZdiNCu55
nhUAuc1yylOKamm/1N0gBNRow1aCupANEqhqbeufGeY2ocKkIdQB+32U4Cy18Brc
KBNFzh1fS7KA145rT/3OXeSp/zn+HvGpUupqF0PA7DM5C7PtJF5L7ae4J7gF8tqH
MJlfZM+WMTkd/MnAoxrJSyvicS81V5K0eGPqBwOljSRQu4uMhEeDlqLXdG2/IKrc
ajljTcKAyc9fOxU5Rv3HBmv5pp+IxPLWj4uA8Jq6Iegbsc65arFtabH47gezcV9R
gt+lxmZjdJIUJvDnV9092gyh2HJwU/ErS6X5tRLX+rnTdpCLxcpveywGlicdMEaj
2Lc2/SHoWleW2ufXNlK63u7P7WmFBGqGqqRuUa2QXEzCVd9DL+qd4phmzQeSfb9g
/Mz42klo0A04y224DEq0nekfZtGsXIAw4f+dtSXAp2HVtGG0oQnn3SPfKesWBBaz
LPhQjcBeliZk4Hr/5UC4KcU/F/ToonP9VFofmPe9lJ61u0gjXfo0TXN8VPWUYYp5
vZV6QrQgXyFaRfB2BXxArHpdNsczqCyA3aXVO9i5hj3b3QWpSsc4htf2Lsj1W/wm
VpC1A09tCsTN17IxY07+/ZDxNzQYuZjfOZoZVB2n+Y743zAw6hizvDCls7+AYSgR
vU6P3iS+B0jMzp5I+BnG
=5b7t
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to