[Seaside][Apache] Working Apache Httpd Config File?

Conrad Taylor conradwt at gmail.com
Fri May 23 13:46:23 UTC 2008


Hi, thanks for the information and I really appreciate it.  How does one do
the load-balancing portion?  So, how does one properly start the Smalltalk
web server for serving up Seaside pages in Squeak?
-Conrad

On Thu, May 22, 2008 at 11:07 PM, Igor Stasenko <siguctua at gmail.com> wrote:

> Here is rewrite ruleset for one of Gjallar demo setup. More advanced :)
>
> # this one looks for url, starting from /seaside/files/<filename>
> # and then looks for the file under DOCUMENT_ROOT  and if given file
> exists in directory
> # then file will be served by Apache
>
> RewriteCond %{REQUEST_URI} ^/seaside/files(.*)$
> RewriteCond %{DOCUMENT_ROOT}/%1 -f
> RewriteRule ^/seaside/files/(.*)$ /$1 [L]
>
> # if file is not found, let it be served by seaside
> RewriteRule ^/seaside/files/(.*)$ http://localhost:8087/seaside/files/$1[P,L]
>
> # for rest urls, let them be handled by seaside
>
> RewriteRule ^/seaside/Gjallar/(.*)$ $1
> RewriteRule ^(.*)$ http://localhost:8087/seaside/Gjallar$1 [P,L]
>
>
> 2008/5/23 Lukas Renggli <renggli at gmail.com>:
> >> Hi, does anyone have a working Apache httpd.conf for serving up static
> >> content on Mac OS X 10.5.2?  Also, I have a requirement for load
> balancing.
> >
> > My development setup adds the following lines to
> > "/etc/apache2/users/lukas.conf":
> >
> >  # settings
> >  RewriteEngine On
> >  ProxyPreserveHost On
> >
> >  # rewrite rules
> >  RewriteRule ^/resources/(.*) http://localhost/~lukas/resources/$1 [P,L]
> >  RewriteRule ^/seaside/(.*) http://localhost:8080/seaside/$1 [P,L]
> >
> > This is essentially the same as I have on the Linux deployment boxes.
> >
> > Cheers,
> > Lukas
> >
> > --
> > Lukas Renggli
> > http://www.lukas-renggli.ch
> > _______________________________________________
> > seaside mailing list
> > seaside at lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >
>
>
>
> --
> Best regards,
> Igor Stasenko AKA sig.
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20080523/43ed212b/attachment.htm


More information about the seaside mailing list