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 <[email protected]>
wrote:
> On Wed, Jun 10, 2009 at 2:38 PM, Tim Dunphy<[email protected]> 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
>> <[email protected]>
>> 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<[email protected]> 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
>>>> [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.
>>
>> --
>> "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.
>>
> 
> 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 [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.

Reply via email to