[Seaside] Re: Re: Seaside Scaling - How successful?

David Zmick dz0004455 at gmail.com
Thu Aug 21 21:43:26 UTC 2008


.htacces in my apache root directory:

RewriteRule ^seaside/files.* - [L]
RewriteRule ^(.*)$ http://localhost:8080/seaside/pier/$1 [P,L]

not the recommended way, using a virtualhost, but, it works!


On Thu, Aug 21, 2008 at 7:49 AM, Sean Allen <sean at monkeysnatchbanana.com>wrote:

> for the apache setups i've seen documented, the nginx conf file below
> should work fine.
>
> unless you setup that rails etc style caching,
> this:
>
>             if (-f $request_filename.html) {
>               rewrite (.*) $1.html break;
>             }
>
>
>
> wouldn't be needed.
>
> --
>
> fyi there is a bug in that conf file.
>
> you have:
>
>         index index.html index.htm;
>
>
> set as directory indexes BUT...
>
>             if (-f $request_filename/index.html) {
>               rewrite (.*) $1/index.html break;
>             }
>
>
> only checks for index.html
>
> so IF you had a directory index of index.htm,
> it would never get served. unless directly accessed.
>
>
>
> On Aug 21, 2008, at 7:41 AM, Marcelino Llano Villa wrote:
>
> use nginx instead apache, i think is faster to serve static files, didn't? is
> this technique called proxy pass? sorry  kinda newbie hereI believe this
> is possible, but is there a benefit on this with squeak?
>
> here is my ebb (a ruby server for dynamic content) nginx conf file
>
>
> user  www-data www-data;
> worker_processes  5;
> error_log  logs/error.log;
> pid        logs/nginx.pid;
> events {
>     worker_connections  1024;
> }
>
> http {
>     include       mime.types;
>     default_type  application/octet-stream;
>
>     log_format  main  '$remote_addr - $remote_user [$time_local] $status '
>                       '"$request" $body_bytes_sent "$http_referer" '
>                       '"$http_user_agent" "http_x_forwarded_for"';
>
>     access_log  logs/access.log  main;
>
>     sendfile     on;
>     tcp_nopush   on;
>     tcp_nodelay  on;
>     gzip         on;
>
>     upstream ebb {
>           server 127.0.0.1:4000;
>           server 127.0.0.1:4001;
>           server 127.0.0.1:4002;
>         }
>
>     server {
>         listen 80;
>         server_name www.site.com site.com;
>         client_max_body_size 50M;
>
>         access_log /srv/www/site.com/shared/log/access.log;
>         error_log  /srv/www/site.com/shared/log/error.log;
>
>         root /srv/www/site.com/current/public;
>         index index.html index.htm;
>
>         location / {
>             proxy_set_header X-Real-IP $remote_addr;
>             proxy_set_header X-Forwarded_for $proxy_add_x_forwarded_for;
>             proxy_set_header Host $http_host;
>             proxy_redirect false;
>             proxy_max_temp_file_size 0;
>
>             if (-f $request_filename) {
>               break;
>             }
>
>             if (-f $request_filename/index.html) {
>               rewrite (.*) $1/index.html break;
>             }
>
>             if (-f $request_filename.html) {
>               rewrite (.*) $1.html break;
>             }
>
>             if (!-f $request_filename) {
>               proxy_pass http://ebb;
>               break;
>             }
>         }
>
>         error_page   500 502 503 504  /500.html;
>         location = /500.html {
>             root  /srv/www/exceptions;
>         }
>     }
> }
>
>
> El 21/08/2008, a las 4:19, Sean Allen escribió:
>
> do what exactly?
>
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>


-- 
David Zmick
/dz0004455\
http://dz0004455.googlepages.com
http://dz0004455.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20080821/6a17d712/attachment.htm


More information about the seaside mailing list