Virtual Hosts: path="/" without using ROOT folder?

2008-02-26 Thread ahnf
Hi, We would like to have 2-4 virtual hosts setup on a Tomcat 5.5.x server. I want all of these applications to respond under "/" I have read all the documentation on how to setup a new "host" in server.xml with a custom appBase and then specify your "context" file in META-INF. My question is,

Re: Virtual Hosts: path="/" without using ROOT folder?

2008-02-26 Thread Mark Thomas
ahnf wrote: My question is, is there any way other than making the application's root directory be "ROOT" or deployed under ROOT/ in order to get it to respond to "/"? I tried the "path" attribute but it says that it is only valid when the is defined in server.xml and not in META-INFO/context.xml

Re: Virtual Hosts: path="/" without using ROOT folder?

2008-02-26 Thread Jeff Hoffmann
Mark Thomas wrote: ahnf wrote: My question is, is there any way other than making the application's root directory be "ROOT" or deployed under ROOT/ in order to get it to respond to "/"? I tried the "path" attribute but it says that it is only valid when the is defined in server.xml and not i

RE: Virtual Hosts: path="/" without using ROOT folder?

2008-02-26 Thread Lessie Z. Mitch
iginal Message- From: Jeff Hoffmann [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 26, 2008 9:16 AM To: Tomcat Users List Subject: Re: Virtual Hosts: path="/" without using ROOT folder? Mark Thomas wrote: > ahnf wrote: >> My question is, is there any way other than making t

Re: Virtual Hosts: path="/" without using ROOT folder?

2008-02-26 Thread Mark Thomas
Lessie Z. Mitch wrote: If you are using apache, you still need to name your Virtual hosts in the httpd.conf. I am myself having mod_jk issues and awaiting response. ahnf wrote: http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html Does this work for TC5.5.x??? that is for TC6

RE: Virtual Hosts: path="/" without using ROOT folder?

2008-02-26 Thread Lessie Z. Mitch
To: Tomcat Users List Subject: Re: Virtual Hosts: path="/" without using ROOT folder? ahnf wrote: > My question is, is there any way other than making the application's root directory be "ROOT" or deployed under ROOT/ in order to get it to respond to "/"? I

RE: Virtual Hosts: path="/" without using ROOT folder?

2008-02-26 Thread Lessie Z. Mitch
: 'Tomcat Users List' Subject: RE: Virtual Hosts: path="/" without using ROOT folder? > Use context.xml - approach #2 and configure both a docBase and a path. Note the docBase *must* be outside of any host's appBase. So I can have setup as such:

Re: Virtual Hosts: path="/" without using ROOT folder?

2008-02-26 Thread Mark Thomas
Lessie Z. Mitch wrote: Sorry.. didn't finish... (hit the damned button) And my application context.xml files would read something like... No - completely wrong. In short (just doing one host) you want something like: /tomcat_home/conf/server.xml Context file location (for ROOT

RE: Virtual Hosts: path="/" without using ROOT folder?

2008-02-26 Thread Lessie Z. Mitch
. Now, I go fight with the mod_jk ~LZM~ -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 26, 2008 10:41 AM To: Tomcat Users List Subject: Re: Virtual Hosts: path="/" without using ROOT folder? Lessie Z. Mitch wrote: >

Re: Virtual Hosts: path="/" without using ROOT folder?

2008-02-26 Thread AH NF
Here is what I have setup going off the examples, but it is not working like a I would like a) a Host definition in my server.xml which has appBase="tomcatHome/ myAppBase" b) a WAR file named ROOT.war. Inside there is a context.xml located in META-INF I am not sure what to put in for

Re: Virtual Hosts: path="/" without using ROOT folder?

2008-02-26 Thread AH NF
Thanks Mark, could my context.xml also just live in my WAR/META-INF file? So let me get this right, the location of "appBase" is purely for where WARs are uploaded. Never should "document roots" live under it? So if I upload a war to "appBase" Tomcat then unpacks it to the "context" "doc

RE: Virtual Hosts: path="/" without using ROOT folder?

2008-02-26 Thread Lessie Z. Mitch
EMAIL PROTECTED] Sent: Tuesday, February 26, 2008 1:33 PM To: 'Tomcat Users List' Subject: RE: Virtual Hosts: path="/" without using ROOT folder? This is going to be long... so bear with me. My want was to name the context xmls something other than "ROOT". In a

Re: Virtual Hosts: path="/" without using ROOT folder?

2008-02-27 Thread Mark Thomas
Lessie Z. Mitch wrote: /tomcat_home/conf/server.xml name="domain1.com" appBase="/home/web/domain1.com/webapps" ~~~ no directory after webapps unpackWARs="true" autoDeploy="true"> This now looks good. Note that *any* directory or war under /home/web/domain1.com/webapps i

RE: Virtual Hosts: path="/" without using ROOT folder?

2008-02-27 Thread Lessie Z. Mitch
] Sent: Tuesday, February 26, 2008 10:06 PM To: Tomcat Users List Subject: Re: Virtual Hosts: path="/" without using ROOT folder? Lessie Z. Mitch wrote: > Why does my original configuration not work anymore? I will keep Mark's > recommended configuration but would like to know