tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Smith <d...@cornell.edu>
Subject Re: Alias problem
Date Sat, 21 Jun 2008 17:48:05 GMT
I believe you'd have to name your webapp webapps#bar to get the result 
you seek.  With the name you've given your webapp, JkMount /bar would 
work and you'd make requests to http://foobar.com/bar/

The # separator in webapp names is a little used way of making it's path 
match '/' characters.

--David

Frank B├╝ttner wrote:
> Hello,
> I have the follow constellation:
> an web application called "foo" on an tomcat 6.
> An the link on my apache to call the application shout be:
> /webapps/bar
>
> so I have add this to my apache config for the directory webapps:
> RewriteBase /webapps/
> RewriteRule ^bar$ bar/ [R]
> and outside of the directory directive:
> JkMount /webapps/bar/* worker1
>
> the definitions of worker1:
> worker.worker1
> worker.worker1.type=ajp13
> worker.worker1.host=XXXXX
> worker.worker1.port=YYYYYYY
>
> When I call http://server/webapps/bar then I get the error that of the 
> tomcat that /webapps/bar/ don't exits.(which is true, because it must 
> be /foo) And now my question who can I tell Apache to send all for 
> /webapps/bar to my tomcat as /foo/? For some reason it is not possible 
> to rename server/webapps/bar to server/foo/.
>
> Thanks,
> Frank


---------------------------------------------------------------------
To start a new topic, e-mail: users@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