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

Igor Stasenko siguctua at gmail.com
Fri May 23 06:07:12 UTC 2008

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.

More information about the seaside mailing list