# Server

**URL:** https://www.ruby-forum.com/c/server/33.md?page=161

[Latest](https://www.ruby-forum.com/latest.md) · [Categories](https://www.ruby-forum.com/categories.md) · [Tags](https://www.ruby-forum.com/tags.md)

**Page:** 162

---

## [OS tuning an nginx webserver machine](https://www.ruby-forum.com/t/os-tuning-an-nginx-webserver-machine/218097)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 21, 2012, 3:56am UTC](https://www.ruby-forum.com/t/os-tuning-an-nginx-webserver-machine/218097 "2012-03-21T03:56:03Z")

</div>

Hi all, Recently I resorted to tuning my nginx webserver box for more performance. I went ahead an changed sudo ip route change default via 1.25.29.1 dev eth0 initcwnd 10 sudo sysctl -w net.ipv4.tcp\_slow\_start\_after…

---

## [Image\_filter\_jpeg\_quality based on size](https://www.ruby-forum.com/t/image-filter-jpeg-quality-based-on-size/217955)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [March 21, 2012, 3:41am UTC](https://www.ruby-forum.com/t/image-filter-jpeg-quality-based-on-size/217955 "2012-03-21T03:41:50Z")

</div>

Hi all, In the --with-http\_image\_filter\_module: Can I set image\_filter\_jpeg\_quality based on image size? Say I want to apply a loss of 75 to all images greater than 400KB. For the rest do nothing. -Quintin

---

## [Nginx-perl-1.1.17.1](https://www.ruby-forum.com/t/nginx-perl-1-1-17-1/217906)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [March 20, 2012, 7:57pm UTC](https://www.ruby-forum.com/t/nginx-perl-1-1-17-1/217906 "2012-03-20T19:57:58Z")

</div>

Hello, everyone. It’s been awhile since my last announce, it was 1.1.11.1 roughly two months ago. And now it’s 1.1.17.1. There were couple of bugfixes and new features. But most of the work was done on automated test…

---

## [Power Failure Now NginX Restart Problem](https://www.ruby-forum.com/t/power-failure-now-nginx-restart-problem/218082)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 20, 2012, 6:27pm UTC](https://www.ruby-forum.com/t/power-failure-now-nginx-restart-problem/218082 "2012-03-20T18:27:03Z")

</div>

This morning we had one of those power disruptions (the kind that last just long enough to cause you to reset the clock). Now when I restart Nginx I get the error that it can’t open the error.log file /var/log/nginx/…

---

## [Streamed gzip VS buffered gzip](https://www.ruby-forum.com/t/streamed-gzip-vs-buffered-gzip/218074)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [March 20, 2012, 3:29pm UTC](https://www.ruby-forum.com/t/streamed-gzip-vs-buffered-gzip/218074 "2012-03-20T15:29:33Z")

</div>

My workmate just noticed that HTTP response of nginx gzip module is chunked, while Apache’s goes with Content-Length, seems to be buffered. How to force nginx do a buffered gzipped output, too? – 冷静认真，稳定运行；随时候命，宠辱不惊

---

## [A new uWSGI PHP plugin is available](https://www.ruby-forum.com/t/a-new-uwsgi-php-plugin-is-available/217222)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 24\
**Last updated:** [March 20, 2012, 12:10pm UTC](https://www.ruby-forum.com/t/a-new-uwsgi-php-plugin-is-available/217222 "2012-03-20T12:10:03Z")

</div>

Hi everyone, uWSGI has got a new php plugin, allowing you to run php apps at full speed (read: not in CGI mode) and getting all of the uWSGI features (like adaptive process spawning and jailing technics). In additio…

---

## [Log entire header & cookie](https://www.ruby-forum.com/t/log-entire-header-cookie/218068)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [March 20, 2012, 11:22am UTC](https://www.ruby-forum.com/t/log-entire-header-cookie/218068 "2012-03-20T11:22:18Z")

</div>

Hi, Is there a variable which stores entire header & cookie in a single string ? I want to log the entire request header. But dont want to specify each $http\_HEADER. Posted at Nginx Forum:

---

## [No performance improvement on nginx reverse-proxy](https://www.ruby-forum.com/t/no-performance-improvement-on-nginx-reverse-proxy/197351)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 5\
**Last updated:** [March 20, 2012, 4:30am UTC](https://www.ruby-forum.com/t/no-performance-improvement-on-nginx-reverse-proxy/197351 "2012-03-20T04:30:21Z")

</div>

Hello, This day I did a simpe test with nginx’s reverse-proxy. The environment is on a vmware virtual host. OS: slackware Linux, kernel 2.6.24.5-smp CPU: Intel(R) Celeron(R) CPU 723 @ 1.20GHz MEM: 350M Th…

---

## [Consistent hashing for upstreams](https://www.ruby-forum.com/t/consistent-hashing-for-upstreams/218044)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [March 20, 2012, 2:55am UTC](https://www.ruby-forum.com/t/consistent-hashing-for-upstreams/218044 "2012-03-20T02:55:12Z")

</div>

Has anybody used ngx\_http\_upstream\_consistent\_hash with newer nginx releases (\>1.0)? If so, is it possible to use ngx\_http\_upstream\_consistent\_hash with HTTP-based back-ends, or does it only work with memcahe backends…

---

## [Nginx as fwd-proxy to an https server](https://www.ruby-forum.com/t/nginx-as-fwd-proxy-to-an-https-server/218055)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 20, 2012, 12:05am UTC](https://www.ruby-forum.com/t/nginx-as-fwd-proxy-to-an-https-server/218055 "2012-03-20T00:05:29Z")

</div>

If I understood well, the ‘normal’ setup is to let the client talk via https to nginx and to have all servers behind nginx talk plain http. web client --https–\> nginx --http–\> another server However I have one setup,…

---

## [Sending Traffic to another Server/Port/IP asynchronously](https://www.ruby-forum.com/t/sending-traffic-to-another-server-port-ip-asynchronously/216659)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [March 19, 2012, 11:09am UTC](https://www.ruby-forum.com/t/sending-traffic-to-another-server-port-ip-asynchronously/216659 "2012-03-19T11:09:17Z")

</div>

I have nginx as the HTTP server. I wanted to write a module which asynchronously send all the traffic to another IP or PORT where my analytics server will be running. I dont want to create any lag in serving HTTP requ…

---

## [Src/os/win32/ is not found in source archive](https://www.ruby-forum.com/t/src-os-win32-is-not-found-in-source-archive/218024)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 19, 2012, 4:28am UTC](https://www.ruby-forum.com/t/src-os-win32-is-not-found-in-source-archive/218024 "2012-03-19T04:28:20Z")

</div>

Hi, I’m trying to build windows binary. But I can’t find some files in src/os/win32/ It would be nice if you include win32 files in source archive. I know there is the files in svn repository. Thank you.

---

## [Using Nginx to stream h.264 video](https://www.ruby-forum.com/t/using-nginx-to-stream-h-264-video/217970)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 12\
**Last updated:** [March 18, 2012, 7:03pm UTC](https://www.ruby-forum.com/t/using-nginx-to-stream-h-264-video/217970 "2012-03-18T19:03:49Z")

</div>

Hi, I’m currently trying to setup Nginx to stream an mp4 video file. Currently I have read through: http://h264.code-shop.com/trac/wiki/Mod-H264-Streaming-Nginx-Version2 http://h264.code-shop.com/trac/wiki/Mod-H264-S…

---

## [Suggestions for streaming architecture](https://www.ruby-forum.com/t/suggestions-for-streaming-architecture/217994)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 18, 2012, 9:09am UTC](https://www.ruby-forum.com/t/suggestions-for-streaming-architecture/217994 "2012-03-18T09:09:39Z")

</div>

I am building new streaming architecture and I would like to ask you sugestions. We will stream FLV and MP4, both using native nginx modules. There is one storage server and 4 video streamers. Storage server contains …

---

## [Release nginx-push-stream version 0.3.3](https://www.ruby-forum.com/t/release-nginx-push-stream-version-0-3-3/217966)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 17, 2012, 3:51pm UTC](https://www.ruby-forum.com/t/release-nginx-push-stream-version-0-3-3/217966 "2012-03-17T15:51:17Z")

</div>

Hi, I am releasing version 0.3.3 of nginx push stream modulehttps://github.com/wandenberg/nginx-push-stream-module Changelog: Adding JSONP support to pushstream.js and dynamically callback parameter Adding event ty…

---

## [How to unset header in nginx module](https://www.ruby-forum.com/t/how-to-unset-header-in-nginx-module/217937)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [March 17, 2012, 9:34am UTC](https://www.ruby-forum.com/t/how-to-unset-header-in-nginx-module/217937 "2012-03-17T09:34:52Z")

</div>

Hi, I’d like to delete particular headers\_in like a apr\_table\_unset() in request handler of my module. I wrote examples from the article: http://wiki.nginx.org/HeadersManagement static void unset\_header(ngx\_http\_req…

---

## [uWSGI 1.1](https://www.ruby-forum.com/t/uwsgi-1-1/217959)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [March 17, 2012, 8:48am UTC](https://www.ruby-forum.com/t/uwsgi-1-1/217959 "2012-03-17T08:48:59Z")

</div>

I am pleased to announce the 1.1 release of the uWSGI project. This release focuses on a new option parser subsystem, improved perl/psgi and ruby/rack support and a new (stable) php plugin. A lot of optimizations hav…

---

## [Content Encoding Error while returning data from memcached stored by ngx\_srcache](https://www.ruby-forum.com/t/content-encoding-error-while-returning-data-from-memcached-stored-by-ngx-srcache/217924)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [March 16, 2012, 6:23pm UTC](https://www.ruby-forum.com/t/content-encoding-error-while-returning-data-from-memcached-stored-by-ngx-srcache/217924 "2012-03-16T18:23:07Z")

</div>

I need little help here. First time browsing or memcached restart will show you the data correctly; but when you refresh second time and it will gives you content encoding error and I think it is something to do with …

---

## [Static ETags](https://www.ruby-forum.com/t/static-etags/217930)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [March 16, 2012, 5:14pm UTC](https://www.ruby-forum.com/t/static-etags/217930 "2012-03-16T17:14:13Z")

</div>

Hi Everyone, I had a look at the Static Etag 3rd party module, and noticed a few things: There is a memory leak, a malloc() requesting 1000 bytes is called, but never free()'d Doesn’t check headers from client to se…

---

## [Can't configure 33 "virtualhosts" in nginx 0.7.62-0 (max=32?)](https://www.ruby-forum.com/t/cant-configure-33-virtualhosts-in-nginx-0-7-62-0-max-32/217922)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 16, 2012, 1:03pm UTC](https://www.ruby-forum.com/t/cant-configure-33-virtualhosts-in-nginx-0-7-62-0-max-32/217922 "2012-03-16T13:03:10Z")

</div>

Hi. I have a Linux Ubuntu 8.04 LTS machine with nginx 0.7.62-0 installed from a PPA repository. NGINX is being working correctly since now, but today I’ve tried to add the 33th “virtualhost” to the sites-available an…

---

## [Nginx-1.1.17](https://www.ruby-forum.com/t/nginx-1-1-17/217885)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 16, 2012, 12:24pm UTC](https://www.ruby-forum.com/t/nginx-1-1-17/217885 "2012-03-16T12:24:40Z")

</div>

Changes with nginx 1.1.17 15 Mar 2012 \*) Security: content of previously freed memory might be sent to a client if backend returned specially crafted response. Thanks to Mat…

---

## [Nginx-1.0.14](https://www.ruby-forum.com/t/nginx-1-0-14/217887)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 16, 2012, 12:24pm UTC](https://www.ruby-forum.com/t/nginx-1-0-14/217887 "2012-03-16T12:24:02Z")

</div>

Changes with nginx 1.0.14 15 Mar 2012 \*) Security: content of previously freed memory might be sent to a client if backend returned specially crafted response. Thanks to Mat…

---

## [Catch success download file event](https://www.ruby-forum.com/t/catch-success-download-file-event/217879)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [March 16, 2012, 4:38am UTC](https://www.ruby-forum.com/t/catch-success-download-file-event/217879 "2012-03-16T04:38:34Z")

</div>

Hi Guys, I have nginx server host some static files. How can I catch (trigger) when users successfully download a file ?! That means the size of downloaded file equals to the size of the file on server. I mean user …

---

## [Proxy\_buffering](https://www.ruby-forum.com/t/proxy-buffering/217856)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [March 15, 2012, 11:07pm UTC](https://www.ruby-forum.com/t/proxy-buffering/217856 "2012-03-15T23:07:42Z")

</div>

Hey Guys, I’m new to nginx and have a question about the proxy\_buffering feature. Our topology is very easy: Just nginx - No apache behind it. Our site gets the content (text,pictures,videos) of different sites via …

---

## [Security advisory](https://www.ruby-forum.com/t/security-advisory/217888)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [March 15, 2012, 2:47pm UTC](https://www.ruby-forum.com/t/security-advisory/217888 "2012-03-15T14:47:01Z")

</div>

Hello! Matthew Daley recently discovered a security problem which may lead to a disclosure of previously freed memory on specially crafted response from an upstream server, potentially resulting in sensitive informat…

---

## [Dynamically Start/Stop FastCGI PHP Processes](https://www.ruby-forum.com/t/dynamically-start-stop-fastcgi-php-processes/217875)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [March 15, 2012, 11:22am UTC](https://www.ruby-forum.com/t/dynamically-start-stop-fastcgi-php-processes/217875 "2012-03-15T11:22:21Z")

</div>

Ok, so I’ve got a crazy idea, but it might just work. Basically, we have a bunch of PHP pools managed with PHP-FPM. Each site has its own single PHP-FPM worker for security reasons. The majority of the sites don’t get…

---

## [Nginx build with OpenSSL 1.0.1](https://www.ruby-forum.com/t/nginx-build-with-openssl-1-0-1/217854)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [March 15, 2012, 11:14am UTC](https://www.ruby-forum.com/t/nginx-build-with-openssl-1-0-1/217854 "2012-03-15T11:14:52Z")

</div>

Hello, community, I’m having trouble compiling nginx against OpenSSL 1.0.1. When I compile OpenSSL manually, I have no problems, everything is fine, but when trying to compile nginx with the --with-openssl option the …

---

## [Questions about fair\_upstream module](https://www.ruby-forum.com/t/questions-about-fair-upstream-module/217826)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [March 15, 2012, 7:53am UTC](https://www.ruby-forum.com/t/questions-about-fair-upstream-module/217826 "2012-03-15T07:53:56Z")

</div>

Hi, I’m actually serving pages using nginx-1.0.13 on fbsd-8.2 amd64 with 3 backends (fbsd-8.2 amd64 with apache-2.2.22) and I’m using the default rr upstream algorithm. I am trying to switch to an algorithm differen…

---

## [Please help with proxy\_pass and trailing slash!](https://www.ruby-forum.com/t/please-help-with-proxy-pass-and-trailing-slash/217845)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [March 15, 2012, 5:19am UTC](https://www.ruby-forum.com/t/please-help-with-proxy-pass-and-trailing-slash/217845 "2012-03-15T05:19:08Z")

</div>

I have a php site with location /app served by Java app server on same server port 9001 What is in /app/ should become / (root) for Java app server I have this in config: server { … index index.html index.htm index…

---

## [SSL Not Working](https://www.ruby-forum.com/t/ssl-not-working/217855)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 15, 2012, 2:22am UTC](https://www.ruby-forum.com/t/ssl-not-working/217855 "2012-03-15T02:22:19Z")

</div>

Help Please… I am create simple SSL configuration as describe in documentation but I keep getting following error message… Can you please advise what I am doing wrong… -bash-3.2# nginx -v nginx version: nginx/1.0.13 …

[Previous page](https://www.ruby-forum.com/c/server/33.md?page=160)

[Next page](https://www.ruby-forum.com/c/server/33.md?page=162)
