tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Flaherty" <pflah...@rampageinc.com>
Subject Re: Tomcat Filter Mapping Issue
Date Sun, 10 Jan 2010 22:28:16 GMT
Uncle !

I just created a ROOT folder off of my appBase, cut and pasted all of what 
was in my appbase
into the new ROOT folder. Restart Tomcat and I try and hit the app with the 
hostname and I get
a 404 for /.
(If I add /ROOT to the appBase path and I can hit the app successfully.)

I tried Tomcat v5.5 and v6.0 with the same result. I move all my files from 
ROOT up one level
back into appBase , delete the ROOT folder, remove /ROOT from my appBase and 
I can hit the
app successfully ? AHHHHH!!!!!!!!!!!!!!!

Can anyone post a virtual host snippet from their server.xml ?

I have to be missing something in my server.xml.

Thanks
-P

--------------------------------------------------
From: "Caldarale, Charles R" <Chuck.Caldarale@unisys.com>
Sent: Sunday, January 10, 2010 3:40 PM
To: "Tomcat Users List" <users@tomcat.apache.org>
Subject: RE: Tomcat Filter Mapping Issue

>> From: Patrick Flaherty [mailto:pflahrty@rampageinc.com]
>> Subject: Re: Tomcat Filter Mapping Issue
>>
>> If I have 3 apps for a given <Host> then off my appBase I
>> would have :
>>
>> /ROOT  (a must default for each <Host>)
>> /app2
>> /app3
>>
>> To access these apps, the URL's for the apps would be :
>>
>> http://www.my-three-apps.com  (This for the ROOT app)
>> http://www.my-three-apps.com/app2  (This for the /app2 app)
>> http://www.my-three-apps.com/app3  (This for the /app3 app)
>
> The above is correct, but not quite complete.  The default (ROOT) webapp 
> will handle any URIs that don't match any of the explicitly-named apps, 
> where the spec-defined rule is that the longest match wins.  For example, 
> if a user enters:
>
>  http://www.my-three-apps.com/app4
>
> the request will be directed to the default (ROOT) app, since it doesn't 
> match the known app2 or app3 patterns.
>
> - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
> MATERIAL 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-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
> 


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


Mime
View raw message