tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: custom header
Date Wed, 10 Jun 2009 08:26:33 GMT
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message