Reverse Proxy setup for Apache2 for use w/ Seaside apps.. (was: Re: [Seaside] [Q] FastCGI + Squeak?)

Rick Flower rickf at ca-flower.com
Tue Feb 21 01:51:58 UTC 2006


By the way, just in case this helps someone besides me (and since I 
wasn't able to find a complete answer to this
question on the list archives -- feel free to chastise me off-list if 
you think this was OT).. I finally got my reverse
proxy running perfectly with Seaside and thought I'd put my proxy 
settings out for anyone else that happens
to want to do this now or in the future.. Keep in mind that these 
settings are for use with Apache2 (not 1.x)
and would need work to be used on an older Apache server..  Hopefully 
someone will find this of interest..

############################################################
# Setup the Seaside Reverse Proxy
# derived from the following sites:
#    http://www.wlug.org.nz/ApacheReverseProxy
#    http://www.apacheweek.com/features/reverseproxies
############################################################
ProxyRequests                   off
ProxyPass                       /seaside        
http://localhost:8008/seaside/go/myapp
ProxyHTMLURLMap                 http://www.yourdomain.com/seaside /seaside

<Location /seaside>
        ProxyPassReverse        http://localhost:8008/seaside/go/myapp/
        SetOutputFilter         proxy-html
        ProxyHTMLURLMap         /seaside/go/            /seaside/
        ProxyHTMLURLMap         /seaside/go/myapp/    /seaside/
        RequestHeader           unset Accept-Encoding
</Location>

#ProxyHTMLLogVerbose On
#       LogLevel Debug

So, with the above settings, if you visit 
http://www.yourdomain.com/seaside, you'll get a mapping
from your Apache webserver over to 
http://localhost:8008/seaside/go/myapp and all pages will
get their internal links rewritten to look something like :

 http://www.yourdomain.com/seaside/myapp?4&_k=VrunGRvS&_s=SOPzHyEkmNFVrnJp

Now, obviously if you wanted to have multiple seaside apps running, 
you'd have to tailor this a bit.

Hope this helps... :-)

-- Rick




More information about the Seaside mailing list