Yes unless you need hybrid features from apache you usually do not
need apache in front of tomcat. Also I once benchmarked mod_jk and as
you can suspect there is overhead. I do not have the numbers any more,
but it makes sense that you have apache overhead, mod_jk overhead, and
then finally tomcat overhead. It is fairly significant.

On Thu, Jun 18, 2009 at 10:33 PM, Tim Dunphy<[email protected]> wrote:
>
> it does. this is great. yes, we have rather singular minded devs tho. I
> will show this and the other response to them. thank u. we are balancing
> two web servers. appreciate the help. I have just read through a good
> portion of the o'reilly tomcat book and completely agree that there is no
> reason to involve apache.
>
> tim
>
> On Thu, 18 Jun 2009 13:40:36 +0100, John Snowdon
> <[email protected]> wrote:
>> 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:
>>
>>
>> --
>> To unsubscribe send an email with subject unsubscribe to [email protected].
>> Please contact [email protected] for questions.
>
> --
> "You were right about the stars. Each one is a setting sun." - Wilco
>
> --
> To unsubscribe send an email with subject unsubscribe to [email protected].
> Please contact [email protected] for questions.
>

--
To unsubscribe send an email with subject unsubscribe to [email protected].
Please contact [email protected] for questions.

Reply via email to