[Glass] Swazoo server hangs

Otto Behrens otto at finworks.biz
Tue Nov 12 23:45:12 PST 2013


Thanks, got it
www.FinWorks.biz
+27 82 809 2375


On Mon, Nov 11, 2013 at 11:51 PM, Paul DeBruicker <pdebruic at gmail.com> wrote:
> err. this line:
>
>>             try_files $uri @getcooperation;
>
>
> should be this line:
>
>         try_files $uri @fastCgi;
>
>
> hth
>
> Paul
>
>
> On Nov 11, 2013, at 1:29 PM, Paul DeBruicker <pdebruic at gmail.com> wrote:
>
>>
>>
>> here's one I've used:
>>
>>
>> #########################################################################
>> upstream seaside {
>>         server localhost:9001;
>>         server localhost:9002;
>>         server localhost:9003;
>> }
>>
>>
>> server {
>>       listen 80 default_server;
>>       server_name www.example.com example.com;
>>       root /var/www/www.example.com;
>>
>>        gzip on;
>>        gzip_disable "msie6";
>>        gzip_static on;
>>        gzip_vary on;
>>        gzip_proxied any;
>>        gzip_comp_level 6;
>>        gzip_buffers 16 8k;
>>        gzip_http_version 1.1;
>>        gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml;
>>
>>
>>
>>       location @fastCgi {
>>           include fastcgi_params;
>>           fastcgi_pass seaside;
>>        }
>>
>>        location / {
>>                 try_files $uri @getcooperation;
>>        }
>>
>>        location ~* ^.+\.(css|js|jpg|jpeg|gif|png|ico|svg)$ {
>>                add_header Access-Control-Allow-Origin http://www.getcooperation.com ;
>>                expires max;
>>                add_header Cache-Control "public, must-revalidate, proxy-revalidate";
>>                add_header Pragma public;
>>        }
>> }
>>
>> #####################################################################
>>
>>
>> It first attempts to find a file at the URI and if not found passes the request round robin style to the FastCGI adaptors.  It sets the expiration headers for any static file and zips the static and dynamic content.  If you gzip your css and js files and store them next to the uncompressed files nginx will serve the gzipped files, saving some CPU overhead on each request. (E.g. if your css fils is main.css then put main.css.gz next to it and nginx will server the .gz one) The dynamic content from FastCGI is gzipped on the fly.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> On Nov 11, 2013, at 8:51 AM, Otto Behrens <otto at finworks.biz> wrote:
>>
>>> Hi,
>>>
>>>> We are using the Zinc client (version 1.7) in production, not the server.
>>>> We use the FastCGI adaptors behind an nginx server.
>>>
>>> Do you mind sending us an example nginx config that works for you?
>>>
>>> Thanks
>>> Otto
>>> _______________________________________________
>>> Glass mailing list
>>> Glass at lists.gemtalksystems.com
>>> http://lists.gemtalksystems.com/mailman/listinfo/glass
>>
>
> _______________________________________________
> Glass mailing list
> Glass at lists.gemtalksystems.com
> http://lists.gemtalksystems.com/mailman/listinfo/glass


More information about the Glass mailing list