# Server

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

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

---

## [Ngx\_shared\_env\_module](https://www.ruby-forum.com/t/ngx-shared-env-module/236758)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [October 1, 2013, 9:50am UTC](https://www.ruby-forum.com/t/ngx-shared-env-module/236758 "2013-10-01T09:50:24Z")

</div>

I have decided to release an in-house module that I have been using for my hosting company. A full explanation of the goals of the module is available in the README. I am well aware that this module introduces (mi…

---

## [Upstream+ip\_hash: hash valid global?](https://www.ruby-forum.com/t/upstream-ip-hash-hash-valid-global/236697)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 4\
**Last updated:** [September 30, 2013, 5:07pm UTC](https://www.ruby-forum.com/t/upstream-ip-hash-hash-valid-global/236697 "2013-09-30T17:07:01Z")

</div>

Hello, i have 2 upstreams, each with 3 backend servers, where backendA is the same backend in both upstreams. upstream one { server backendA; server backendB; server backendC; } upstream two { server backendA; …

---

## [Enabling keepalive increases request time](https://www.ruby-forum.com/t/enabling-keepalive-increases-request-time/246303)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [September 30, 2013, 4:51pm UTC](https://www.ruby-forum.com/t/enabling-keepalive-increases-request-time/246303 "2013-09-30T16:51:49Z")

</div>

HI, I’m using Nginx 1.2.9 behind Amazon’s ELB. We recently moved our servers behind the ELB and in testing enabling keepalives between the server and the ELB we are seeing request times double from around 25ms to 5…

---

## [JSON REST APIs](https://www.ruby-forum.com/t/json-rest-apis/236682)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [September 30, 2013, 2:20pm UTC](https://www.ruby-forum.com/t/json-rest-apis/236682 "2013-09-30T14:20:26Z")

</div>

Hi, Are there any JSON APIs defined for Nginx Configuration? Regards, John

---

## [Ngx\_openresty mainline version 1.4.2.9 released](https://www.ruby-forum.com/t/ngx-openresty-mainline-version-1-4-2-9-released/236745)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [September 30, 2013, 9:13am UTC](https://www.ruby-forum.com/t/ngx-openresty-mainline-version-1-4-2-9-released/236745 "2013-09-30T09:13:39Z")

</div>

Hello folks! I am happy to announce that the new mainline version of ngx\_openresty, 1.4.2.9, is now released: http://openresty.org/#Download Special thanks go to all the contributors for making this happen! Below is…

---

## [Nginx-http-rdns module](https://www.ruby-forum.com/t/nginx-http-rdns-module/246293)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [September 30, 2013, 8:18am UTC](https://www.ruby-forum.com/t/nginx-http-rdns-module/246293 "2013-09-30T08:18:09Z")

</div>

Hi guys! Our small Russian company (flant.com) is pleased to announce new module called nginx-http-rdns. As you can see from its name, the main feature of this module is making reverse DNS lookups to get DNS name of …

---

## [Nginx struggling to accept connections during peak load](https://www.ruby-forum.com/t/nginx-struggling-to-accept-connections-during-peak-load/236741)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [September 29, 2013, 10:40pm UTC](https://www.ruby-forum.com/t/nginx-struggling-to-accept-connections-during-peak-load/236741 "2013-09-29T22:40:32Z")

</div>

Hello, I had posted to the mailing list earlier this week, but I managed to gather some new information that points directly to nginx (almost certainly my configuration), so I thought I’d post something more concise. …

---

## [Only recompile particular module when developing](https://www.ruby-forum.com/t/only-recompile-particular-module-when-developing/246301)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [September 28, 2013, 3:49am UTC](https://www.ruby-forum.com/t/only-recompile-particular-module-when-developing/246301 "2013-09-28T03:49:04Z")

</div>

Hello I’m currently developing a new module and it’s frustrating having to recompile every module each time. How can I skip all modules but my new one and then link the pre-existing object files? Does anyone have an…

---

## [How to make proxy revalidate resource at origin](https://www.ruby-forum.com/t/how-to-make-proxy-revalidate-resource-at-origin/236718)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 3\
**Last updated:** [September 27, 2013, 6:05pm UTC](https://www.ruby-forum.com/t/how-to-make-proxy-revalidate-resource-at-origin/236718 "2013-09-27T18:05:13Z")

</div>

Hi, I posted this on stackoverflow already but I thought I might have more luck here :slight\_smile: In short, I can’t find a way to make nginx revalidate a cached resource with the origin. Whenever nginx is in fro…

---

## [Stumped with issue of Nginx passing requests to php-fpm while using SSL](https://www.ruby-forum.com/t/stumped-with-issue-of-nginx-passing-requests-to-php-fpm-while-using-ssl/236706)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [September 27, 2013, 1:41pm UTC](https://www.ruby-forum.com/t/stumped-with-issue-of-nginx-passing-requests-to-php-fpm-while-using-ssl/236706 "2013-09-27T13:41:35Z")

</div>

nginx mailing list removed\_email\_address@domain.invalid http://mailman.nginx.org/mailman/listinfo/nginx

---

## [Access to live limit\_conn values?](https://www.ruby-forum.com/t/access-to-live-limit-conn-values/236603)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [September 27, 2013, 1:59am UTC](https://www.ruby-forum.com/t/access-to-live-limit-conn-values/236603 "2013-09-27T01:59:50Z")

</div>

I’m looking for a way get the value of the current number of connections in a given limit\_conn zone.There is no variable access that I can find. I’m considering hacking this into the stub\_status module, so that all of …

---

## [Fedora19 + Nginx - Passenger module not compiled in?](https://www.ruby-forum.com/t/fedora19-nginx-passenger-module-not-compiled-in/246321)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [September 26, 2013, 10:36pm UTC](https://www.ruby-forum.com/t/fedora19-nginx-passenger-module-not-compiled-in/246321 "2013-09-26T22:36:28Z")

</div>

People, I am trying out nginx-1.4.2-1.fc19.x86\_64 and have installed: mod\_passenger-3.0.21-4.fc19.x86\_64 rubygem-passenger-3.0.21-4.fc19.x86\_64 rubygem-passenger-native-3.0.21-4.fc19.x86\_64 rubygem-passenger-native-…

---

## [Is there an nginx queue that isn't logged via $response\_time](https://www.ruby-forum.com/t/is-there-an-nginx-queue-that-isnt-logged-via-response-time/246326)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [September 26, 2013, 9:42pm UTC](https://www.ruby-forum.com/t/is-there-an-nginx-queue-that-isnt-logged-via-response-time/246326 "2013-09-26T21:42:07Z")

</div>

We have a setup that looks like this: nginx-\>haproxy-\>app servers We are terminating SSL with nginx and it sits in front of everything. During our peak load times, we are experiencing about a 2x performance hit. Req…

---

## [Nginx-1.4.1 fails when adding nginx\_upload\_module-2.2.0](https://www.ruby-forum.com/t/nginx-1-4-1-fails-when-adding-nginx-upload-module-2-2-0/246324)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [September 26, 2013, 4:53pm UTC](https://www.ruby-forum.com/t/nginx-1-4-1-fails-when-adding-nginx-upload-module-2-2-0/246324 "2013-09-26T16:53:15Z")

</div>

I am attempting to configure ngixn-1.4.1 on a SLES box for a galaxy server deployment. I am able to get it to work fine as long as I do not try to –add-module=…/nginx\_upload\_module-2.2.0. When I add the upload\_modul…

---

## [Request body and client\_body\_buffer\_size](https://www.ruby-forum.com/t/request-body-and-client-body-buffer-size/246229)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 5\
**Last updated:** [September 26, 2013, 2:42am UTC](https://www.ruby-forum.com/t/request-body-and-client-body-buffer-size/246229 "2013-09-26T02:42:55Z")

</div>

Is it correct that when $content\_length \> client\_body\_buffer\_size, then $request\_body == “” ? If so this would be worth documenting at request\_body. I am using: proxy\_cache\_methods POST; proxy\_cache\_key "$request\_met…

---

## [Nginx + munin + CGI](https://www.ruby-forum.com/t/nginx-munin-cgi/236693)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [September 25, 2013, 8:17pm UTC](https://www.ruby-forum.com/t/nginx-munin-cgi/236693 "2013-09-25T20:17:39Z")

</div>

There is a special set of configuration parameters for apache which allow it to work with munin in CGI mode. Has anyone tried getting it to work with nginx? Grant

---

## [Proxy to upstream HTTPS server \*without\* any keys/certs in nginx](https://www.ruby-forum.com/t/proxy-to-upstream-https-server-without-any-keys-certs-in-nginx/246274)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [September 25, 2013, 4:58pm UTC](https://www.ruby-forum.com/t/proxy-to-upstream-https-server-without-any-keys-certs-in-nginx/246274 "2013-09-25T16:58:19Z")

</div>

Hello, We are researching which tools would allow us to do what is described in the subject. After searching the archives here and in other places like stackoverflow, there seems to be conflicting info on whether th…

---

## [40 bad request and UTF8](https://www.ruby-forum.com/t/40-bad-request-and-utf8/236688)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [September 25, 2013, 4:05pm UTC](https://www.ruby-forum.com/t/40-bad-request-and-utf8/236688 "2013-09-25T16:05:07Z")

</div>

Hi, Im using nginx and rails for my site which contains url with georgian letters ie განცხადებები so something like It is mainly working perfectly but sometimes I receive request with truncated url ie 1 - http://g…

---

## [Nginx static files](https://www.ruby-forum.com/t/nginx-static-files/236686)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [September 25, 2013, 2:35pm UTC](https://www.ruby-forum.com/t/nginx-static-files/236686 "2013-09-25T14:35:07Z")

</div>

I have a rails server and I would like to serve all this static files \*. jpg, \*. png, \*. css, \*. js, \*. gif, \*. jpeg with nginx This is my actual configuration server { listen 443; server\_name emotionalworld.co www.…

---

## [From time to time we can't reload the nginx service and get this error... /var/run/nginx.pid: No su](https://www.ruby-forum.com/t/from-time-to-time-we-cant-reload-the-nginx-service-and-get-this-error-var-run-nginx-pid-no-su/175310)

<div class="topic-metadata">

**Author:** [@iberci](https://www.ruby-forum.com/u/iberci)\
**Replies:** 7\
**Last updated:** [September 25, 2013, 2:30pm UTC](https://www.ruby-forum.com/t/from-time-to-time-we-cant-reload-the-nginx-service-and-get-this-error-var-run-nginx-pid-no-su/175310 "2013-09-25T14:30:27Z")

</div>

Reloading nginx daemon configuration…cat: /var/run/nginx.pid: No such file or directory kill: usage: kill \[-s sigspec | -n signum | -sigspec\] pid | jobspec … or kill -l \[sigspec\] can’t reload. Any idea why? I can…

---

## [Questions about proxy\_cache and ssi](https://www.ruby-forum.com/t/questions-about-proxy-cache-and-ssi/236669)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [September 25, 2013, 2:29pm UTC](https://www.ruby-forum.com/t/questions-about-proxy-cache-and-ssi/236669 "2013-09-25T14:29:52Z")

</div>

Hello list, I hava a nginx config problem , Please help look ! I use proxy\_cache and ssi. nginx config : ssi on; ssi\_silent\_errors on; ssi\_types text/shtml; proxy\_temp\_path /cache/proxy\_temp; proxy\_cache\_path /c…

---

## [400 bad request and utf8](https://www.ruby-forum.com/t/400-bad-request-and-utf8/236687)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [September 25, 2013, 2:17pm UTC](https://www.ruby-forum.com/t/400-bad-request-and-utf8/236687 "2013-09-25T14:17:44Z")

</div>

Hi, Im using nginx and rails for my site which contains url with georgian letters ie განცხადებები so something like It is mainly working perfectly but sometimes I receive request with truncated url ie 1 - http://g…

---

## [Nginx convert UTF8 request to ISO-8859-1](https://www.ruby-forum.com/t/nginx-convert-utf8-request-to-iso-8859-1/236681)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [September 25, 2013, 1:32pm UTC](https://www.ruby-forum.com/t/nginx-convert-utf8-request-to-iso-8859-1/236681 "2013-09-25T13:32:00Z")

</div>

Hi, IE8 (maybe also IE9/IE10) doesn’t auto encode url (firefox do), and can make utf8 requests If you put “http:///?test=ééé” in the address bar, the é will not be html encoded, and will be sent encoded in utf8 (c3a…

---

## [All webapps behind nginx reverse proxy by port?](https://www.ruby-forum.com/t/all-webapps-behind-nginx-reverse-proxy-by-port/236684)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [September 25, 2013, 10:19am UTC](https://www.ruby-forum.com/t/all-webapps-behind-nginx-reverse-proxy-by-port/236684 "2013-09-25T10:19:08Z")

</div>

I’m thinking of using nginx as a reverse proxy for all of my administrative webapps so I can keep them under nice tight control. Is this a good idea? Would you use port numbers to separate each of them? Grant

---

## [Ngx\_lua + proxy\_next\_upstream](https://www.ruby-forum.com/t/ngx-lua-proxy-next-upstream/236595)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 6\
**Last updated:** [September 25, 2013, 8:21am UTC](https://www.ruby-forum.com/t/ngx-lua-proxy-next-upstream/236595 "2013-09-25T08:21:42Z")

</div>

Hello, I have configured: ngx\_lua as rewrite\_by\_lua\_file lua returns upstream Nginx connects to the upstream Works perfectly. The question is how can I archive proxy\_next\_upstream. Preferably I would like to return…

---

## [Limit\_req and @named locations](https://www.ruby-forum.com/t/limit-req-and-named-locations/236673)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [September 24, 2013, 9:24pm UTC](https://www.ruby-forum.com/t/limit-req-and-named-locations/236673 "2013-09-24T21:24:16Z")

</div>

Hi list I am experiencing some problems with a rate-limiting setup. I have a “global” limit\_req declared in my http block. I also have additional limit\_req declarations in various locations, both @named and unnamed, …

---

## [Nginx.conf(5) man page](https://www.ruby-forum.com/t/nginx-conf-5-man-page/236676)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [September 24, 2013, 4:46pm UTC](https://www.ruby-forum.com/t/nginx-conf-5-man-page/236676 "2013-09-24T16:46:37Z")

</div>

Hi, OpenBSD is working on replacing the (heavily patched) apache 1.3 in base with nginx. During that work the question was raised if we can have a nginx.conf(5) man page. As a proof of concept I put a perl script tog…

---

## [Drainstop/Graceful stop?](https://www.ruby-forum.com/t/drainstop-graceful-stop/236661)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [September 24, 2013, 6:13am UTC](https://www.ruby-forum.com/t/drainstop-graceful-stop/236661 "2013-09-24T06:13:09Z")

</div>

Hi, Sorry if this is a but of a bumb question, but we’re moving from NLB to using Nginx as a load balancer. Whats the best way to do an equivelient of a drain-stop to one upstram server? Would it be a graceful stop, …

---

## [Compare variable got from location with set of strings](https://www.ruby-forum.com/t/compare-variable-got-from-location-with-set-of-strings/236654)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [September 24, 2013, 1:15am UTC](https://www.ruby-forum.com/t/compare-variable-got-from-location-with-set-of-strings/236654 "2013-09-24T01:15:33Z")

</div>

Hello, I have some location in configuration like this: location ~ /(\[A-z\]+\_\[A-z0-9\]+) { … do something (got $1) … } And i need to compare this ‘$1’ with a set of strings. How can i do this? Thanks!

---

## [Override proxy's incorrect Content-Type via mime settings](https://www.ruby-forum.com/t/override-proxys-incorrect-content-type-via-mime-settings/212153)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [September 24, 2013, 12:45am UTC](https://www.ruby-forum.com/t/override-proxys-incorrect-content-type-via-mime-settings/212153 "2013-09-24T00:45:10Z")

</div>

Hi all - I have an upstream proxy that sends the wrong Content-Type header for a load of images. Sometime it doesn’t send any header at all. I’m trying to get Nginx not only to remove the upstream’s Content-Type head…

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

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