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.
Thanks in advance, -Conrad
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
> 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 [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
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 <[hidden email]>: >> 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 > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > -- Best regards, Igor Stasenko AKA sig. _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
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 <[hidden email]> wrote: Here is rewrite ruleset for one of Gjallar demo setup. More advanced :) _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |