# Server

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

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

---

## [Multiple add\_header directives in different contexts](https://www.ruby-forum.com/t/multiple-add-header-directives-in-different-contexts/212889)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [October 17, 2011, 9:01am UTC](https://www.ruby-forum.com/t/multiple-add-header-directives-in-different-contexts/212889 "2011-10-17T09:01:01Z")

</div>

so i have a configuration like this: … http { … add\_header X-Bleep bloop; server { … add\_header X-Foo bar; } server { … } } and only “X-Bleep: bloop” is showing up in responses. is this expected behavior? i…

---

## [Strange rewrite\_by\_lua outcome](https://www.ruby-forum.com/t/strange-rewrite-by-lua-outcome/212877)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [October 17, 2011, 6:51am UTC](https://www.ruby-forum.com/t/strange-rewrite-by-lua-outcome/212877 "2011-10-17T06:51:10Z")

</div>

This works produces a 403 Forbidden error as expected: #GET /submit\_links/ if ($request\_uri ~\* :|\[|\]|--|@|^|{|}|~|\<|\>|..|++|//|%0|%A|%B|%C|%D|%E|%F|%22|%27|%28|%29|%3C|%3E|%5C|%7B|%7C|%7D|select(\\s\*)(|convert(\\s\*)(|/q…

---

## [A Control Panel for Nginx?](https://www.ruby-forum.com/t/a-control-panel-for-nginx/160315)

<div class="topic-metadata">

**Author:** [@Vishnu\_Kumar\_D\_R](https://www.ruby-forum.com/u/Vishnu_Kumar_D_R)\
**Replies:** 9\
**Last updated:** [October 17, 2011, 4:02am UTC](https://www.ruby-forum.com/t/a-control-panel-for-nginx/160315 "2011-10-17T04:02:44Z")

</div>

Hi, Hi, I am using Ubuntu 8.04 Server on a hosted server. I am also using Nginx as the webserver in the server. Now i am migrating some 120 domains which is hosted on another machine having Apache to this server on …

---

## [Upstream sent too many data while reading](https://www.ruby-forum.com/t/upstream-sent-too-many-data-while-reading/212641)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 14\
**Last updated:** [October 16, 2011, 10:34pm UTC](https://www.ruby-forum.com/t/upstream-sent-too-many-data-while-reading/212641 "2011-10-16T22:34:18Z")

</div>

hi; I use 1.1.5 my error.log upstream sent too many data while reading upstream how to fix it … Posted at Nginx Forum:

---

## [Add\_header and error\_page](https://www.ruby-forum.com/t/add-header-and-error-page/212872)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [October 16, 2011, 5:52pm UTC](https://www.ruby-forum.com/t/add-header-and-error-page/212872 "2011-10-16T17:52:01Z")

</div>

Hi, It seems to me add\_header and error\_page don’t work together (error pages don’t have headers added in the http scope). This (Add\_header directive not working for 40x and 50x responses - NGINX - Ruby-Forum) old po…

---

## [502 Bad Gateway when downloading file](https://www.ruby-forum.com/t/502-bad-gateway-when-downloading-file/212859)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [October 16, 2011, 2:31pm UTC](https://www.ruby-forum.com/t/502-bad-gateway-when-downloading-file/212859 "2011-10-16T14:31:58Z")

</div>

Hello all. I have topology as follows: client-\>NGINX-\>haproxy-\> 4xapache servers. Problem is, that on one page, we have option to download file - it is done through changing header. Resulting header is as follows: C…

---

## [So is "rewrite\_by\_lua" also evil?](https://www.ruby-forum.com/t/so-is-rewrite-by-lua-also-evil/212716)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 48\
**Last updated:** [October 16, 2011, 1:11pm UTC](https://www.ruby-forum.com/t/so-is-rewrite-by-lua-also-evil/212716 "2011-10-16T13:11:48Z")

</div>

I have the following simplified setup … server { … location @proxy { include /etc/nginx/firewall.default; proxy\_pass http://127.0.0.1:8080; … } location ~ ^.+.php$ { content\_by\_lua ‘ngx.exec(“@proxy”);’; } loc…

---

## [Drizzle-nginx-module error body missing?](https://www.ruby-forum.com/t/drizzle-nginx-module-error-body-missing/212864)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [October 16, 2011, 7:24am UTC](https://www.ruby-forum.com/t/drizzle-nginx-module-error-body-missing/212864 "2011-10-16T07:24:29Z")

</div>

Hey nginx list, it’s been awhile. This question is directed at agentzh and chaoslawful. I’m using nginx drizzle to insert to a table. I have a unique key constraint on the table. When I try to insert and violate the u…

---

## [HTTP Status Headers](https://www.ruby-forum.com/t/http-status-headers/212852)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [October 16, 2011, 6:11am UTC](https://www.ruby-forum.com/t/http-status-headers/212852 "2011-10-16T06:11:41Z")

</div>

On 13 October 2011 04:34, agentzh removed\_email\_address@domain.invalid wrote: BTW, you could have written the Lua code like this: local m = ngx.re.match(ngx.var.request\_method, “GET|POST|HEAD”, “io”) if not m then n…

---

## [Unlink Errors](https://www.ruby-forum.com/t/unlink-errors/212855)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [October 15, 2011, 10:19pm UTC](https://www.ruby-forum.com/t/unlink-errors/212855 "2011-10-15T22:19:06Z")

</div>

Hello, We’re having seemingly random errors in our nginx error log for unlink errors, here’s a small exerpt: Oct 15 12:48:42 nginx-02 (SolarWinds Cloud) error.log (SolarWinds Cloud): 2011/10/15 19:48:42 \[crit\] 161…

---

## [499 Code - The connection resets after 1 minute](https://www.ruby-forum.com/t/499-code-the-connection-resets-after-1-minute/212846)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [October 15, 2011, 9:18pm UTC](https://www.ruby-forum.com/t/499-code-the-connection-resets-after-1-minute/212846 "2011-10-15T21:18:03Z")

</div>

I have a django view which lasts more than a minute. But after the first minute, the browser shows me the connection is reset. If I read the access log, I find this: “GET /2.1/jmsf/events?apikey=6ff9131a-2c37-4584-9…

---

## [HTTP Status Codes in Nginx](https://www.ruby-forum.com/t/http-status-codes-in-nginx/212851)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [October 15, 2011, 5:56pm UTC](https://www.ruby-forum.com/t/http-status-codes-in-nginx/212851 "2011-10-15T17:56:52Z")

</div>

Are the available HTTP Status codes documented anywhere? Put another way, is it possible to issue all of the HTTP Status codes? I am thinking about 501 not implemented for instance. Thanks

---

## [Response time in header](https://www.ruby-forum.com/t/response-time-in-header/212838)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [October 14, 2011, 10:02pm UTC](https://www.ruby-forum.com/t/response-time-in-header/212838 "2011-10-14T22:02:44Z")

</div>

I would like to set/configure nginx such that I either a) set a single header equal to the time it takes nginx to receive and reply to a request, or b) set a hader for the time the request is received and another when…

---

## [Preserving post data on redirect](https://www.ruby-forum.com/t/preserving-post-data-on-redirect/212812)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [October 14, 2011, 1:19pm UTC](https://www.ruby-forum.com/t/preserving-post-data-on-redirect/212812 "2011-10-14T13:19:27Z")

</div>

Any one know how to preserve post data while doing redirect? The scenario is that I have both http and https accepting connection, I want (internally?) redirect http post request to https counterpart. Thanks! Posted …

---

## [Nginx doesn't accept new connection](https://www.ruby-forum.com/t/nginx-doesnt-accept-new-connection/212802)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [October 14, 2011, 11:30am UTC](https://www.ruby-forum.com/t/nginx-doesnt-accept-new-connection/212802 "2011-10-14T11:30:28Z")

</div>

Hi there, I am using nginx as a reverse proxy on a Debian Linux. The nginx is running on server A, and apache is running on server B. Server A is a pure proxy, server B is the real web server. In most of time, nginx …

---

## [About the new feature:$uid\_reset variable](https://www.ruby-forum.com/t/about-the-new-feature-uid-reset-variable/212803)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [October 14, 2011, 10:25am UTC](https://www.ruby-forum.com/t/about-the-new-feature-uid-reset-variable/212803 "2011-10-14T10:25:39Z")

</div>

hi, i tested a cast, a third modul which can echo ‘helloworld’, it could work well at 0.7.65 version. i tried to add this module into the 1.0.8 version nginx. it could configure well and build well, but when i run th…

---

## ["zero size buf in output" flooding the error.log](https://www.ruby-forum.com/t/zero-size-buf-in-output-flooding-the-error-log/212792)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [October 14, 2011, 3:46am UTC](https://www.ruby-forum.com/t/zero-size-buf-in-output-flooding-the-error-log/212792 "2011-10-14T03:46:37Z")

</div>

I am using the external NGiNX\_HTTP\_Push\_Module, and whenever a response is issued by one of its channels, I get this error logged: 2011/10/12 19:33:30 \[alert\] 10808#0: \*64 zero size buf in output t:1 r:0 f:0 000000000…

---

## [Downloading file](https://www.ruby-forum.com/t/downloading-file/212791)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [October 14, 2011, 3:23am UTC](https://www.ruby-forum.com/t/downloading-file/212791 "2011-10-14T03:23:51Z")

</div>

Hello, I have a problem setting up nginx i want to adapt to retrieve files through readfile php.The files will be charged an external server. Server → My Server(Streaming) → User I want the files pulled directly by n…

---

## [Upload\_resume sha1, md5 and crc32 aggregates missing](https://www.ruby-forum.com/t/upload-resume-sha1-md5-and-crc32-aggregates-missing/212618)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [October 14, 2011, 1:30am UTC](https://www.ruby-forum.com/t/upload-resume-sha1-md5-and-crc32-aggregates-missing/212618 "2011-10-14T01:30:28Z")

</div>

I’m seeing most, but not all of the upload form fields get set. However, the sha1, md5 and crc32 aggregates below are blanks: request.POST \<QueryDict: { u’upload\_name’: \[u’py\_lightweight\_uploader.py’\], u’upload\_size…

---

## [Ipv4 & ipv6 Virtual Hosting - address in use](https://www.ruby-forum.com/t/ipv4-ipv6-virtual-hosting-address-in-use/199945)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 9\
**Last updated:** [October 13, 2011, 3:57pm UTC](https://www.ruby-forum.com/t/ipv4-ipv6-virtual-hosting-address-in-use/199945 "2011-10-13T15:57:24Z")

</div>

I have latest nginx configured; I have one that is purely ipv6 and one that is purely ipv4; They both work fine in a multi-server environment; server { listen 80; listen \[::\]:80 ipv6only=on; serv…

---

## [Python on Nginx](https://www.ruby-forum.com/t/python-on-nginx/212707)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 10\
**Last updated:** [October 13, 2011, 1:00pm UTC](https://www.ruby-forum.com/t/python-on-nginx/212707 "2011-10-13T13:00:27Z")

</div>

The instruction given on http://wiki.nginx.org/PythonFlup is to install nginx supporting python. But I have a working Nginx with php-fpm supporting PHP. Now I want to add support of python too. Thus, my config is slig…

---

## [Nginx-1.0.x+mod\_push vs node.js](https://www.ruby-forum.com/t/nginx-1-0-x-mod-push-vs-node-js/212634)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [October 13, 2011, 2:19am UTC](https://www.ruby-forum.com/t/nginx-1-0-x-mod-push-vs-node-js/212634 "2011-10-13T02:19:24Z")

</div>

Hi, I’d like to know if anyone is using nginx-1.0.x with mod\_push in production to keep persistent connections on a website. I’m little scary about the huge number of active connections my servers can mantain (10000 o…

---

## [Using autoindex and the php index file](https://www.ruby-forum.com/t/using-autoindex-and-the-php-index-file/212759)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [October 12, 2011, 11:26pm UTC](https://www.ruby-forum.com/t/using-autoindex-and-the-php-index-file/212759 "2011-10-12T23:26:03Z")

</div>

Hi. My config looks like this: location / { … index index.php; autoindex off; } … location /autoindx\_dir/ { autoindex on; } location /autoindx\_dir/not/ { autoindex off; } also I have the php cgi options. T…

---

## [Nginx user agent type detection](https://www.ruby-forum.com/t/nginx-user-agent-type-detection/212754)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [October 12, 2011, 9:25pm UTC](https://www.ruby-forum.com/t/nginx-user-agent-type-detection/212754 "2011-10-12T21:25:03Z")

</div>

I have assembled a way to detect user agent types by using ideas from: http://notnotmobile.appspot.com/ This is the inital work I came up with: map $http\_user\_agent $agent\_type\_phase1 { default ‘mobile’; ‘’ ‘unknown…

---

## [Getting 502 bad gateway on uploading a file](https://www.ruby-forum.com/t/getting-502-bad-gateway-on-uploading-a-file/212730)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [October 12, 2011, 8:57pm UTC](https://www.ruby-forum.com/t/getting-502-bad-gateway-on-uploading-a-file/212730 "2011-10-12T20:57:49Z")

</div>

Trying to upload a small .png to Drupal. PHP 5.3.8, CentOS 5.6 x64, nginx 1.1.3 Everything else seems to work fine, but can’t seem to get any deeper information as to why anything is getting messed up. Not sure if the …

---

## [Best Practice question about log handling/storage](https://www.ruby-forum.com/t/best-practice-question-about-log-handling-storage/212737)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [October 12, 2011, 11:26am UTC](https://www.ruby-forum.com/t/best-practice-question-about-log-handling-storage/212737 "2011-10-12T11:26:00Z")

</div>

Hi How should we share nginx web access logs for later analyzing for eg. awstats. Do you setup nfs server for nginx server or should we put out separate nfs server where nginx should save logs. How do you do it? We…

---

## [NGINX gets $3 million in series A funding! Awesome!](https://www.ruby-forum.com/t/nginx-gets-3-million-in-series-a-funding-awesome/212723)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [October 12, 2011, 10:30am UTC](https://www.ruby-forum.com/t/nginx-gets-3-million-in-series-a-funding-awesome/212723 "2011-10-12T10:30:25Z")

</div>

Great job, Igor. NGINX is hitting prime time. From Michael Dell’s investment firm, no less!

---

## [Ssl benchmarks with and without nginx](https://www.ruby-forum.com/t/ssl-benchmarks-with-and-without-nginx/212005)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [October 11, 2011, 11:59pm UTC](https://www.ruby-forum.com/t/ssl-benchmarks-with-and-without-nginx/212005 "2011-10-11T23:59:13Z")

</div>

Dear Reader, today on the haproxy list was this link posted I have asked why they not have tried to use nginx the answer was another link Maybe someone can verify if there is really a problem in nginx or this di…

---

## [Log if body\_size greater than](https://www.ruby-forum.com/t/log-if-body-size-greater-than/212728)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [October 11, 2011, 11:25pm UTC](https://www.ruby-forum.com/t/log-if-body-size-greater-than/212728 "2011-10-11T23:25:20Z")

</div>

Dear Users, I’m reading through the docs and I’ve found that the rewrite module has some basic comparison operators. Is there a way or trick to implement some conditional processing at other parts of the configuratio…

---

## [Max clients != worker processes \* worker connections](https://www.ruby-forum.com/t/max-clients-worker-processes-worker-connections/212711)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [October 11, 2011, 5:43pm UTC](https://www.ruby-forum.com/t/max-clients-worker-processes-worker-connections/212711 "2011-10-11T17:43:39Z")

</div>

Hello, I relise that it may have been hammered on quite a few times already, but I cannot understand the results I’m getting. I have a rather basic setup on Ubuntu Server 11.04, where nginx (run as root) spawns 2 wor…

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

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