It's the latter. I'm trying to avoid more than one war file across multiple 
instances. I was hoping the urlrewritefilter had a global config, something I 
could put in the tomcat conf dir, but couldn't find such a thing.
I'll go over to their m-list, as that'll be more appropriate now I think.
Thanx again for the pointer in the right direction.

-Tony
 


Sent from my Windows Mobile® phone.

-----Original Message-----
From: André Warnier <a...@ice-sa.com>
Sent: Wednesday, June 10, 2009 2:27 AM
To: Tomcat Users List <users@tomcat.apache.org>
Subject: Re: custom header

Anthony J. Biacco wrote:
> Thanx for that, that sets the header for me, but to something static.
> Only problem I have is I can't seem to figure out how to set it to the 
> hostname of the tomcat server, or a tomcat variable (set from the hostname of 
> the server - i.e. -Dmyjvmroute=`/bin/hostname -s` and then trying to use 
> ${myjvmroute} in a rule such as:
> 
I must be missing something here.  Why would you want it to be "dynamic" ?

If you have several Tomcat instances as back-ends, then each one has its 
own webapps, and each one of these webapps has its own web.xml, which is 
where you configure its own urlrewrite filter.  So what is the problem 
in having it static in there ?

Or, wait, is it purely because you would like to be able to always 
distribute the same identical web.xml to all instances ?
That would then become a more generic issue like "how do I distribute 
the same war-file to several Tomcat instances, but have each instance 
pick up something instance-specific to include in its web.xml at load 
time ?"

Now, in this case I do believe that the urlrewrite filter uses a 
separate config file, in which maybe there is a way to specify something 
like that.  Maybe then just that file would need to be instance-specific ?


---------------------------------------------------------------------
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

Reply via email to