# Server

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

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

---

## [Strange php-fpm problem](https://www.ruby-forum.com/t/strange-php-fpm-problem/217839)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 14, 2012, 4:15pm UTC](https://www.ruby-forum.com/t/strange-php-fpm-problem/217839 "2012-03-14T16:15:19Z")

</div>

Hi folks Not strictly an Nginx issue, but got some great advice on php-fpm here before so though I’d trade on your generosity… ISSUE OVERVIEW php-fpm is running fine on Ubuntu 12 I stupidly configure xdebug to r…

---

## [Upstream response is buffered to a temporary file](https://www.ruby-forum.com/t/upstream-response-is-buffered-to-a-temporary-file/217793)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [March 14, 2012, 3:57pm UTC](https://www.ruby-forum.com/t/upstream-response-is-buffered-to-a-temporary-file/217793 "2012-03-14T15:57:12Z")

</div>

I installed nginx with the defaults. I’m using it as a reverse proxy, but not caching. However, I keep getting a lot of entries in the log file saying that an “upstream response is buffered to a temporary file”. Is …

---

## [Nginx recreating default configuration files](https://www.ruby-forum.com/t/nginx-recreating-default-configuration-files/217800)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [March 14, 2012, 1:50pm UTC](https://www.ruby-forum.com/t/nginx-recreating-default-configuration-files/217800 "2012-03-14T13:50:16Z")

</div>

I’m not sure how or why this happened, but nginx recreating the default configuration files in the conf.d directory. This caused it to attempt to bind to all interfaces on my server. Is there a way to prevent this f…

---

## [Rebuilding Nginx](https://www.ruby-forum.com/t/rebuilding-nginx/217815)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [March 14, 2012, 7:49am UTC](https://www.ruby-forum.com/t/rebuilding-nginx/217815 "2012-03-14T07:49:32Z")

</div>

I want to add a module to my nginx build. The only problem is that I don’t know where the source files are located at. How do I find them, and then how to I rebuild with of my modules, plus the new one?

---

## [Images not loading sometimes with NGINX as RP](https://www.ruby-forum.com/t/images-not-loading-sometimes-with-nginx-as-rp/217790)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [March 13, 2012, 2:05pm UTC](https://www.ruby-forum.com/t/images-not-loading-sometimes-with-nginx-as-rp/217790 "2012-03-13T14:05:12Z")

</div>

Hello NGINX users and devs, it’s not the first time now, that I have the problem that some images are just not loading sometimes (only after a few refreshes, gif images in this case) with NGINX as reverse proxy. I hav…

---

## [Nginx Stats Read - Write difference](https://www.ruby-forum.com/t/nginx-stats-read-write-difference/217787)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 13, 2012, 10:14am UTC](https://www.ruby-forum.com/t/nginx-stats-read-write-difference/217787 "2012-03-13T10:14:18Z")

</div>

Hi, we are currently looking for a bottleneck in our application stack. We use Nginx as a reverse proxy which dispatches requests to an asynchronous backend (Twisted Python). When looking at the stub\_stats output we …

---

## [Cannot log a cookie with a dash in the name](https://www.ruby-forum.com/t/cannot-log-a-cookie-with-a-dash-in-the-name/217774)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [March 13, 2012, 12:12am UTC](https://www.ruby-forum.com/t/cannot-log-a-cookie-with-a-dash-in-the-name/217774 "2012-03-13T00:12:06Z")

</div>

I am trying to log cookies but they have a dash in the name as such: "Member-v1.0=$cookie\_Member-v1.0" My logs come through as: Member-v1.0=--v1.0 Is there a work around? I’ve tried wrapping the name in curly bracke…

---

## [Upstream keepalive - call for testing](https://www.ruby-forum.com/t/upstream-keepalive-call-for-testing/210170)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 73\
**Last updated:** [March 12, 2012, 7:00pm UTC](https://www.ruby-forum.com/t/upstream-keepalive-call-for-testing/210170 "2012-03-12T19:00:08Z")

</div>

Hello! JFYI: Last week I posted patch to nginx-devel@ which adds keepalive support to various backends (as with upstream keepalive module), including fastcgi and http backends (this in turn means nginx now able to t…

---

## [Nginx status active connections](https://www.ruby-forum.com/t/nginx-status-active-connections/217684)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [March 12, 2012, 4:08pm UTC](https://www.ruby-forum.com/t/nginx-status-active-connections/217684 "2012-03-12T16:08:24Z")

</div>

Hi, We do have a few high load web servers behind two load balancers running \* nginx/1.0.0\* I upgraded two of them to nginx/1.0.12 all servers are running well despite the version of nginx However I’ve noticed that…

---

## [Two type of rate limiting for based on IP address](https://www.ruby-forum.com/t/two-type-of-rate-limiting-for-based-on-ip-address/217764)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [March 12, 2012, 3:47pm UTC](https://www.ruby-forum.com/t/two-type-of-rate-limiting-for-based-on-ip-address/217764 "2012-03-12T15:47:10Z")

</div>

Hi all, How can I maintain two rate limit strategies?One for spiders and one for regular users? I can get the IP address list of spiders from http://www.iplists.com/ . Can I separate it by geo? Have people attempte…

---

## [A short announce](https://www.ruby-forum.com/t/a-short-announce/217654)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 12, 2012, 3:15pm UTC](https://www.ruby-forum.com/t/a-short-announce/217654 "2012-03-12T15:15:20Z")

</div>

We’ve made an alphabetical index of nginx directives available at Alphabetical index of directives And if you’d like to go straight to the description of a particular directive, here’s a short way: Module ngx\_http\_pr…

---

## [The problem about main thread and worker thread processing the same event](https://www.ruby-forum.com/t/the-problem-about-main-thread-and-worker-thread-processing-the-same-event/217765)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 12, 2012, 11:27am UTC](https://www.ruby-forum.com/t/the-problem-about-main-thread-and-worker-thread-processing-the-same-event/217765 "2012-03-12T11:27:05Z")

</div>

In the case of work process is configured to support multi-threading in the following scene, there is an event at the same time will be handled by the main thread and worker thread. step1: in ngx\_process\_events\_and\_ti…

---

## [About FIN\_WAIT2 status](https://www.ruby-forum.com/t/about-fin-wait2-status/217762)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 12, 2012, 4:03am UTC](https://www.ruby-forum.com/t/about-fin-wait2-status/217762 "2012-03-12T04:03:22Z")

</div>

Hi all, I used the nginx as reverse proxy to forward requests,and i found nginx soon get into FIN\_WAIT2 status while the client was keeping send requests.How to delay the time to get into FIN\_WAIT2 or totally avoid i…

---

## [Access\_log and error\_log ownership](https://www.ruby-forum.com/t/access-log-and-error-log-ownership/217753)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [March 11, 2012, 6:04pm UTC](https://www.ruby-forum.com/t/access-log-and-error-log-ownership/217753 "2012-03-11T18:04:33Z")

</div>

Hello, I noticed the following behavior. stop nginx (/etc/init.d/nginx stop on a debian box) remove all logs in /var/log/nginx/ start nginx now /var/log/nginx/access.log and /var/log/nginx/error.log are owned by roo…

---

## [Vhost error\_log ignored with passenger](https://www.ruby-forum.com/t/vhost-error-log-ignored-with-passenger/217487)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [March 11, 2012, 5:33pm UTC](https://www.ruby-forum.com/t/vhost-error-log-ignored-with-passenger/217487 "2012-03-11T17:33:59Z")

</div>

I’m using passenger and seeing that stdout & stderr are going to nginx’s default error log, rather than what’s specified in the server { error\_log … } directive. Is this a known bug in nginx or passenger? server { …

---

## [Ssl problems](https://www.ruby-forum.com/t/ssl-problems/217751)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [March 11, 2012, 1:43pm UTC](https://www.ruby-forum.com/t/ssl-problems/217751 "2012-03-11T13:43:28Z")

</div>

Hi List I inherited the following setup: nginx reverse caching proxy load balancing to two real servers. I am trying to get SSL working. Here is my config: ++++++++++++++++++++++++++++++++++++++++++++ upstream …

---

## [Difficulty configuring virtual host](https://www.ruby-forum.com/t/difficulty-configuring-virtual-host/217741)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [March 11, 2012, 2:33am UTC](https://www.ruby-forum.com/t/difficulty-configuring-virtual-host/217741 "2012-03-11T02:33:46Z")

</div>

good day all I want to configure my virtual hosts based on the srcip of the client, so basically the ip of the connecting client determines what document root to set. Any ideas how this can be accomplished? – Thank y…

---

## [Question about nested locations / PHP](https://www.ruby-forum.com/t/question-about-nested-locations-php/217723)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [March 10, 2012, 10:16pm UTC](https://www.ruby-forum.com/t/question-about-nested-locations-php/217723 "2012-03-10T22:16:27Z")

</div>

Not sure if this is the right place to post this; apologies in advance if it is! I’m having a bit of trouble with nested locations and PHP. I have a setup where I want all PHP files to go through fastcgi, and have an …

---

## [How to defy this url in nginx.conf](https://www.ruby-forum.com/t/how-to-defy-this-url-in-nginx-conf/217719)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [March 10, 2012, 6:49am UTC](https://www.ruby-forum.com/t/how-to-defy-this-url-in-nginx-conf/217719 "2012-03-10T06:49:05Z")

</div>

My server can’t be run normal now,when I check the access.log I see there are lot of connections request my site url : /iclk/?zoneid=15&uid=1000 . I want to defy this url in nginx.conf. I just write the below code in …

---

## [Content-Length compared to actual size before caching](https://www.ruby-forum.com/t/content-length-compared-to-actual-size-before-caching/217726)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 10, 2012, 1:15am UTC](https://www.ruby-forum.com/t/content-length-compared-to-actual-size-before-caching/217726 "2012-03-10T01:15:15Z")

</div>

If my upstream goes away I get an error upstream prematurely closed connection while reading response header from upstream or recv() failed (104: Connection reset by peer) while reading response header from upstream …

---

## [Disabling file resuming with X-Accel / Removing headers](https://www.ruby-forum.com/t/disabling-file-resuming-with-x-accel-removing-headers/217628)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [March 9, 2012, 11:37pm UTC](https://www.ruby-forum.com/t/disabling-file-resuming-with-x-accel-removing-headers/217628 "2012-03-09T23:37:07Z")

</div>

Hello, I have a config using fastcgi and different locations FastCGI is set as internal: location ~ .php$ { internal; fastcgi\_pass 127.0.0.1:9000; fastcgi\_send\_timeout 120; fastcgi\_read\_timeout 120; fastcgi\_index …

---

## [Collapsing Empty Variables in Nginx Access Log When Using TAB Delimiter](https://www.ruby-forum.com/t/collapsing-empty-variables-in-nginx-access-log-when-using-tab-delimiter/217621)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [March 9, 2012, 6:24pm UTC](https://www.ruby-forum.com/t/collapsing-empty-variables-in-nginx-access-log-when-using-tab-delimiter/217621 "2012-03-09T18:24:46Z")

</div>

I’m noticing that Nginx’s log module is “collapsing” empty log variables primarily when using a TAB (\\t) as a delimiter in the access log. For example, if I use the following: log\_format main ‘$server\_name $msec $r…

---

## [Nginx to recive json and update mysql (im newbe)](https://www.ruby-forum.com/t/nginx-to-recive-json-and-update-mysql-im-newbe/217714)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [March 9, 2012, 5:46pm UTC](https://www.ruby-forum.com/t/nginx-to-recive-json-and-update-mysql-im-newbe/217714 "2012-03-09T17:46:12Z")

</div>

Hello all im new to nginx , im thinking about testing the server to do the job of getting json requests from clients extract the json data and update mysql server . what shell i do and how should i configure the serv…

---

## [Nginx status active connections](https://www.ruby-forum.com/t/nginx-status-active-connections/217708)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 9, 2012, 11:51am UTC](https://www.ruby-forum.com/t/nginx-status-active-connections/217708 "2012-03-09T11:51:16Z")

</div>

Hi, We do have a few high load web servers behind two load balancers running \* nginx/1.0.0\* I upgraded two of them to nginx/1.0.12 all servers are running well despite the version of nginx However I’ve noticed that…

---

## [Who can help me to solve running .pl (perl) in nginx](https://www.ruby-forum.com/t/who-can-help-me-to-solve-running-pl-perl-in-nginx/217703)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [March 9, 2012, 3:48am UTC](https://www.ruby-forum.com/t/who-can-help-me-to-solve-running-pl-perl-in-nginx/217703 "2012-03-09T03:48:43Z")

</div>

my os is ubuntu, and I follow the http://wiki.nginx.org/SimpleCGI but when I visit the pl(perl) file, the pl(perl) file will be a defunct process. And the cpu will reache the 100% by the cgiwrap-fcgi.pl … how can I…

---

## [Pointers on writing an Nginx module/application which needs to talk to multiple backends (sometimes](https://www.ruby-forum.com/t/pointers-on-writing-an-nginx-module-application-which-needs-to-talk-to-multiple-backends-sometimes/217674)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [March 9, 2012, 3:27am UTC](https://www.ruby-forum.com/t/pointers-on-writing-an-nginx-module-application-which-needs-to-talk-to-multiple-backends-sometimes/217674 "2012-03-09T03:27:38Z")

</div>

Hi, I am trying to do something similar to what is described in this older thread: http://nginx.2469901.n2.nabble.com/How-can-a-content-handler-block-on-certain-events-before-sending-a-response-td5764856.html Below i…

---

## [Further "Hacking" the event model of Nginx](https://www.ruby-forum.com/t/further-hacking-the-event-model-of-nginx/191684)

<div class="topic-metadata">

**Author:** [@vinjenace](https://www.ruby-forum.com/u/vinjenace)\
**Replies:** 10\
**Last updated:** [March 9, 2012, 3:15am UTC](https://www.ruby-forum.com/t/further-hacking-the-event-model-of-nginx/191684 "2012-03-09T03:15:07Z")

</div>

Hi all, I have read the following post. http://www.ruby-forum.com/topic/149417 It is helpful, I am new to nginx and need some instructions on my work. We have 3 machines, server MASTER is the application server visib…

---

## [Timeout Issues](https://www.ruby-forum.com/t/timeout-issues/212125)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [March 9, 2012, 2:09am UTC](https://www.ruby-forum.com/t/timeout-issues/212125 "2012-03-09T02:09:57Z")

</div>

Hi All, I submitted this originally through the lists but I noticed it did not create a topic here for it. So I am adding it as a topic, I hope this acceptable. Hi All, Ok I am having issues with NGINX and it timing…

---

## [Load balancer - add nodes dynamically to upstream](https://www.ruby-forum.com/t/load-balancer-add-nodes-dynamically-to-upstream/209855)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [March 9, 2012, 12:38am UTC](https://www.ruby-forum.com/t/load-balancer-add-nodes-dynamically-to-upstream/209855 "2012-03-09T00:38:32Z")

</div>

For a particular use case, we are using nginx as a lb (with 'weight’s and 'fail\_timeout’s as mentioned in the wiki here - . http://library.linode.com/web-servers/nginx/configuration/front-end-proxy-and-software-load-…

---

## [Dynamically define upstream](https://www.ruby-forum.com/t/dynamically-define-upstream/217699)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 9, 2012, 12:35am UTC](https://www.ruby-forum.com/t/dynamically-define-upstream/217699 "2012-03-09T00:35:25Z")

</div>

Hey there, Is there a way to dynamically configure nginx upstreams - with API or via Lua? Much appreciated! Posted at Nginx Forum:

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

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