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

Brad Fuller brad at sonaural.com
Tue Feb 21 01:56:57 UTC 2006


Rick Flower wrote:
> 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... :-)
Thanks Rick, promises to be very helpful in the future for me.
Are there any modules that need to be loaded as well? I try to keep them
to the bare minimum.


More information about the Seaside mailing list