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

Marcelino Llano Villa listas at marze.es
Thu Aug 21 11:41:40 UTC 2008


use nginx instead apache, i think is faster to serve static files,  
didn't?
is this technique called proxy pass? sorry  kinda newbie here
I 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?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20080821/980d550a/attachment-0001.htm


More information about the seaside mailing list