Chris, On 10/21/2016 12:03 PM, Christopher Schultz wrote:
I've been running Tomcat for almost 10 years now, and this works for me well, having separate directory trees for software, config files, and web documents.I'm not sure anyone else's opinion matters at this point. You've decided what you want to do... you're just looking for validation. Technically, this works. Whether there are better ways to do it are debatable.
So yes, I've decided what I want to do. But I want to make sure that there are no unintended consequences of which I'm unaware.
That's because I'm not looking for an opinion of users who've found some config files online and copied/pasted them to their server. I'm looking for an opinion of someone who knows the inner workings of Tomcat, e.g. someone from the core team members.But you're not interested in anyone else's opinon, so why bother asking?
So far no one has shown me how they set up Tomcat in a directory outside of $CATALINA_BASE. The few "opinions" that I received say that my web directories should reside inside $CATALINA_BASE/webapps, which as you stated -- I've already decided that is not what I want.
How exactly does that show how to specify where the web root will be, and have it outside of $CATALINA_BASE/webapps?How many different ways are there to demonstrate: <Host> <Context /> </Host> ??
My question, at least the 2nd time around, is in my opinion very clear and very valid. It'd be really great if someone can provide a real answer rather than post a couple of links to the docs (I have access to google too), or tell me that I'm just "doing it wrong".
Sincerely, Igal
There is a description of all the ways to define a context here: https://tomcat.apache.org/tomcat-8.5-doc/config/context.html#Defining_a_ context The files go where the files go. The contents are not terribly relevant. What kind of example were you looking for? - -chrisOn 10/21/2016 1:21 AM, r.bott...@afterbit.com wrote:Hello, did you received some real config? Roberto. -----Messaggio originale----- Da: Igal @ Lucee.org [mailto:i...@lucee.org] Inviato: venerdì 7 ottobre 2016 21:57 A: Tomcat Users List <users@tomcat.apache.org> Oggetto: Re: Host appBase vs. Context docBaseSuppose you tell us your Tomcat version.I'm using Tomcat 8.5.5 -- not sure how relevant that is since AFAIK this has not changed in years.It is highly unlikely that you want the <Host> name to be App1Of course that my host name is not App1, that was to remove fluff and to keep only the relevant information in the email.The path attribute of the <Context> element must not be used unless the <Context> element is in server.xml, which it should not beI actually prefer it to be in server.xmlThe docBase attribute is used only when the <Context> element is located in conf/Catalina/[host]/[appName].xmlThat is definitely not true. I've set up Tomcat many many times like this and it works. I may have not set it up the best way, hence my question here, but the docBase attribute is indeed, used.You need to read the documentation for <Context>, <Host>, and deploymentfor the Tomcat version you're using. It would have been nice to see some real life examples of complete configurations. Igal Sapir Lucee Core Developer Lucee.org <http://lucee.org/> On 10/7/2016 12:39 PM, Caldarale, Charles R wrote:From: Igal @ Lucee.org [mailto:i...@lucee.org] Subject: Host appBase vs. Context docBase Suppose that I have an application at C:\WebApps\App1Suppose you tell us your Tomcat version.<!-- option 1 !--> <Host name="App1"appBase="C:\WebApps\App1" autoDeploy="false"> </Host> <!-- option 2 !--> <Host name="App1" autoDeploy="false"> <Context path=""docBase="C:\WebApps\App1" /> </Host>Both of the above are incorrect. It is highly unlikely that you want the<Host> name to be App1. The appBase attribute of <Host> must point to a directory where one or more webapps are located for automatic deployment. It must never point to a specific webapp. The path attribute of the <Context> element must not be used unless the <Context> element is in server.xml, which it should not be. The docBase attribute is used only when the <Context> element is located in conf/Catalina/[host]/[appName].xml.You need to read the documentation for <Context>, <Host>, and deploymentfor the Tomcat version you're using.- Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARYMATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.--------------------------------------------------------------------- -To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.orgFor additional commands, e-mail: users-h...@tomcat.apache.org---------------------------------------------------------------------To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.orgFor additional commands, e-mail: users-h...@tomcat.apache.org-----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJYCmaZAAoJEBzwKT+lPKRYAi4P/AyKInOBGGYWGTLLPmtIuWhf PU2peCeV9JNnDeK1CgTWe/McSqBwJYYop6/gOuKL5wTaMTVJrHpUj9nRKIE+tMUE zdJ6NKHoTILFfBkgUsovI4dH3A5fcE0Lw2jFx1cz5gue+5gS2j4MvcQFHoFhIsnN IU1+EHo9p30zhzMBZrO21xkoxQqKcvzx3Ksn7Fc7+uCWXSEfkn7ShmDGLJDLHeBh 2f6kvDTyoLTYheXuYZZyCERFyfAZY9yzK0S1mhssQuJdZTt+QMVycAaX2yFXZQDC F7pOduMHE2F5iXe+Jz6cTC9ms+/D3NSoIoEEm/twxGIUFSci6SO4drReyn4wU7NG VGmftl+npp1lHhyO0z2iTQectKR8fwLPZLJvxRZOI+sSR46QPYpnqVstLWfsw0Jm 92XLEI+QAkkfgp8HkgDm/GGwjsUZPKbDx+aAOwm/+sVWoDWZot4lsnbuZf5V2CHD VLxAgfeWwyjkvyX/r0Vv4Ep8TNzP2j4Tuvy7m3gzhXJ8RhH3X0IYr2tN4mEQgQVE bBJAuGmHRgH6DLM95sr1MKFBbGdqeFZeqn+Nl/NuWmj5HgSiCxNfwiZtxurECO5Q lN9NT7kl7YMlx5kbKN/z4GkHHwSUsXjQzZXXJb+Vjtj7xtvG6H4iYld1RSMbHakf 3apIV3NKcIKRzlpkgnFB =D2pd -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org