# Server

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

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

---

## [Re: How to get nginx to see higher limit for file descriptors?](https://www.ruby-forum.com/t/re-how-to-get-nginx-to-see-higher-limit-for-file-descriptors/135878)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 1\
**Last updated:** [April 25, 2008, 9:18pm UTC](https://www.ruby-forum.com/t/re-how-to-get-nginx-to-see-higher-limit-for-file-descriptors/135878 "2008-04-25T21:18:53Z")

</div>

From this warning it seems that you are telling Nginx to use 4096 worker processes!! Are you sure? Yes indeed. This is intentional. Here is the relevant section: events { worker\_connections 4096; } From a shell,…

---

## [Buffer chains optimisation](https://www.ruby-forum.com/t/buffer-chains-optimisation/135862)

<div class="topic-metadata">

**Author:** [@vchav](https://www.ruby-forum.com/u/vchav)\
**Replies:** 2\
**Last updated:** [April 25, 2008, 8:40pm UTC](https://www.ruby-forum.com/t/buffer-chains-optimisation/135862 "2008-04-25T20:40:01Z")

</div>

Hi, I read the guide about the Nginx module development and I don’t find any description about how buffer chains are processed. For example, I send a file line by line and I would like to know if it’s optimized to cre…

---

## [Re: Question on Empty GIF module](https://www.ruby-forum.com/t/re-question-on-empty-gif-module/135845)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 1\
**Last updated:** [April 25, 2008, 7:51pm UTC](https://www.ruby-forum.com/t/re-question-on-empty-gif-module/135845 "2008-04-25T19:51:18Z")

</div>

You mean “posted by Denis”? Yes, sorry about that. In sort: post\_action registers callback that will be called after request will be processed by usual handlers (in this case - by empty\_gif module). It evaluates …

---

## [Go ahead and use Git](https://www.ruby-forum.com/t/go-ahead-and-use-git/135851)

<div class="topic-metadata">

**Author:** [@Zed\_ASShaw](https://www.ruby-forum.com/u/Zed_ASShaw)\
**Replies:** 1\
**Last updated:** [April 25, 2008, 6:28pm UTC](https://www.ruby-forum.com/t/go-ahead-and-use-git/135851 "2008-04-25T18:28:41Z")

</div>

Hey, I heard a rumor that there’s some FUD going around I won’t let people on the Mongrel project use Git. Subversion blows, so go ahead and use Git if it makes people happy. I actually never said you can’t use Git.…

---

## [Fastcgi, simply wrong](https://www.ruby-forum.com/t/fastcgi-simply-wrong/135809)

<div class="topic-metadata">

**Author:** [@Alexandre\_Girao](https://www.ruby-forum.com/u/Alexandre_Girao)\
**Replies:** 11\
**Last updated:** [April 25, 2008, 3:13pm UTC](https://www.ruby-forum.com/t/fastcgi-simply-wrong/135809 "2008-04-25T15:13:06Z")

</div>

Hi folks, i’ve just dedicated some hours upon the nginx behavior/source code (version 0.6.29, but also happens to 0.5.35) towards fastcgi protocol and discovered that the requestId is fixed, it’s simple always equal …

---

## [Something you might be interested in](https://www.ruby-forum.com/t/something-you-might-be-interested-in/135839)

<div class="topic-metadata">

**Author:** [@Kingsley\_F](https://www.ruby-forum.com/u/Kingsley_F)\
**Replies:** 0\
**Last updated:** [April 25, 2008, 3:09pm UTC](https://www.ruby-forum.com/t/something-you-might-be-interested-in/135839 "2008-04-25T15:09:36Z")

</div>

Im not sure if this is the most you have seen, however i did the traffic in the image with 6 nginx processes this week on a sun v20z and apple xserve. I would have done more but I ran out of cpu for soft interrupts …

---

## [Nginx performance/preference - FreeBSD 7 or Linux 2.6.x (both 64-bit?)](https://www.ruby-forum.com/t/nginx-performance-preference-freebsd-7-or-linux-2-6-x-both-64-bit/135827)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 1\
**Last updated:** [April 25, 2008, 2:30pm UTC](https://www.ruby-forum.com/t/nginx-performance-preference-freebsd-7-or-linux-2-6-x-both-64-bit/135827 "2008-04-25T14:30:37Z")

</div>

Currently I have nginx running PHP/fastcgi and normal static content on a quad-core xeon 3220 w/ 4 gig ram. I am looking at moving this to a dual-core xeon 3060 with 2 gig ram. Would FreeBSD 7 (or 6, I suppose) be bet…

---

## [Thread support?](https://www.ruby-forum.com/t/thread-support/135685)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 2\
**Last updated:** [April 25, 2008, 1:49pm UTC](https://www.ruby-forum.com/t/thread-support/135685 "2008-04-25T13:49:42Z")

</div>

When I used ./configure in making nginx it said in the summary that thread support was not enabled. Is this normal? Would I get better performance by enabling it? If so, how do I tell it to use threads? Thanks! \_\_…

---

## [Nginx in a chroot](https://www.ruby-forum.com/t/nginx-in-a-chroot/135835)

<div class="topic-metadata">

**Author:** [@Renaud\_Allard](https://www.ruby-forum.com/u/Renaud_Allard)\
**Replies:** 0\
**Last updated:** [April 25, 2008, 1:43pm UTC](https://www.ruby-forum.com/t/nginx-in-a-chroot/135835 "2008-04-25T13:43:12Z")

</div>

Hello, Is this a good idea or is there a better way? http://www.llorien.org/OpenBSD/chroot\_nginx.html

---

## [Re: Question on Empty GIF module](https://www.ruby-forum.com/t/re-question-on-empty-gif-module/135759)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 1\
**Last updated:** [April 25, 2008, 10:56am UTC](https://www.ruby-forum.com/t/re-question-on-empty-gif-module/135759 "2008-04-25T10:56:21Z")

</div>

IMHO, post\_action will be much better here. Something like: location / { empty\_gif; post\_action /post; } location = /post { internal; proxy\_pass http://my\_upstream\_servers; } Thank you Denis and Maxim! Maxiu…

---

## [Re: How are downed upstream servers detected as alive again?](https://www.ruby-forum.com/t/re-how-are-downed-upstream-servers-detected-as-alive-again/135776)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 1\
**Last updated:** [April 25, 2008, 3:32am UTC](https://www.ruby-forum.com/t/re-how-are-downed-upstream-servers-detected-as-alive-again/135776 "2008-04-25T03:32:43Z")

</div>

This also explains, in the writing about fail\_timeout, how long nginx considers a failed upstream server down for. That you for the clarification about fail\_timeout. Based on your explanation, and some additional t…

---

## [Date not changing](https://www.ruby-forum.com/t/date-not-changing/135705)

<div class="topic-metadata">

**Author:** [@mattias](https://www.ruby-forum.com/u/mattias)\
**Replies:** 1\
**Last updated:** [April 24, 2008, 3:05pm UTC](https://www.ruby-forum.com/t/date-not-changing/135705 "2008-04-24T15:05:39Z")

</div>

I run Apache/2.2.8 (FreeBSD), mongrel\_cluster (1.0.5) and mongrel (1.1.3) The app I have issues with is a Rails 1.2.6 app. In one controller I have a before filter that sets the month, year variables to the current mo…

---

## [Redirecting any URI to a unique one](https://www.ruby-forum.com/t/redirecting-any-uri-to-a-unique-one/135711)

<div class="topic-metadata">

**Author:** [@thomas](https://www.ruby-forum.com/u/thomas)\
**Replies:** 3\
**Last updated:** [April 24, 2008, 2:54pm UTC](https://www.ruby-forum.com/t/redirecting-any-uri-to-a-unique-one/135711 "2008-04-24T14:54:51Z")

</div>

Hi, I have a website, let’s call it www.mysite.com On this website, I have a servlet running on tomcat at: http://127.0.0.1:8080/servlet/service1 From the outside world I want people to access that servlet using the …

---

## [Re: How are downed upstream servers detected as alive again?](https://www.ruby-forum.com/t/re-how-are-downed-upstream-servers-detected-as-alive-again/135683)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 2\
**Last updated:** [April 24, 2008, 12:55pm UTC](https://www.ruby-forum.com/t/re-how-are-downed-upstream-servers-detected-as-alive-again/135683 "2008-04-24T12:55:56Z")

</div>

This also explains, in the writing about fail\_timeout, how long nginx considers a failed upstream server down for.Thank you for the clarification. Wow, I did not realize that is what the fail\_timeout was for. I had see…

---

## [Quick dispatch from nginx -\> php/whatever cgi -\> mogileFS?](https://www.ruby-forum.com/t/quick-dispatch-from-nginx-php-whatever-cgi-mogilefs/135703)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 0\
**Last updated:** [April 24, 2008, 11:22am UTC](https://www.ruby-forum.com/t/quick-dispatch-from-nginx-php-whatever-cgi-mogilefs/135703 "2008-04-24T11:22:29Z")

</div>

I think that is what is going on here… but it seems to be missing a step. Has anyone else tried this? Basically using PHP (or whatever language) very quickly to do the lookup of the domain/key (the two things you need…

---

## [Question on Empty GIF module](https://www.ruby-forum.com/t/question-on-empty-gif-module/135684)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 2\
**Last updated:** [April 24, 2008, 10:01am UTC](https://www.ruby-forum.com/t/question-on-empty-gif-module/135684 "2008-04-24T10:01:41Z")

</div>

Is it possible to use the empty GIF module to return the 1x1 pixel to the client, BUT then to also pass the request along to an upsteam server so that the query string data on the request can be processed? Here is the…

---

## [Tricky Rewrite rules](https://www.ruby-forum.com/t/tricky-rewrite-rules/120568)

<div class="topic-metadata">

**Author:** [@cicloid](https://www.ruby-forum.com/u/cicloid)\
**Replies:** 19\
**Last updated:** [April 24, 2008, 9:33am UTC](https://www.ruby-forum.com/t/tricky-rewrite-rules/120568 "2008-04-24T09:33:49Z")

</div>

Hi, I was in need of some advice. I wanted to use a new cache plugin for Wordpress, that writes static files. But I can’t setup the rules. The original .htaccess is something like this: RewriteEngine On RewriteBase / …

---

## [Quad-core vs. dual-core](https://www.ruby-forum.com/t/quad-core-vs-dual-core/135691)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 0\
**Last updated:** [April 24, 2008, 8:39am UTC](https://www.ruby-forum.com/t/quad-core-vs-dual-core/135691 "2008-04-24T08:39:30Z")

</div>

Will the following differ much with nginx for an upstream webserver (running PHP and fastcgi) and accessing files over NFS? Quad-core Xeon 3220, 2.4ghz, 2x4MB vs. Dual-core Xeon 3060, 2.4ghz, 1x4MB Both with 4GB RAM…

---

## [Latest logging params?](https://www.ruby-forum.com/t/latest-logging-params/135686)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 0\
**Last updated:** [April 24, 2008, 6:49am UTC](https://www.ruby-forum.com/t/latest-logging-params/135686 "2008-04-24T06:49:42Z")

</div>

What are all the various params available for logging? I was working off of http://wiki.codemongers.com/NginxHttpLogModule but apparently that page is out of date. It took me a while therefore to discover the $upstre…

---

## [How are downed upstream servers detected as alive again?](https://www.ruby-forum.com/t/how-are-downed-upstream-servers-detected-as-alive-again/135659)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 1\
**Last updated:** [April 24, 2008, 1:08am UTC](https://www.ruby-forum.com/t/how-are-downed-upstream-servers-detected-as-alive-again/135659 "2008-04-24T01:08:07Z")

</div>

Hi everyone! I am new to nginx (switching over from using Pound) and absolutely LOVE it! What a fantastic solution. I am using it primarily as a reverse proxy for load balancing across my Amazon EC2 instances. I’ve …

---

## [If generic statement](https://www.ruby-forum.com/t/if-generic-statement/135614)

<div class="topic-metadata">

**Author:** [@Renaud\_Allard](https://www.ruby-forum.com/u/Renaud_Allard)\
**Replies:** 1\
**Last updated:** [April 23, 2008, 10:00pm UTC](https://www.ruby-forum.com/t/if-generic-statement/135614 "2008-04-23T22:00:14Z")

</div>

Hello, I would like to make some statements such as: if ($query\_string ~ “someregex”) { return 403; } To implement some mod\_security like features for proxied web sites. But I see I can only use the “if” statement …

---

## [Possible solution for broken processor affinity on Linux](https://www.ruby-forum.com/t/possible-solution-for-broken-processor-affinity-on-linux/135643)

<div class="topic-metadata">

**Author:** [@cliffwiggs](https://www.ruby-forum.com/u/cliffwiggs)\
**Replies:** 0\
**Last updated:** [April 23, 2008, 8:48pm UTC](https://www.ruby-forum.com/t/possible-solution-for-broken-processor-affinity-on-linux/135643 "2008-04-23T20:48:20Z")

</div>

Last I checked, processor affinity is broken on Linux (or at least certain versions of kernel, glibc, etc). I don’t know that this has been fixed in Nginx, so I thought I’d point out this library that could perhaps b…

---

## [Nginx cross-compilation?](https://www.ruby-forum.com/t/nginx-cross-compilation/125978)

<div class="topic-metadata">

**Author:** [@zenzei](https://www.ruby-forum.com/u/zenzei)\
**Replies:** 4\
**Last updated:** [April 23, 2008, 8:25pm UTC](https://www.ruby-forum.com/t/nginx-cross-compilation/125978 "2008-04-23T20:25:06Z")

</div>

Hi, is it possible to cross-compile Nginx ? The custom configure system looks great but it seems like it does introspection on the running system. Is it possible to feed it with custom results ?

---

## [Upstream configuration woes, source bug?](https://www.ruby-forum.com/t/upstream-configuration-woes-source-bug/135619)

<div class="topic-metadata">

**Author:** [@Bryon\_Roche](https://www.ruby-forum.com/u/Bryon_Roche)\
**Replies:** 0\
**Last updated:** [April 23, 2008, 5:40pm UTC](https://www.ruby-forum.com/t/upstream-configuration-woes-source-bug/135619 "2008-04-23T17:40:42Z")

</div>

when ngx\_http\_fastcgi\_module (and memcached and proxy) call ngx\_http\_upstream\_add(), they set the 3rd arg, the flags argument is set to 0. this causes specifying any optional args in upstream server directives to fa…

---

## ["index" not working properly?](https://www.ruby-forum.com/t/index-not-working-properly/135439)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 1\
**Last updated:** [April 22, 2008, 8:16am UTC](https://www.ruby-forum.com/t/index-not-working-properly/135439 "2008-04-22T08:16:19Z")

</div>

Why is this not finding index.html? server { listen 80; server\_name domain.com; index index.htm index.php index.html; root /home/mike/web/domain.com/; if (!-e $request\_filename) { rewrite ^(.+)$ /index.htm last; …

---

## [Lots of buffering - is this normal?](https://www.ruby-forum.com/t/lots-of-buffering-is-this-normal/135382)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 3\
**Last updated:** [April 22, 2008, 7:18am UTC](https://www.ruby-forum.com/t/lots-of-buffering-is-this-normal/135382 "2008-04-22T07:18:43Z")

</div>

Should I be worried that it buffers even on smaller requests? 2008/04/21 09:16:33 \[warn\] 16705#0: \*1111856 an upstream response is buffered to a temporary file /var/lib/nginx/fastcgi/4/00/0000000004 while reading upst…

---

## [Which is better?](https://www.ruby-forum.com/t/which-is-better/135426)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 3\
**Last updated:** [April 22, 2008, 7:16am UTC](https://www.ruby-forum.com/t/which-is-better/135426 "2008-04-22T07:16:57Z")

</div>

Is one better than the other? combining www. and non-www, and using a conditional: server { listen 80; server\_name michaelshadle.com www.michaelshadle.com; … index, root, all that stuff… if ($http\_host ~ "^www.(.\*)…

---

## [Static file benchmarks](https://www.ruby-forum.com/t/static-file-benchmarks/135175)

<div class="topic-metadata">

**Author:** [@Cocoa\_G](https://www.ruby-forum.com/u/Cocoa_G)\
**Replies:** 12\
**Last updated:** [April 22, 2008, 1:26am UTC](https://www.ruby-forum.com/t/static-file-benchmarks/135175 "2008-04-22T01:26:24Z")

</div>

I’ve seen places online casually mention that nginx can server static files at 13k requests/sec: http://www.vbulletin.com/forum/showpost.php?s=bc85853b9f0f48462767c44081cf7057&p=1474904&postcount=1 http://brainspl.at/…

---

## [Trying to figure out why I get some timeouts still](https://www.ruby-forum.com/t/trying-to-figure-out-why-i-get-some-timeouts-still/135269)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 6\
**Last updated:** [April 20, 2008, 8:07pm UTC](https://www.ruby-forum.com/t/trying-to-figure-out-why-i-get-some-timeouts-still/135269 "2008-04-20T20:07:50Z")

</div>

These machines are on their own VLAN (just HTTP and MySQL traffic) It’s all gigabit. However, I get some timeouts still. 2008/04/20 02:49:16 \[error\] 21638#0: \*55619 upstream timed out (110: Connection timed out) while…

---

## ["Hacking" Nginx events second part](https://www.ruby-forum.com/t/hacking-nginx-events-second-part/135290)

<div class="topic-metadata">

**Author:** [@FranSSSSois\_Battail](https://www.ruby-forum.com/u/FranSSSSois_Battail)\
**Replies:** 0\
**Last updated:** [April 20, 2008, 6:12pm UTC](https://www.ruby-forum.com/t/hacking-nginx-events-second-part/135290 "2008-04-20T18:12:44Z")

</div>

Just a followup to my previous thread, but I think it can interest some developpers. Nginx is great! I’ve tried before to “hack” Lighttpd, but it was a pain in the a\*s. It takes me some times to enter Nginx but I don’…

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

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