Your comments after the config are correct. That looks to me like it should work.

-- Dave

On 3/10/2011 10:14 PM, Adrian Padilla wrote:
Ok Dave thank you

this is what i have now,

ListenHTTP
        Address 192.168.3.102
        Port    80

        ## allow PUT and DELETE also (by default only GET, POST and HEAD)?:
        xHTTP           0
service
headrequire "host:  .*websiteb.com.
                BackEnd
                        Address 192.168.3.30
                        Port    80
                End
                BackEnd
                        Address 192.168.3.31
                        Port    80
                End
        End
service
headrequire "host:  .*websitec.com."

                BackEnd
                        Address 192.168.3.32
                Port    80
        Service
                BackEnd
                        Address 192.168.3.26
                        Port    80
                End
                BackEnd
                        Address 192.168.3.27
                        Port    80
                End
                BackEnd
                        Address 192.168.3.28
                        Port    80
                End
                BackEnd
                        Address 192.168.3.29
                        Port    80
                BackEnd
                        Address 192.168.3.30
                        Port    80
                End
                BackEnd
                        Address 192.168.3.31
                        Port    80
                End
                BackEnd
                        Address 192.168.3.32
                        Port    80
                End

        End
End

The way i see it is if Website B gets a request then this config will see that 
request first and not go down the list to the other backend servers. website C 
Is then handled by the next service notation, and any other requests will be 
handled by the first available server...correct?

On Mar 10, 2011, at 9:21 PM, Dave Steinberg wrote:

What you've got there is pretty close.  A couple things:

- Pound uses a "first match" rule, so the service blocks for website B/C/D 
should go on top of the config file.
- You need to list all backends in the service block for website A. Otherwise 
it'll just use the ones you listed, which are .26-.29.  It doesn't inherit the 
others or anything like that.
- You're missing an 'End' for the service block for website A in the config.

You're basically there, it just needs a few tweaks.

-- Dave

On 3/10/2011 6:07 PM, Adrian padilla wrote:
Thank you for your help

This is what i have for my pound Config file

ListenHTTP
        Address 192.168.3.102
        Port    80

        ## allow PUT and DELETE also (by default only GET, POST and HEAD)?:
        xHTTP           0

        Service
                BackEnd
                        Address 192.168.3.26
                        Port    80
                End
                BackEnd
                        Address 192.168.3.27
                        Port    80
                End
                BackEnd
                        Address 192.168.3.28
                        Port    80
                End
                BackEnd
                        Address 192.168.3.29
                        Port    80
                End
                BackEnd
                        Address 192.168.3.30
                        Port    80
                End
                BackEnd
                        Address 192.168.3.31
                        Port    80
                End
                BackEnd
                        Address 192.168.3.32
                        Port    80
                End
        End
End


i want website "A" to be handled by all servers,

Website "B" to be handled by server  3.30, 3.31, and 3.32

and website "C&   D" to be handled by 3.26, 3.27, 3.28, 3.29

so my question is

ListenHTTP
        Address 192.168.3.102
        Port    80

        ## allow PUT and DELETE also (by default only GET, POST and HEAD)?:
        xHTTP           0

        Service
                BackEnd
                        Address 192.168.3.26
                        Port    80
                End
                BackEnd
                        Address 192.168.3.27
                        Port    80
                End
                BackEnd
                        Address 192.168.3.28
                        Port    80
                End
                BackEnd
                        Address 192.168.3.29
                        Port    80
                End
service
headrequire "host:  .*websiteb.com.
                BackEnd
                        Address 192.168.3.30
                        Port    80
                End
                BackEnd
                        Address 192.168.3.31
                        Port    80
                End
service
headrequire "host:  .*websitec.com."

                BackEnd
                        Address 192.168.3.32
                        Port    80
                End
        End
End

On Mar 6, 2011, at 2:37 PM, Dave Steinberg wrote:

On 3/6/2011 12:46 PM, Adrian Padilla wrote:
is it possible to have pound do the proxy for 7 servers?

and have different domains on all the servers, lets say

there are 3 domains

"Domain A" located on all 7 servers

Domain B located on 3 of the 7 servers

Domain c located on 1 of the 7 servers

will Pound be able to know what domain is what and send it to the
appropriate server handling that request for that particular server?

Sure, you'll want to setup 3 different service directives.  Then use the 
HeadRequire directive to specify which hosts are handled by each service block.

Regards,
--
Dave Steinberg
http://www.geekisp.com/
http://www.steinbergcomputing.com/
http://www.redterror.net/

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

Adrian Padilla
(800) 831-0735
Sr. Network Admin
[email protected]




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



--
Dave Steinberg
http://www.geekisp.com/
http://www.steinbergcomputing.com/
http://www.redterror.net/

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

Adrian Padilla
(800) 831-0735
Sr. Network Admin
[email protected]





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



--
Dave Steinberg
http://www.geekisp.com/
http://www.steinbergcomputing.com/
http://www.redterror.net/

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

Reply via email to