tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Hiller <>
Subject Re: RemoteHostValve for infinite domains? & Patch submit question...
Date Thu, 01 Apr 2010 14:53:35 GMT
hmmm, I don't think Engine works....according to
"Exactly one *Engine* element MUST be nested inside a

I need "two" for requests and one for where xxxx is infinite combination.

PATCH submission: I am not interested in regular expression matching and I
have seen many posts on users trying to do <customer>, so is
serverName.endsWith(domainName) that much of a performance hit?  This patch
would be great for many applications that just set up wildcard DNS so all
subdomains point to the tomcat ip like basecamp or other products.  Right
now, the problem is we have two apps with two different domains each with
infinite subdomains.


On Thu, Apr 1, 2010 at 8:37 AM, Dean Hiller <> wrote:

> So, will go be routed to
> <Engine defaultHost=""
> I will give that a try tonight then.  If it doesn't, I guess I would have
> to write a patch.  I need this feature tooooo badly to be able to do
> <companyname> for any companies that register.
> thanks!!!
> Dean
> On Thu, Apr 1, 2010 at 7:52 AM, Pid <> wrote:
>> On 01/04/2010 06:53, Dean Hiller wrote:
>>> I added this(I want it to use my requirements.war file for any requests
>>> to
>>> where xxxx is infinite combinations all of
>>> which
>>> point to one single ip of course.  I have another Host for
>>> as well with infinite combinations again.
>>> This does not seem to be working though...
>>>       <Host name=""  appBase="zrequirements"
>>>             unpackWARs="true" autoDeploy="true"
>>>             xmlValidation="false" xmlNamespaceAware="false">
>>>         <Valve className="org.apache.catalina.valves.RemoteHostValve"
>>>                allow=".*\.dev\.premonitionx\.com"/>
>>>       </Host>
>>> Do I have this wrong?  How do I get this to work?  Does the name need to
>>> match the allow or something?
>> Remove the valve and set:
>>  <Engine defaultHost=""
>> All requests to unknown hosts will be directed to that Host.
>> p

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message