# Server

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

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

---

## [ANNOUNCE: nginx 0.6.30 for Windows](https://www.ruby-forum.com/t/announce-nginx-0-6-30-for-windows/136330)

<div class="topic-metadata">

**Author:** [@inspire22](https://www.ruby-forum.com/u/inspire22)\
**Replies:** 0\
**Last updated:** [April 30, 2008, 9:52pm UTC](https://www.ruby-forum.com/t/announce-nginx-0-6-30-for-windows/136330 "2008-04-30T21:52:59Z")

</div>

nginx 0.6.30 for Windows is now available. See the full announcement here: http://www.kevinworthington.com/index.php/2008/04/29/nginx-0630-for-windows/ -or- Download here without reading the announcement: http://www…

---

## [Why no top-level set?](https://www.ruby-forum.com/t/why-no-top-level-set/136284)

<div class="topic-metadata">

**Author:** [@kappa](https://www.ruby-forum.com/u/kappa)\
**Replies:** 0\
**Last updated:** [April 30, 2008, 12:13pm UTC](https://www.ruby-forum.com/t/why-no-top-level-set/136284 "2008-04-30T12:13:22Z")

</div>

For some reason, the set directive is available only within server block. Wouldn’t it be possible to handle set’s also on the top level? Motivation? Well, some use case: set logdir /my/log/dir; error\_log $log\_dir/err…

---

## [Re: Feature request: Run a script when upstream detected down/up](https://www.ruby-forum.com/t/re-feature-request-run-a-script-when-upstream-detected-down-up/136223)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 3\
**Last updated:** [April 30, 2008, 8:34am UTC](https://www.ruby-forum.com/t/re-feature-request-run-a-script-when-upstream-detected-down-up/136223 "2008-04-30T08:34:11Z")

</div>

if (fork() == 0) execl(“/bin/sh”,“/path/to/upstream\_down.sh”,“ID of down upsteam goes here”, NULL); It’s not as easy to do. At a high level, what am I missing / oversimplifying? Perhaps instead, a simpler and …

---

## [Question revarding referers](https://www.ruby-forum.com/t/question-revarding-referers/136146)

<div class="topic-metadata">

**Author:** [@Stefanita\_Rares\_Dum](https://www.ruby-forum.com/u/Stefanita_Rares_Dum)\
**Replies:** 2\
**Last updated:** [April 30, 2008, 8:11am UTC](https://www.ruby-forum.com/t/question-revarding-referers/136146 "2008-04-30T08:11:12Z")

</div>

i have a question here: i have a download website, and i prohibited hotlinking by using the valid\_referer parameter: location ~\* ^.+.(jpg|jpeg|gif|css|png|js|ico|flv|txt|zip|mp3|rar|w3x)$ { if ($invalid\_referer) …

---

## [Confused about proxy\_buffer\_size and proxy\_buffers](https://www.ruby-forum.com/t/confused-about-proxy-buffer-size-and-proxy-buffers/136248)

<div class="topic-metadata">

**Author:** [@pezdude](https://www.ruby-forum.com/u/pezdude)\
**Replies:** 3\
**Last updated:** [April 30, 2008, 7:51am UTC](https://www.ruby-forum.com/t/confused-about-proxy-buffer-size-and-proxy-buffers/136248 "2008-04-30T07:51:15Z")

</div>

Hi, I am trying to tune our nginx frontends (proxying a pack of mongrels) to avoid this type of message 2008/04/30 11:06:50 \[warn\] 35585#0: \*40967931 an upstream response is buffered to a temporary file /opt/local/va…

---

## [Using less RAM](https://www.ruby-forum.com/t/using-less-ram/136252)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 0\
**Last updated:** [April 30, 2008, 4:31am UTC](https://www.ruby-forum.com/t/using-less-ram/136252 "2008-04-30T04:31:45Z")

</div>

in case anybody finds it useful, here’s a link to Hongli’s work on patching the GC so you can save like 30%/mongrel or so \[if you use forked mongrels\]. Might be useful if RAM is your bottleneck. http://izumi.plan99.n…

---

## [Re: Surviving Digg?](https://www.ruby-forum.com/t/re-surviving-digg/136243)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 0\
**Last updated:** [April 30, 2008, 2:15am UTC](https://www.ruby-forum.com/t/re-surviving-digg/136243 "2008-04-30T02:15:30Z")

</div>

Ok, tried that, no notice printed out. What is a good value for worker\_connections? http://wiki.codemongers.com/NginxMainModule#worker\_processes talks about these settings. proxy\_connect\_timeout 90; proxy\_s…

---

## [Re: Surviving Digg?](https://www.ruby-forum.com/t/re-surviving-digg/136228)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 1\
**Last updated:** [April 30, 2008, 1:19am UTC](https://www.ruby-forum.com/t/re-surviving-digg/136228 "2008-04-30T01:19:55Z")

</div>

open() “/var/www/html/images/imagefile.jpg” failed (24: Too many open files) Running ulimit -n showed 1024, so set that to 32768 on all 3 servers. Also raised limit in /etc/security/limits.conf. Congrats on the digg…

---

## [Re: Feature request: Run a script when upstream detected down/up](https://www.ruby-forum.com/t/re-feature-request-run-a-script-when-upstream-detected-down-up/136183)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 2\
**Last updated:** [April 29, 2008, 11:07pm UTC](https://www.ruby-forum.com/t/re-feature-request-run-a-script-when-upstream-detected-down-up/136183 "2008-04-29T23:07:27Z")

</div>

There are no problems at spawing an external process. Simply, Nginx does not directly support this and you will get a lot of NOTICE messages in the log when each process exits (even if it exits with a success status …

---

## [Re: Best way to block access by url and valid referrer?](https://www.ruby-forum.com/t/re-best-way-to-block-access-by-url-and-valid-referrer/136221)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 1\
**Last updated:** [April 29, 2008, 11:06pm UTC](https://www.ruby-forum.com/t/re-best-way-to-block-access-by-url-and-valid-referrer/136221 "2008-04-29T23:06:52Z")

</div>

According to RFC2616: "14.36 Referer The Referer\[sic\] request-header field allows the client to specify, for the If you have control on abc, def… try using a more robust method that a simple Thank you for your conc…

---

## [Continuing issues with limit\_conn](https://www.ruby-forum.com/t/continuing-issues-with-limit-conn/136116)

<div class="topic-metadata">

**Author:** [@Stuart\_McKim](https://www.ruby-forum.com/u/Stuart_McKim)\
**Replies:** 5\
**Last updated:** [April 29, 2008, 9:07pm UTC](https://www.ruby-forum.com/t/continuing-issues-with-limit-conn/136116 "2008-04-29T21:07:35Z")

</div>

I’m still unable to get limit\_conn to work as expected, despite reading as much documentation as I can find, of which there seems to be very little. In the http section of /etc/nginx/nginx.conf I have the two lines l…

---

## [Best way to block access by url and valid referrer?](https://www.ruby-forum.com/t/best-way-to-block-access-by-url-and-valid-referrer/136177)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 1\
**Last updated:** [April 29, 2008, 7:18pm UTC](https://www.ruby-forum.com/t/best-way-to-block-access-by-url-and-valid-referrer/136177 "2008-04-29T19:18:32Z")

</div>

I have a requirement to only allow requests from certain referrers. The trickier part is that the list of valid referrers changes based on what is in the query string. I would like to know the most efficient way to d…

---

## [Nginx-0.6.30](https://www.ruby-forum.com/t/nginx-0-6-30/136162)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 0\
**Last updated:** [April 29, 2008, 2:51pm UTC](https://www.ruby-forum.com/t/nginx-0-6-30/136162 "2008-04-29T14:51:58Z")

</div>

Changes with nginx 0.6.30 29 Apr 2008 \*) Change: now if an "include" directive pattern does not match any file, then nginx does not issue an error. \*) Feature: now the time in…

---

## [Nginx as a reverse proxy dor several internal services and ssl-endpoint](https://www.ruby-forum.com/t/nginx-as-a-reverse-proxy-dor-several-internal-services-and-ssl-endpoint/135980)

<div class="topic-metadata">

**Author:** [@Norbert\_Klamann](https://www.ruby-forum.com/u/Norbert_Klamann)\
**Replies:** 1\
**Last updated:** [April 29, 2008, 11:11am UTC](https://www.ruby-forum.com/t/nginx-as-a-reverse-proxy-dor-several-internal-services-and-ssl-endpoint/135980 "2008-04-29T11:11:23Z")

</div>

Hello list, I want to use nginx as a ssl-Endponit and semi-public face to some internal wenservicese like trac, nagios and squirrelmail. These services run on other (virtual) boxes, nginx shall live in its own (virt…

---

## [Re: Feature request: Run a script when upstream detected down/up](https://www.ruby-forum.com/t/re-feature-request-run-a-script-when-upstream-detected-down-up/136118)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 1\
**Last updated:** [April 29, 2008, 10:34am UTC](https://www.ruby-forum.com/t/re-feature-request-run-a-script-when-upstream-detected-down-up/136118 "2008-04-29T10:34:33Z")

</div>

Except that Nginx is asynchronous, not threaded. This means that when your script is called, Nginx will now be delayed while the script is launched (and what if the script fails?). Nginx will just have to wait u…

---

## [Re: Feature request: Run a script when upstream detected down/up](https://www.ruby-forum.com/t/re-feature-request-run-a-script-when-upstream-detected-down-up/136115)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 1\
**Last updated:** [April 29, 2008, 10:29am UTC](https://www.ruby-forum.com/t/re-feature-request-run-a-script-when-upstream-detected-down-up/136115 "2008-04-29T10:29:13Z")

</div>

Well, it might be, depending on the timing of the heartbeat and whether/when a particular request causes Nginx to try that backend. Right. That is my point. “might” doesn’t cut it for our high end availability needs…

---

## [Stat() permission denied](https://www.ruby-forum.com/t/stat-permission-denied/135939)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 5\
**Last updated:** [April 29, 2008, 9:49am UTC](https://www.ruby-forum.com/t/stat-permission-denied/135939 "2008-04-29T09:49:36Z")

</div>

I get a stat() permission denied on certain directories (it used to be another one, now it is this one) often. The directory exists, is not huge by any means, and the website loaded without an issue. 2008/04/26 08:05:…

---

## [Leaking weirdness](https://www.ruby-forum.com/t/leaking-weirdness/136098)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 3\
**Last updated:** [April 29, 2008, 2:03am UTC](https://www.ruby-forum.com/t/leaking-weirdness/136098 "2008-04-29T02:03:56Z")

</div>

Previously posted on ruby talk. Response…silence :slight\_smile: … Perhaps someone out there can help give me a clue about the following situation: My mongrel processes seemed to be leaking. As an example of this, i…

---

## [Re: Feature request: Run a script when upstream detected down/up](https://www.ruby-forum.com/t/re-feature-request-run-a-script-when-upstream-detected-down-up/136105)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 2\
**Last updated:** [April 28, 2008, 11:47pm UTC](https://www.ruby-forum.com/t/re-feature-request-run-a-script-when-upstream-detected-down-up/136105 "2008-04-28T23:47:12Z")

</div>

This sounds like a job for a heartbeat monitor, not a web server. For our needs this would be best handled by nginx. Here’s why… Nginx is the first one to know that it considers a server down and has stopped routin…

---

## [Re: Confused about X-Forwarded-For](https://www.ruby-forum.com/t/re-confused-about-x-forwarded-for/136058)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 0\
**Last updated:** [April 28, 2008, 3:27pm UTC](https://www.ruby-forum.com/t/re-confused-about-x-forwarded-for/136058 "2008-04-28T15:27:20Z")

</div>

I am using nginx as a load balancing proxy to pass requests using proxy\_pass to upstream servers running my web app. These requests may or may not come in with X-Forwarded-For, depending on whether the visitor is usin…

---

## [Worker process and memory leak?](https://www.ruby-forum.com/t/worker-process-and-memory-leak/135357)

<div class="topic-metadata">

**Author:** [@vchav](https://www.ruby-forum.com/u/vchav)\
**Replies:** 8\
**Last updated:** [April 28, 2008, 10:33am UTC](https://www.ruby-forum.com/t/worker-process-and-memory-leak/135357 "2008-04-28T10:33:12Z")

</div>

Hi all, For testing, I compile nginx with following options : ./configure --with-http\_ssl\_module --without-http\_charset\_module –without-http\_ ssi\_module --without-http\_auth\_basic\_module –without-http\_autoindex\_modul…

---

## [Nginx 0.6.29 for Windows](https://www.ruby-forum.com/t/nginx-0-6-29-for-windows/135089)

<div class="topic-metadata">

**Author:** [@inspire22](https://www.ruby-forum.com/u/inspire22)\
**Replies:** 7\
**Last updated:** [April 28, 2008, 7:41am UTC](https://www.ruby-forum.com/t/nginx-0-6-29-for-windows/135089 "2008-04-28T07:41:24Z")

</div>

Hello, I built a proof of concept version of nginx 0.6.29 for win32 if anyone is interested: http://www.kevinworthington.com/nginx/win32/ I tested it on Windows XP Professional and Windows 2000 Professional. It may …

---

## [Relative links in trac](https://www.ruby-forum.com/t/relative-links-in-trac/119001)

<div class="topic-metadata">

**Author:** [@Oinopion](https://www.ruby-forum.com/u/Oinopion)\
**Replies:** 1\
**Last updated:** [April 27, 2008, 2:39pm UTC](https://www.ruby-forum.com/t/relative-links-in-trac/119001 "2008-04-27T14:39:35Z")

</div>

Hello! I’d like to use nginx for running small project site with trac. I have VPS with apache on 80 and nginx on 8080 with an address hauru.eu, the project site (virtual host) skrypt.hauru.eu:8080 and I’d like to hav…

---

## [Need Help Configuring Nginx to run Wordpress](https://www.ruby-forum.com/t/need-help-configuring-nginx-to-run-wordpress/135655)

<div class="topic-metadata">

**Author:** [@thuss](https://www.ruby-forum.com/u/thuss)\
**Replies:** 35\
**Last updated:** [April 27, 2008, 9:37am UTC](https://www.ruby-forum.com/t/need-help-configuring-nginx-to-run-wordpress/135655 "2008-04-27T09:37:07Z")

</div>

I run Wordpress 2.5 under Apache 2.2 on a RedHat 5 ES server with no problems, and use Nginx to serve images, but I can’t seem to get the right configuration to run Wordpress under Nginx. I have a script that runs the…

---

## [Confused about X-Forwarded-For](https://www.ruby-forum.com/t/confused-about-x-forwarded-for/135965)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 0\
**Last updated:** [April 27, 2008, 6:18am UTC](https://www.ruby-forum.com/t/confused-about-x-forwarded-for/135965 "2008-04-27T06:18:32Z")

</div>

I am using nginx as a load balancing proxy to pass requests using proxy\_pass to upstream servers running my web app. These requests may or may not come in with X-Forwarded-For, depending on whether the visitor is usin…

---

## [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/135891)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 2\
**Last updated:** [April 26, 2008, 8:00am UTC](https://www.ruby-forum.com/t/re-how-to-get-nginx-to-see-higher-limit-for-file-descriptors/135891 "2008-04-26T08:00:21Z")

</div>

No, it’s the number of file descriptors allowed for a process; I cannot imagine 4096 workers (and the swap size!) :wink: Correct. That is what I meant. I am trying to set the environment so that there are plenty of …

---

## [How to redirect back to domain name when proxying](https://www.ruby-forum.com/t/how-to-redirect-back-to-domain-name-when-proxying/135892)

<div class="topic-metadata">

**Author:** [@Mike\_Crawford](https://www.ruby-forum.com/u/Mike_Crawford)\
**Replies:** 2\
**Last updated:** [April 26, 2008, 7:59am UTC](https://www.ruby-forum.com/t/how-to-redirect-back-to-domain-name-when-proxying/135892 "2008-04-26T07:59:46Z")

</div>

Hi, I’m using proxy\_pass to tomcat for one of my webapps. The problem is that when the tomcat app calls a single-sign-on application (CAS), CAS redirects back to the tomcat application at ‘http://\<ip\_addr\>:\<tomcat\_po…

---

## [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/135911)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 0\
**Last updated:** [April 26, 2008, 6:07am UTC](https://www.ruby-forum.com/t/re-how-to-get-nginx-to-see-higher-limit-for-file-descriptors/135911 "2008-04-26T06:07:17Z")

</div>

You have 2 solutions: execute unlimit -n 65536 in the init.d script, before starting nginx if you have PAM installed, check /etc/security/limits.conf (this is the location on Linux Debian): www-data hard nofile 6…

---

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

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 3\
**Last updated:** [April 25, 2008, 11:26pm UTC](https://www.ruby-forum.com/t/how-to-get-nginx-to-see-higher-limit-for-file-descriptors/135865 "2008-04-25T23:26:44Z")

</div>

I am currently receiving this warning when nginx is started: \[warn\] 902#0: 4096 worker\_connections are more than open file resource limit: 1024 Here is some quick background: I am running on Fedora 8 core 2.6.x. Ori…

---

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

<div class="topic-metadata">

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

</div>

Is it possible to have the post\_action be load balanced across a set of backend servers (like the way proxy\_pass works) or will it only work with one specific server? If that later is the case, You may specify a…

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

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