/ Zope / Apsis / Pound Mailing List / Archive / 2009 / 2009-06 / [Pound Mailing List] Make Pound Aware of Tomcat

[ << ] [ >> ]

[ Axis IP Cameras / "Maze, Jeffrey S." ... ] [ [Pound Mailing List] Redirect on particular ... ]

[Pound Mailing List] Make Pound Aware of Tomcat
Tim Dunphy <bluethundr(at)nylsd.com>
2009-06-03 14:20:18 [ SNIP ]

Guys

 Our site is pumped out via tomcat, not apache per se. Apache connects via
mod_jk to tomcat.

 If you stop apache, even on both of our web servers, the site stays up!
However, if you stop tomcat on even one of the servers, the site becomes
unavailable.

 How do I tell pound to be aware of tomcat not just apache?

thanks
Tim
-- 
"You were right about the stars. Each one is a setting sun." - Wilco

Re: [Pound Mailing List] Make Pound Aware of Tomcat
Edward Capriolo <edlinuxguru(at)gmail.com>
2009-06-05 01:35:46 [ SNIP ]
Some sites require mod_jk for example half of the application is php
server by apache. The other half is jsp server by tomcat.

Normally in this case
apache runs on port 80
and tomcat jkconnector runs on 8009
tomcat runs on 8080

First verify that tomcat is indeed running on port 8080 by looking in
the server XML
I am serving a hudson server off tomcat like so.

  Service
                HeadRequire "Host:.*www.jointhegrid.com.*"
                Url         "/hudson.*"
                #xHTTP  2
                BackEnd
                        Address 10.0.6.1
                        Port    8080
                End
        End



On Wed, Jun 3, 2009 at 8:20 AM, Tim Dunphy<bluethundr(at)nylsd.com> wrote:
>
>
> Guys
>
>  Our site is pumped out via tomcat, not apache per se. Apache connects via
> mod_jk to tomcat.
>
>  If you stop apache, even on both of our web servers, the site stays up!
> However, if you stop tomcat on even one of the servers, the site becomes
> unavailable.
>
>  How do I tell pound to be aware of tomcat not just apache?
>
> thanks
> Tim
> --
> "You were right about the stars. Each one is a setting sun." - Wilco
>
> --
> To unsubscribe send an email with subject unsubscribe to pound(at)apsis.ch.
> Please contact roseg(at)apsis.ch for questions.
>

Re: [Pound Mailing List] Make Pound Aware of Tomcat
Tim Dunphy <bluethundr(at)nylsd.com>
2009-06-05 16:39:40 [ SNIP ]
Great example, thank u


Question:

  "BackEnd
                        Address 10.0.6.1
                        Port    8080
                End"

I am pretty sure the tomcat site is going out over 80 not 8080 at the
moment. We found a way of doing that. But the Address in Backend is
supposed to be the floating ip assigned by keepalived to which DNS is
pointing for the main site? The "Service" entry goes into each config file
on master and slave? the .* is needed after each entry for HeadRequire and
URL?

thanks!



On Thu, 4 Jun 2009 19:35:46 -0400, Edward Capriolo <edlinuxguru(at)gmail.com>
wrote:
> Some sites require mod_jk for example half of the application is php
> server by apache. The other half is jsp server by tomcat.
> 
> Normally in this case
> apache runs on port 80
> and tomcat jkconnector runs on 8009
> tomcat runs on 8080
> 
> First verify that tomcat is indeed running on port 8080 by looking in
> the server XML
> I am serving a hudson server off tomcat like so.
> 
>   Service
>                 HeadRequire "Host:.*www.jointhegrid.com.*"
>                 Url         "/hudson.*"
>                 #xHTTP  2
>                 BackEnd
>                         Address 10.0.6.1
>                         Port    8080
>                 End
>         End
> 
> 
> 
> On Wed, Jun 3, 2009 at 8:20 AM, Tim Dunphy<bluethundr(at)nylsd.com> wrote:
>>
>>
>> Guys
>>
>>  Our site is pumped out via tomcat, not apache per se. Apache connects
>> via
>> mod_jk to tomcat.
>>
>>  If you stop apache, even on both of our web servers, the site stays
up!
>> However, if you stop tomcat on even one of the servers, the site becomes
>> unavailable.
>>
>>  How do I tell pound to be aware of tomcat not just apache?
>>
>> thanks
>> Tim
>> --
>> "You were right about the stars. Each one is a setting sun." - Wilco
>>
>> --
>> To unsubscribe send an email with subject unsubscribe to pound(at)apsis.ch.
>> Please contact roseg(at)apsis.ch for questions.
>>
> 
> --
> To unsubscribe send an email with subject unsubscribe to pound(at)apsis.ch.
> Please contact roseg(at)apsis.ch for questions.

-- 
"You were right about the stars. Each one is a setting sun." - Wilco

Re: [Pound Mailing List] Make Pound Aware of Tomcat
Tim Dunphy <bluethundr(at)nylsd.com>
2009-06-10 20:38:33 [ SNIP ]
Thanks for your help!

 I gave her a whirl. Didn't quite go as well as hoped. Here is what I tried
and here are the results:


config
--------------------
     Service
                HeadRequire "Host:.*alpha.site.com.*"
                Url         "/index.*"
                BackEnd
                        Address 192.168.1.5
                        Port    80
                End
                Session
                        Type Basic
                        TTL  300
                End
        End
      Service
                HeadRequire "Host:.*alpha.mysite.com.*"
                Url         "/index.*"
                BackEnd
                        Address 192.168.1.6
                        Port 80
                End
                Session
                        Type Basic
                        TTL  300
                END
        End
End

---------------------------------------------

the result
-------------------------------

DNS:/etc/pound# /etc/init.d/pound start
Starting reverse proxy and load balancer: poundstarting...
line 38: unknown directive "                HeadRequire
"Host:.*www.alpha.mysite.com.*"" - aborted
 failed!

-------------

any thoughts would be appreciated..


tim

On Thu, 4 Jun 2009 19:35:46 -0400, Edward Capriolo <edlinuxguru(at)gmail.com>
wrote:
> Some sites require mod_jk for example half of the application is php
> server by apache. The other half is jsp server by tomcat.
> 
> Normally in this case
> apache runs on port 80
> and tomcat jkconnector runs on 8009
> tomcat runs on 8080
> 
> First verify that tomcat is indeed running on port 8080 by looking in
> the server XML
> I am serving a hudson server off tomcat like so.
> 
>   Service
>                 HeadRequire "Host:.*www.jointhegrid.com.*"
>                 Url         "/hudson.*"
>                 #xHTTP  2
>                 BackEnd
>                         Address 10.0.6.1
>                         Port    8080
>                 End
>         End
> 
> 
> 
> On Wed, Jun 3, 2009 at 8:20 AM, Tim Dunphy<bluethundr(at)nylsd.com> wrote:
>>
>>
>> Guys
>>
>>  Our site is pumped out via tomcat, not apache per se. Apache connects
>> via
>> mod_jk to tomcat.
>>
>>  If you stop apache, even on both of our web servers, the site stays
up!
>> However, if you stop tomcat on even one of the servers, the site becomes
>> unavailable.
>>
>>  How do I tell pound to be aware of tomcat not just apache?
>>
>> thanks
>> Tim
>> --
>> "You were right about the stars. Each one is a setting sun." - Wilco
>>
>> --
>> To unsubscribe send an email with subject unsubscribe to pound(at)apsis.ch.
>> Please contact roseg(at)apsis.ch for questions.
>>
> 
> --
> To unsubscribe send an email with subject unsubscribe to pound(at)apsis.ch.
> Please contact roseg(at)apsis.ch for questions.

-- 
"You were right about the stars. Each one is a setting sun." - Wilco

Re: [Pound Mailing List] Make Pound Aware of Tomcat
Tim Dunphy <bluethundr(at)nylsd.com>
2009-06-10 20:40:28 [ SNIP ]
forgot to mention this is what the url is supposed to look like:

http://alpha.mysite.com/index.jsf

going out through tomcat over mod_jk . we did get tomcat to speak on port
80.

thanks

On Thu, 4 Jun 2009 19:35:46 -0400, Edward Capriolo <edlinuxguru(at)gmail.com>
wrote:
> Some sites require mod_jk for example half of the application is php
> server by apache. The other half is jsp server by tomcat.
> 
> Normally in this case
> apache runs on port 80
> and tomcat jkconnector runs on 8009
> tomcat runs on 8080
> 
> First verify that tomcat is indeed running on port 8080 by looking in
> the server XML
> I am serving a hudson server off tomcat like so.
> 
>   Service
>                 HeadRequire "Host:.*www.jointhegrid.com.*"
>                 Url         "/hudson.*"
>                 #xHTTP  2
>                 BackEnd
>                         Address 10.0.6.1
>                         Port    8080
>                 End
>         End
> 
> 
> 
> On Wed, Jun 3, 2009 at 8:20 AM, Tim Dunphy<bluethundr(at)nylsd.com> wrote:
>>
>>
>> Guys
>>
>>  Our site is pumped out via tomcat, not apache per se. Apache connects
>> via
>> mod_jk to tomcat.
>>
>>  If you stop apache, even on both of our web servers, the site stays
up!
>> However, if you stop tomcat on even one of the servers, the site becomes
>> unavailable.
>>
>>  How do I tell pound to be aware of tomcat not just apache?
>>
>> thanks
>> Tim
>> --
>> "You were right about the stars. Each one is a setting sun." - Wilco
>>
>> --
>> To unsubscribe send an email with subject unsubscribe to pound(at)apsis.ch.
>> Please contact roseg(at)apsis.ch for questions.
>>
> 
> --
> To unsubscribe send an email with subject unsubscribe to pound(at)apsis.ch.
> Please contact roseg(at)apsis.ch for questions.

-- 
"You were right about the stars. Each one is a setting sun." - Wilco

Re: [Pound Mailing List] Make Pound Aware of Tomcat
Tim Dunphy <bluethundr(at)nylsd.com>
2009-06-10 20:46:54 [ SNIP ]

I just re-read this. I obscured the name of the site incorrectly. pretend
it read like this please:

config
--------------------
     Service
                HeadRequire "Host:.*alpha.mysite.com.*"
                Url         "/index.*"
                BackEnd
                        Address 192.168.1.5
                        Port    80
                End
                Session
                        Type Basic
                        TTL  300
                End
        End
      Service
                HeadRequire "Host:.*alpha.mysite.com.*"
                Url         "/index.*"
                BackEnd
                        Address 192.168.1.6
                        Port 80
                End
                Session
                        Type Basic
                        TTL  300
                END
        End
End

thanks


On Wed, 10 Jun 2009 14:38:33 -0400, Tim Dunphy <bluethundr(at)nylsd.com>
wrote:
> Thanks for your help!
> 
>  I gave her a whirl. Didn't quite go as well as hoped. Here is what I
tried
> and here are the results:
> 
> 
> config
> --------------------
>      Service
>                 HeadRequire "Host:.*alpha.site.com.*"
>                 Url         "/index.*"
>                 BackEnd
>                         Address 192.168.1.5
>                         Port    80
>                 End
>                 Session
>                         Type Basic
>                         TTL  300
>                 End
>         End
>       Service
>                 HeadRequire "Host:.*alpha.mysite.com.*"
>                 Url         "/index.*"
>                 BackEnd
>                         Address 192.168.1.6
>                         Port 80
>                 End
>                 Session
>                         Type Basic
>                         TTL  300
>                 END
>         End
> End
> 
> ---------------------------------------------
> 
> the result
> -------------------------------
> 
> DNS:/etc/pound# /etc/init.d/pound start
> Starting reverse proxy and load balancer: poundstarting...
> line 38: unknown directive "                HeadRequire
> "Host:.*www.alpha.mysite.com.*"" - aborted
>  failed!
> 
> -------------
> 
> any thoughts would be appreciated..
> 
> 
> tim
> 
> On Thu, 4 Jun 2009 19:35:46 -0400, Edward Capriolo
<edlinuxguru(at)gmail.com>
> wrote:
>> Some sites require mod_jk for example half of the application is php
>> server by apache. The other half is jsp server by tomcat.
>> 
>> Normally in this case
>> apache runs on port 80
>> and tomcat jkconnector runs on 8009
>> tomcat runs on 8080
>> 
>> First verify that tomcat is indeed running on port 8080 by looking in
>> the server XML
>> I am serving a hudson server off tomcat like so.
>> 
>>   Service
>>                 HeadRequire "Host:.*www.jointhegrid.com.*"
>>                 Url         "/hudson.*"
>>                 #xHTTP  2
>>                 BackEnd
>>                         Address 10.0.6.1
>>                         Port    8080
>>                 End
>>         End
>> 
>> 
>> 
>> On Wed, Jun 3, 2009 at 8:20 AM, Tim Dunphy<bluethundr(at)nylsd.com> wrote:
>>>
>>>
>>> Guys
>>>
>>>  Our site is pumped out via tomcat, not apache per se. Apache connects
>>> via
>>> mod_jk to tomcat.
>>>
>>>  If you stop apache, even on both of our web servers, the site stays
> up!
>>> However, if you stop tomcat on even one of the servers, the site
becomes
>>> unavailable.
>>>
>>>  How do I tell pound to be aware of tomcat not just apache?
>>>
>>> thanks
>>> Tim
>>> --
>>> "You were right about the stars. Each one is a setting sun." - Wilco
>>>
>>> --
>>> To unsubscribe send an email with subject unsubscribe to
pound(at)apsis.ch.
>>> Please contact roseg(at)apsis.ch for questions.
>>>
>> 
>> --
>> To unsubscribe send an email with subject unsubscribe to pound(at)apsis.ch.
>> Please contact roseg(at)apsis.ch for questions.

-- 
"You were right about the stars. Each one is a setting sun." - Wilco

Re: [Pound Mailing List] Make Pound Aware of Tomcat
Edward Capriolo <edlinuxguru(at)gmail.com>
2009-06-10 20:48:21 [ SNIP ]
On Wed, Jun 10, 2009 at 2:38 PM, Tim Dunphy<bluethundr(at)nylsd.com> wrote:
>
> Thanks for your help!
>
>  I gave her a whirl. Didn't quite go as well as hoped. Here is what I tried
> and here are the results:
>
>
> config
> --------------------
>     Service
>                HeadRequire "Host:.*alpha.site.com.*"
>                Url         "/index.*"
>                BackEnd
>                        Address 192.168.1.5
>                        Port    80
>                End
>                Session
>                        Type Basic
>                        TTL  300
>                End
>        End
>      Service
>                HeadRequire "Host:.*alpha.mysite.com.*"
>                Url         "/index.*"
>                BackEnd
>                        Address 192.168.1.6
>                        Port 80
>                End
>                Session
>                        Type Basic
>                        TTL  300
>                END
>        End
> End
>
> ---------------------------------------------
>
> the result
> -------------------------------
>
> DNS:/etc/pound# /etc/init.d/pound start
> Starting reverse proxy and load balancer: poundstarting...
> line 38: unknown directive "                HeadRequire
> "Host:.*www.alpha.mysite.com.*"" - aborted
>  failed!
>
> -------------
>
> any thoughts would be appreciated..
>
>
> tim
>
> On Thu, 4 Jun 2009 19:35:46 -0400, Edward Capriolo <edlinuxguru(at)gmail.com>
> wrote:
>> Some sites require mod_jk for example half of the application is php
>> server by apache. The other half is jsp server by tomcat.
>>
>> Normally in this case
>> apache runs on port 80
>> and tomcat jkconnector runs on 8009
>> tomcat runs on 8080
>>
>> First verify that tomcat is indeed running on port 8080 by looking in
>> the server XML
>> I am serving a hudson server off tomcat like so.
>>
>>   Service
>>                 HeadRequire "Host:.*www.jointhegrid.com.*"
>>                 Url         "/hudson.*"
>>                 #xHTTP  2
>>                 BackEnd
>>                         Address 10.0.6.1
>>                         Port    8080
>>                 End
>>         End
>>
>>
>>
>> On Wed, Jun 3, 2009 at 8:20 AM, Tim Dunphy<bluethundr(at)nylsd.com> wrote:
>>>
>>>
>>> Guys
>>>
>>>  Our site is pumped out via tomcat, not apache per se. Apache connects
>>> via
>>> mod_jk to tomcat.
>>>
>>>  If you stop apache, even on both of our web servers, the site stays
> up!
>>> However, if you stop tomcat on even one of the servers, the site becomes
>>> unavailable.
>>>
>>>  How do I tell pound to be aware of tomcat not just apache?
>>>
>>> thanks
>>> Tim
>>> --
>>> "You were right about the stars. Each one is a setting sun." - Wilco
>>>
>>> --
>>> To unsubscribe send an email with subject unsubscribe to pound(at)apsis.ch.
>>> Please contact roseg(at)apsis.ch for questions.
>>>
>>
>> --
>> To unsubscribe send an email with subject unsubscribe to pound(at)apsis.ch.
>> Please contact roseg(at)apsis.ch for questions.
>
> --
> "You were right about the stars. Each one is a setting sun." - Wilco
>
> --
> To unsubscribe send an email with subject unsubscribe to pound(at)apsis.ch.
> Please contact roseg(at)apsis.ch for questions.
>

It looks like your configuration is not complete. service is not a top
level element. Try something like this:

ListenHTTP
        Address 10.0.2.1
        Port    80
     #xHTTP for svn
        xHTTP   2
   service
   ....
   end
   service
   ....
   end
end

Do not forget to try the man page if you have not already. It is very detailed.

-Regards

Re: [Pound Mailing List] Make Pound Aware of Tomcat
Tim Dunphy <bluethundr(at)nylsd.com>
2009-06-10 21:53:29 [ SNIP ]
ah, sorry! I was only including what I thought relevant. here is more
complete info. I will be looking into the manpage as suggested. but the
answer may not be obvious to me from the manpage alone, but I will do my
best.


thanks

## Minimal sample pound.cfg
##
## see pound(8) for details


######################################################################
## global options:

User            "www-data"
Group           "www-data"
#RootJail       "/chroot/pound"

## Logging: (goes to syslog by default)
##      0       no logging
##      1       normal
##      2       extended
##      3       Apache-style (common log format)
#LogLevel        1

## check backend every X secs:
Alive           2

## use hardware-accelleration card supported by openssl(1):
"pound.cfg.tomcat" 59L, 1337C
## use hardware-accelleration card supported by openssl(1):
#SSLEngine      "<hw>"


######################################################################
## listen, redirect and ... to:

## redirect all requests on port 80 ("ListenHTTP") to the virtual IP
address:
ListenHTTP
        Address 192.168.1.42
        Port    80

        Service
                HeadRequire "Host:.*alpha.mysite.com.*"
                Url         "/index.*"
                BackEnd
                        Address 192.168.1.5
                        Port    80

                       Port    80
                End
                Session
                        Type Basic
                        TTL  300
                End
        Service
                HeadRequire "Host:.*alpha.mysite.com.*"
                Url         "/index.*"
                BackEnd
            Address 192.168.1.6
                        Port 80
                End
                Session
                        Type Basic
                        TTL  300
                END
        End
End


desired url:

http://alpha.mysite.com/index.jsf

error:

DNS:/etc/pound# /etc/init.d/pound start
Starting reverse proxy and load balancer: poundstarting...
line 38: unknown directive "                HeadRequire
"Host:.*www.alpha.mysite.com.*"" - aborted
 failed!




On Wed, 10 Jun 2009 14:48:21 -0400, Edward Capriolo <edlinuxguru(at)gmail.com>
wrote:
> On Wed, Jun 10, 2009 at 2:38 PM, Tim Dunphy<bluethundr(at)nylsd.com> wrote:
>>
>> Thanks for your help!
>>
>>  I gave her a whirl. Didn't quite go as well as hoped. Here is what I
>> tried
>> and here are the results:
>>
>>
>> config
>> --------------------
>>     Service
>>                HeadRequire "Host:.*alpha.site.com.*"
>>                Url         "/index.*"
>>                BackEnd
>>                        Address 192.168.1.5
>>                        Port    80
>>                End
>>                Session
>>                        Type Basic
>>                        TTL  300
>>                End
>>        End
>>      Service
>>                HeadRequire "Host:.*alpha.mysite.com.*"
>>                Url         "/index.*"
>>                BackEnd
>>                        Address 192.168.1.6
>>                        Port 80
>>                End
>>                Session
>>                        Type Basic
>>                        TTL  300
>>                END
>>        End
>> End
>>
>> ---------------------------------------------
>>
>> the result
>> -------------------------------
>>
>> DNS:/etc/pound# /etc/init.d/pound start
>> Starting reverse proxy and load balancer: poundstarting...
>> line 38: unknown directive "                HeadRequire
>> "Host:.*www.alpha.mysite.com.*"" - aborted
>>  failed!
>>
>> -------------
>>
>> any thoughts would be appreciated..
>>
>>
>> tim
>>
>> On Thu, 4 Jun 2009 19:35:46 -0400, Edward Capriolo
>> <edlinuxguru(at)gmail.com>
>> wrote:
>>> Some sites require mod_jk for example half of the application is php
>>> server by apache. The other half is jsp server by tomcat.
>>>
>>> Normally in this case
>>> apache runs on port 80
>>> and tomcat jkconnector runs on 8009
>>> tomcat runs on 8080
>>>
>>> First verify that tomcat is indeed running on port 8080 by looking in
>>> the server XML
>>> I am serving a hudson server off tomcat like so.
>>>
>>>   Service
>>>                 HeadRequire "Host:.*www.jointhegrid.com.*"
>>>                 Url         "/hudson.*"
>>>                 #xHTTP  2
>>>                 BackEnd
>>>                         Address 10.0.6.1
>>>                         Port    8080
>>>                 End
>>>         End
>>>
>>>
>>>
>>> On Wed, Jun 3, 2009 at 8:20 AM, Tim Dunphy<bluethundr(at)nylsd.com> wrote:
>>>>
>>>>
>>>> Guys
>>>>
>>>>  Our site is pumped out via tomcat, not apache per se. Apache
connects
>>>> via
>>>> mod_jk to tomcat.
>>>>
>>>>  If you stop apache, even on both of our web servers, the site stays
>> up!
>>>> However, if you stop tomcat on even one of the servers, the site
>>>> becomes
>>>> unavailable.
>>>>
>>>>  How do I tell pound to be aware of tomcat not just apache?
>>>>
>>>> thanks
>>>> Tim
>>>> --
>>>> "You were right about the stars. Each one is a setting sun." - Wilco
>>>>
>>>> --
>>>> To unsubscribe send an email with subject unsubscribe to
>>>> pound(at)apsis.ch.
>>>> Please contact roseg(at)apsis.ch for questions.
>>>>
>>>
>>> --
>>> To unsubscribe send an email with subject unsubscribe to
pound(at)apsis.ch.
>>> Please contact roseg(at)apsis.ch for questions.
>>
>> --
>> "You were right about the stars. Each one is a setting sun." - Wilco
>>
>> --
>> To unsubscribe send an email with subject unsubscribe to pound(at)apsis.ch.
>> Please contact roseg(at)apsis.ch for questions.
>>
> 
> It looks like your configuration is not complete. service is not a top
> level element. Try something like this:
> 
> ListenHTTP
>         Address 10.0.2.1
>         Port    80
>      #xHTTP for svn
>         xHTTP   2
>    service
>    ....
>    end
>    service
>    ....
>    end
> end
> 
> Do not forget to try the man page if you have not already. It is very
> detailed.
> 
> -Regards
> 
> --
> To unsubscribe send an email with subject unsubscribe to pound(at)apsis.ch.
> Please contact roseg(at)apsis.ch for questions.

-- 
"You were right about the stars. Each one is a setting sun." - Wilco

Re: [Pound Mailing List] Make Pound Aware of Tomcat
"Eric B." <ebenze(at)hotmail.com>
2009-06-16 21:06:03 [ SNIP ]
"Tim Dunphy" <bluethundr(at)nylsd.com> wrote in 
message news:MailBoxer.1118.1244031778.76.pound(at)apsis.ch...>

> Guys
>
>  Our site is pumped out via tomcat, not apache per se. Apache connects via
> mod_jk to tomcat.
>
>  If you stop apache, even on both of our web servers, the site stays up!
> However, if you stop tomcat on even one of the servers, the site becomes
> unavailable.
>
>  How do I tell pound to be aware of tomcat not just apache?


Why do you even need apache in that case?  Why not just load balance against 
tomcat directly instead of the intermediary of Apache if you are not 
actually using any of its features?  I am assuming as much as you indicate 
that if you stop apache on both servers, the site still stays up b/c tomcat 
is still running.  Why not dump apache alltogheter in that case?

Thanks,

Eric




Re: [Pound Mailing List] Make Pound Aware of Tomcat
John Snowdon <J.P.Snowdon(at)newcastle.ac.uk>
2009-06-18 14:40:36 [ SNIP ]
Any reason why you list the service alpha.mysite.com and the same URL
twice?

If you have more than one backend for the same URL then you should
define it within the same service.

e.g.


ListenHTTP
        Address 192.168.1.42
        Port    80
        Service
                HeadRequire "Host:.*alpha.mysite.com.*"
                Url         "/index.*"
                BackEnd
                        Address 192.168.1.5
                        Port 80
                End
                BackEnd
		        Address 192.168.1.6
                        Port 80
                End
                Session
                        Type Basic
                        TTL  300
                End
        End
End

I also agree with the last comment about making the connection direct to
Tomcat, rather than through Apache and mod_jk if you are not using any of the
more advanced Apache features (url rewriting and access control etc.)

Hope that helps

-John

On Wed, 2009-06-10 at 20:53 +0100, Tim Dunphy wrote:
> ah, sorry! I was only including what I thought relevant. here is more
> complete info. I will be looking into the manpage as suggested. but the
> answer may not be obvious to me from the manpage alone, but I will do my
> best.
> 
> 
> thanks
> 
> ## Minimal sample pound.cfg
> ##
> ## see pound(8) for details
> 
> 
> ######################################################################
> ## global options:
> 
> User            "www-data"
> Group           "www-data"
> #RootJail       "/chroot/pound"
> 
> ## Logging: (goes to syslog by default)
> ##      0       no logging
> ##      1       normal
> ##      2       extended
> ##      3       Apache-style (common log format)
> #LogLevel        1
> 
> ## check backend every X secs:
> Alive           2
> 
> ## use hardware-accelleration card supported by openssl(1):
> "pound.cfg.tomcat" 59L, 1337C
> ## use hardware-accelleration card supported by openssl(1):
> #SSLEngine      "<hw>"
> 
> 
> ######################################################################
> ## listen, redirect and ... to:
> 
> ## redirect all requests on port 80 ("ListenHTTP") to the virtual IP
> address:
> ListenHTTP
>         Address 192.168.1.42
>         Port    80
> 
>         Service
>                 HeadRequire "Host:.*alpha.mysite.com.*"
>                 Url         "/index.*"
>                 BackEnd
>                         Address 192.168.1.5
>                         Port    80
> 
>                        Port    80
>                 End
>                 Session
>                         Type Basic
>                         TTL  300
>                 End
>         Service
>                 HeadRequire "Host:.*alpha.mysite.com.*"
>                 Url         "/index.*"
>                 BackEnd
>             Address 192.168.1.6
>                         Port 80
>                 End
>                 Session
>                         Type Basic
>                         TTL  300
>                 END
>         End
> End
> 
> 
> desired url:
> 
> http://alpha.mysite.com/index.jsf
> 
> error:


MailBoxer