# Server

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

[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:** 293

---

## [How to reduce wait time before switch to backup upstream?](https://www.ruby-forum.com/t/how-to-reduce-wait-time-before-switch-to-backup-upstream/176987)

<div class="topic-metadata">

**Author:** [@TrSSSSSSn\_TrSSSSSSn](https://www.ruby-forum.com/u/TrSSSSSSn_TrSSSSSSn)\
**Replies:** 1\
**Last updated:** [October 9, 2009, 1:23pm UTC](https://www.ruby-forum.com/t/how-to-reduce-wait-time-before-switch-to-backup-upstream/176987 "2009-10-09T13:23:22Z")

</div>

Dear list, Here’s my current config: http { upstream ups { server 192.168.90.100; server 192.168.91.110 backup; } server { listen 80; server\_name localhost; location / { proxy\_pass http://ups; } } } …

---

## [Idea for a statistics module](https://www.ruby-forum.com/t/idea-for-a-statistics-module/176935)

<div class="topic-metadata">

**Author:** [@Tommie\_G](https://www.ruby-forum.com/u/Tommie_G)\
**Replies:** 2\
**Last updated:** [October 9, 2009, 9:56am UTC](https://www.ruby-forum.com/t/idea-for-a-statistics-module/176935 "2009-10-09T09:56:09Z")

</div>

Hi! We felt the stub status module was a bit too non-modular for our internal services and created a statistics module where each module can allocate their stat counters more dynamically. It does have a hardcoded l…

---

## [400 bad request errors](https://www.ruby-forum.com/t/400-bad-request-errors/176286)

<div class="topic-metadata">

**Author:** [@pepejose](https://www.ruby-forum.com/u/pepejose)\
**Replies:** 19\
**Last updated:** [October 8, 2009, 5:32pm UTC](https://www.ruby-forum.com/t/400-bad-request-errors/176286 "2009-10-08T17:32:03Z")

</div>

hi i have several errors in my access\_log IP \_ - \[28/Sep/2009:15:56:33 +0200\] “-” 400 0 “-” “-” “-” why these errors occur? thanks!!! Posted at Nginx Forum:

---

## [Proxy\_next\_upstream enhancement](https://www.ruby-forum.com/t/proxy-next-upstream-enhancement/176936)

<div class="topic-metadata">

**Author:** [@STEVENARD\_Kevin](https://www.ruby-forum.com/u/STEVENARD_Kevin)\
**Replies:** 0\
**Last updated:** [October 8, 2009, 4:59pm UTC](https://www.ruby-forum.com/t/proxy-next-upstream-enhancement/176936 "2009-10-08T16:59:50Z")

</div>

Hi, I am currently having this architecture: Client on the internet --\> Firewall --\> Reverse Proxy (NginX 0.7.62) --\> Load Balancer --\> Application Servers So I use Nginx just as a reverse proxy, and also to handle t…

---

## [Nginx and plesk 8.6 on Mediatemple VPS](https://www.ruby-forum.com/t/nginx-and-plesk-8-6-on-mediatemple-vps/176927)

<div class="topic-metadata">

**Author:** [@Niro](https://www.ruby-forum.com/u/Niro)\
**Replies:** 0\
**Last updated:** [October 8, 2009, 2:38pm UTC](https://www.ruby-forum.com/t/nginx-and-plesk-8-6-on-mediatemple-vps/176927 "2009-10-08T14:38:46Z")

</div>

Hello, I have a web service running on Mediatemple VPS with the following configuration: Centos 5/ Plesk 8.6 /Apache 2 /Php 5.2.6 / Mysql 5.x.x/ APC / Memcached. I want to add nginx as reverse proxy and cache. I hear…

---

## [Setting cookie with initial referer value](https://www.ruby-forum.com/t/setting-cookie-with-initial-referer-value/176904)

<div class="topic-metadata">

**Author:** [@Lasse\_L](https://www.ruby-forum.com/u/Lasse_L)\
**Replies:** 0\
**Last updated:** [October 7, 2009, 10:01pm UTC](https://www.ruby-forum.com/t/setting-cookie-with-initial-referer-value/176904 "2009-10-07T22:01:50Z")

</div>

Dear mailing list I am in the process of migrating our sites away from Apache onto nginx. I only need one final thing before I can move to nginx: On our apache servers we set an cookie (named ref) with the initial pa…

---

## [Geoip rewrite](https://www.ruby-forum.com/t/geoip-rewrite/176539)

<div class="topic-metadata">

**Author:** [@robv](https://www.ruby-forum.com/u/robv)\
**Replies:** 1\
**Last updated:** [October 7, 2009, 3:27pm UTC](https://www.ruby-forum.com/t/geoip-rewrite/176539 "2009-10-07T15:27:46Z")

</div>

was wondering if someone could help me out with a rewrite rule. i need to rewrite anyone who comes to the main site (ie. www.test.com) with no request\_filename and is from canada to be redirected to a different page. …

---

## [Limit\_conn question](https://www.ruby-forum.com/t/limit-conn-question/176813)

<div class="topic-metadata">

**Author:** [@Tomasz\_P](https://www.ruby-forum.com/u/Tomasz_P)\
**Replies:** 2\
**Last updated:** [October 7, 2009, 2:24pm UTC](https://www.ruby-forum.com/t/limit-conn-question/176813 "2009-10-07T14:24:33Z")

</div>

Why limit\_conn is not allowed in such a configuration? #http context limit\_zone resp\_zone $binary\_remote\_addr 64m; geo $limit\_conn { default 1; x.x.x.x/32 0; z.z.z.z/32 0; y.y.y.y/32 0; } #server context server…

---

## [Nginx as backend: handle X-Forwarded-Proto (similar to NginxHttpRealIpModule / X-Real-Ip)](https://www.ruby-forum.com/t/nginx-as-backend-handle-x-forwarded-proto-similar-to-nginxhttprealipmodule-x-real-ip/176876)

<div class="topic-metadata">

**Author:** [@agnathan](https://www.ruby-forum.com/u/agnathan)\
**Replies:** 0\
**Last updated:** [October 7, 2009, 1:06pm UTC](https://www.ruby-forum.com/t/nginx-as-backend-handle-x-forwarded-proto-similar-to-nginxhttprealipmodule-x-real-ip/176876 "2009-10-07T13:06:06Z")

</div>

Hi, when using nginx as backend, it would be useful to handle X-Forwarded-Proto in the same way X-Forwarded-For / X-Real-Ip can be handled, e.g.: frontend: proxy\_set\_header X-Forwarded-Proto $scheme; backend…

---

## [Build error --with-debug; ECDHE key exchange TLS problem](https://www.ruby-forum.com/t/build-error-with-debug-ecdhe-key-exchange-tls-problem/176866)

<div class="topic-metadata">

**Author:** [@kyleb](https://www.ruby-forum.com/u/kyleb)\
**Replies:** 1\
**Last updated:** [October 7, 2009, 12:33pm UTC](https://www.ruby-forum.com/t/build-error-with-debug-ecdhe-key-exchange-tls-problem/176866 "2009-10-07T12:33:19Z")

</div>

nginx version: 0.7.62 OpenSSL version: 1.0.0-beta3 Platform: Linux 2.6.18 x64 Short description of problem: \* (a) nginx seems not to handle ephemeral DH key exchanges with EC. (kx=ECDHE, auth=ECDSA) Connection die…

---

## [Nginx-0.8.18](https://www.ruby-forum.com/t/nginx-0-8-18/176812)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 12\
**Last updated:** [October 7, 2009, 11:11am UTC](https://www.ruby-forum.com/t/nginx-0-8-18/176812 "2009-10-07T11:11:56Z")

</div>

Changes with nginx 0.8.18 06 Oct 2009 \*) Feature: the "read\_ahead" directive. \*) Feature: now several "perl\_modules" directive may be used. \*) Feature: the "limit\_req\_log\_level"…

---

## [Ssl for nginx, old browsers](https://www.ruby-forum.com/t/ssl-for-nginx-old-browsers/176789)

<div class="topic-metadata">

**Author:** [@eternity](https://www.ruby-forum.com/u/eternity)\
**Replies:** 19\
**Last updated:** [October 7, 2009, 8:26am UTC](https://www.ruby-forum.com/t/ssl-for-nginx-old-browsers/176789 "2009-10-07T08:26:52Z")

</div>

I have an nginx server as a frontend to apache. Nginx runs ssl with certificate that was bought and is valid. New versions of browsers(like opera 10) have no problems, but old(like 9.5 and some client-banking systems…

---

## [Incomplete, missing or invalid response headers](https://www.ruby-forum.com/t/incomplete-missing-or-invalid-response-headers/176848)

<div class="topic-metadata">

**Author:** [@killswitchcollectiv](https://www.ruby-forum.com/u/killswitchcollectiv)\
**Replies:** 0\
**Last updated:** [October 7, 2009, 1:13am UTC](https://www.ruby-forum.com/t/incomplete-missing-or-invalid-response-headers/176848 "2009-10-07T01:13:40Z")

</div>

We have been using nginx in combination with 3 mongrel instances on our servers. Recently we began testing the use of haproxy to act as a middle man to more efficiently handle our queues. When nginx was talking direct…

---

## [Bug in access logging with multiple workers on Windows?](https://www.ruby-forum.com/t/bug-in-access-logging-with-multiple-workers-on-windows/176835)

<div class="topic-metadata">

**Author:** [@rmalayter](https://www.ruby-forum.com/u/rmalayter)\
**Replies:** 0\
**Last updated:** [October 6, 2009, 10:19pm UTC](https://www.ruby-forum.com/t/bug-in-access-logging-with-multiple-workers-on-windows/176835 "2009-10-06T22:19:47Z")

</div>

I think I’ve run into a Windows-specific bug with access logging and multiple worker processes with file locking. Whenever I have access logging enabled (at the http or server layers), and I increase the number of wor…

---

## [Default SSL protocols](https://www.ruby-forum.com/t/default-ssl-protocols/176650)

<div class="topic-metadata">

**Author:** [@Matt\_Goodall](https://www.ruby-forum.com/u/Matt_Goodall)\
**Replies:** 4\
**Last updated:** [October 6, 2009, 9:39pm UTC](https://www.ruby-forum.com/t/default-ssl-protocols/176650 "2009-10-06T21:39:59Z")

</div>

Hi, I just noticed that the SSL module enables SSLv2 by default, "ssl\_protocols SSLv2 SSLv3 TLSv1 " (see Module ngx\_http\_ssl\_module). Given that SSLv2 is generally considered “weak” these days (Transport Layer Secur…

---

## [Nginx-0.8.19](https://www.ruby-forum.com/t/nginx-0-8-19/176825)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 1\
**Last updated:** [October 6, 2009, 7:15pm UTC](https://www.ruby-forum.com/t/nginx-0-8-19/176825 "2009-10-06T19:15:23Z")

</div>

Changes with nginx 0.8.19 06 Oct 2009 \*) Change: now SSLv2 protocol is disabled by default. \*) Change: now default SSL ciphers are “ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM”. \*) Bugfix:…

---

## [SSL session\_id variable](https://www.ruby-forum.com/t/ssl-session-id-variable/176010)

<div class="topic-metadata">

**Author:** [@senh](https://www.ruby-forum.com/u/senh)\
**Replies:** 7\
**Last updated:** [October 6, 2009, 4:14pm UTC](https://www.ruby-forum.com/t/ssl-session-id-variable/176010 "2009-10-06T16:14:27Z")

</div>

Hi, Is it possible to retrieve the SSL session\_id variable like in Apache? http://httpd.apache.org/docs/2.2/mod/mod\_ssl.html Regards, Sen

---

## [Odd cache behavior](https://www.ruby-forum.com/t/odd-cache-behavior/176590)

<div class="topic-metadata">

**Author:** [@joviyach](https://www.ruby-forum.com/u/joviyach)\
**Replies:** 6\
**Last updated:** [October 6, 2009, 3:52pm UTC](https://www.ruby-forum.com/t/odd-cache-behavior/176590 "2009-10-06T15:52:47Z")

</div>

Hello, I’m seeing odd disk usage statistics for my cache. The cache is primarily of small files (images, javascript, and css) and sits on a 128GB SSD using ext2 file system mounted with “noatime” option. The cache is…

---

## [Proxy\_pass issue](https://www.ruby-forum.com/t/proxy-pass-issue/176721)

<div class="topic-metadata">

**Author:** [@stumeikle](https://www.ruby-forum.com/u/stumeikle)\
**Replies:** 8\
**Last updated:** [October 6, 2009, 3:24pm UTC](https://www.ruby-forum.com/t/proxy-pass-issue/176721 "2009-10-06T15:24:40Z")

</div>

Hey guys, first time poster. Struggling to get nginx to proxy\_pass through to another server. Server 1: http://storecrowd.com/ (Nginx) Server 2: http://storecrowd.com/blog/ (Nginx) I’ve got nginx set up on server 1 t…

---

## [High i/o usage](https://www.ruby-forum.com/t/high-i-o-usage/176706)

<div class="topic-metadata">

**Author:** [@Stefanita\_Rares\_Dum](https://www.ruby-forum.com/u/Stefanita_Rares_Dum)\
**Replies:** 5\
**Last updated:** [October 6, 2009, 12:31pm UTC](https://www.ruby-forum.com/t/high-i-o-usage/176706 "2009-10-06T12:31:21Z")

</div>

hi guys, i am using centos 5, nginx version: nginx/0.8.16 , and php-fpm and i have switched to nginx on one of my very busy servers. however, i see very high i/o usage, and the site works pretty sloppy. below is my …

---

## [How to add Cache-Control: public to static files](https://www.ruby-forum.com/t/how-to-add-cache-control-public-to-static-files/176773)

<div class="topic-metadata">

**Author:** [@jauderho](https://www.ruby-forum.com/u/jauderho)\
**Replies:** 3\
**Last updated:** [October 6, 2009, 10:11am UTC](https://www.ruby-forum.com/t/how-to-add-cache-control-public-to-static-files/176773 "2009-10-06T10:11:24Z")

</div>

Hi, I have nginx set up to serve static content and to set it to maximum expires currently. However, I would also like to set the Cache-Control flag to public so that proxies will know that this is okay to cache. Howe…

---

## [Nginx + proxy\_store + flv/mp4](https://www.ruby-forum.com/t/nginx-proxy-store-flv-mp4/176742)

<div class="topic-metadata">

**Author:** [@benjinx](https://www.ruby-forum.com/u/benjinx)\
**Replies:** 5\
**Last updated:** [October 6, 2009, 12:23am UTC](https://www.ruby-forum.com/t/nginx-proxy-store-flv-mp4/176742 "2009-10-06T00:23:04Z")

</div>

I’m trying to set up sort of an origin/edge config for nginx to stream mp4s and flvs. I’m using proxy\_store to cache flvs/mp4s from the origin on the frontends. I also want to enable seeking in those files using the …

---

## [Fastcgi\_connect\_timeout](https://www.ruby-forum.com/t/fastcgi-connect-timeout/176648)

<div class="topic-metadata">

**Author:** [@Davy\_C](https://www.ruby-forum.com/u/Davy_C)\
**Replies:** 1\
**Last updated:** [October 5, 2009, 5:22pm UTC](https://www.ruby-forum.com/t/fastcgi-connect-timeout/176648 "2009-10-05T17:22:06Z")

</div>

Does anyone what the defaults are for fastcgi\_connect\_timeout and how it works? It seems like at first when one of my upstream backends was down, that it waited 10-11 seconds before trying an alternate, but then afte…

---

## [Accessing backend response using nginx' Perl module](https://www.ruby-forum.com/t/accessing-backend-response-using-nginx-perl-module/176686)

<div class="topic-metadata">

**Author:** [@Srebrenko\_S](https://www.ruby-forum.com/u/Srebrenko_S)\
**Replies:** 3\
**Last updated:** [October 5, 2009, 8:44am UTC](https://www.ruby-forum.com/t/accessing-backend-response-using-nginx-perl-module/176686 "2009-10-05T08:44:33Z")

</div>

Hi, I have a simple reverse proxy setup where a Perl module does some processing on the request and then forwards the request via the proxy module using an internal\_redirect method. I also need to adjust the response…

---

## [Serving Static Files](https://www.ruby-forum.com/t/serving-static-files/169757)

<div class="topic-metadata">

**Author:** [@vanderkerkoff](https://www.ruby-forum.com/u/vanderkerkoff)\
**Replies:** 12\
**Last updated:** [October 5, 2009, 5:17am UTC](https://www.ruby-forum.com/t/serving-static-files/169757 "2009-10-05T05:17:56Z")

</div>

Hello everyone. I’ve been using nginx for a while now but haven’t scratched the surface, just used recommended options. I decided I needed to know more about it, so here I am. In the main http module nginx.conf file …

---

## [Failover for down host slow - taking full proxy\_connect\_timeout](https://www.ruby-forum.com/t/failover-for-down-host-slow-taking-full-proxy-connect-timeout/176683)

<div class="topic-metadata">

**Author:** [@Peter\_Weck](https://www.ruby-forum.com/u/Peter_Weck)\
**Replies:** 0\
**Last updated:** [October 4, 2009, 9:59pm UTC](https://www.ruby-forum.com/t/failover-for-down-host-slow-taking-full-proxy-connect-timeout/176683 "2009-10-04T21:59:31Z")

</div>

I’ve set up nginx as a load balancer (proxy). When one of the upstream hosts goes down such that connections to the host fail immediately, it is taking nginx the full proxy\_connect\_timeout to fail each request that i…

---

## [Sendfile bug](https://www.ruby-forum.com/t/sendfile-bug/176672)

<div class="topic-metadata">

**Author:** [@haze](https://www.ruby-forum.com/u/haze)\
**Replies:** 1\
**Last updated:** [October 4, 2009, 9:42pm UTC](https://www.ruby-forum.com/t/sendfile-bug/176672 "2009-10-04T21:42:32Z")

</div>

We run a site that delivers large files and has many transfers going at the same time and we have noticed nginx slowing down and causing high iowait times. After running a strace we have seen this stat(“/var/www/slave…

---

## [Request rewrite emergency\*](https://www.ruby-forum.com/t/request-rewrite-emergency/176653)

<div class="topic-metadata">

**Author:** [@saiyan](https://www.ruby-forum.com/u/saiyan)\
**Replies:** 5\
**Last updated:** [October 4, 2009, 9:41pm UTC](https://www.ruby-forum.com/t/request-rewrite-emergency/176653 "2009-10-04T21:41:22Z")

</div>

Hello everybody here in NGINX Hello Igor, and others. I need a help regarding rewrite problem Source: RewriteEngine on Some hostings require RewriteBase to be uncommented Example: Your store url is yourcompany.c…

---

## [Nginx, nginx-passenger, and a nested wordpress](https://www.ruby-forum.com/t/nginx-nginx-passenger-and-a-nested-wordpress/176656)

<div class="topic-metadata">

**Author:** [@grantmichaels](https://www.ruby-forum.com/u/grantmichaels)\
**Replies:** 0\
**Last updated:** [October 4, 2009, 3:53am UTC](https://www.ruby-forum.com/t/nginx-nginx-passenger-and-a-nested-wordpress/176656 "2009-10-04T03:53:50Z")

</div>

so, for sinatra (ruby) sites running with nginx-passenger i’m using something basic like: server { listen 80; server\_name .; root /www//public; location ~\* \\.(ico|css|js|gif|jp?g|png)(\\?\[0-9\]+)?$ { expires max; bre…

---

## [Fastcgi\_connect\_timeout](https://www.ruby-forum.com/t/fastcgi-connect-timeout/176649)

<div class="topic-metadata">

**Author:** [@dcampano](https://www.ruby-forum.com/u/dcampano)\
**Replies:** 0\
**Last updated:** [October 3, 2009, 11:33pm UTC](https://www.ruby-forum.com/t/fastcgi-connect-timeout/176649 "2009-10-03T23:33:22Z")

</div>

Does anyone what the defaults are for fastcgi\_connect\_timeout and how it works? It seems like at first when one of my upstream backends was down, that it waited 10-11 seconds before trying an alternate, but then afte…

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

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