[Seaside] ProxyPass and the P Option

Boris Popov boris at deepcovelabs.com
Tue Nov 6 18:16:54 UTC 2007


You'd need to ask your webserver, for instance Swazoo,

SwazooServer singleton servers collect: [:ea | ea port]

Set (7777)

Cheers,

-Boris

-- 
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5
http://tinyurl.com/r7uw4

boris at deepcovelabs.com

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.

> -----Original Message-----
> From: seaside-bounces at lists.squeakfoundation.org [mailto:seaside-
> bounces at lists.squeakfoundation.org] On Behalf Of Richard Eng
> Sent: Tuesday, November 06, 2007 9:13 AM
> To: Seaside - general discussion
> Subject: Re: [Seaside] ProxyPass and the P Option
> 
> But isn't imageName1 the same as imageName2 ? In other words,
imageName is
> a
> constant, in my case, "GoodSexNetwork", since 'SmalltalkImage current
> imageName' returns '/home/richard/seaside/GoodSexNetwork.image'.
> 
> I think the cookie needs to be made unique with, say, the port number.
How
> do you obtain the port number in Seaside?
> 
> Thanks,
> Richard
> 
> ------
> Ramon wrote:
> 
> Have Seaside write out the image name in a cookie as the last step in
your
> initial request (making sure to grab any state you need first).
> 
> initialRequest: aRequest
>     self parseAnyNeededParams: aRequest.
> 
>     (self session currentRequest cookieAt: #server)
>         ifNil: [self session redirectWithCookie:
>             (WACookie
>                 key: #server
>                 value: 'seaside.',
>                     ((SmalltalkImage current imageName copyAfterLast:
>                         FileDirectory slash asCharacter) copyUpToLast:
> $.))].
> 
> And configure your cluster with the route=imageName
> 
> <Proxy balancer://seaside_cluster>
>     BalancerMember  http://localhost:3001/seaside  route=imageName1
>     BalancerMember  http://localhost:3002/seaside  route=imageName2
> </Proxy>
> 
> 
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


More information about the seaside mailing list