[Seaside] Re: Re: Seaside Scaling - How successful?
Sean Allen
sean at monkeysnatchbanana.com
Thu Aug 21 12:49:18 UTC 2008
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 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?
>
> _______________________________________________
> 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/20080821/d46d6029/attachment.htm
More information about the seaside
mailing list