# Server

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

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

---

## [Dynamic upstream proxy\_pass](https://www.ruby-forum.com/t/dynamic-upstream-proxy-pass/240347)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [April 9, 2014, 11:04am UTC](https://www.ruby-forum.com/t/dynamic-upstream-proxy-pass/240347 "2014-04-09T11:04:23Z")

</div>

I’m trying to set upstream names by variables, but nginx recognizes variables as hostnames, not upstream names. For example: map $cookie\_backend $proxy\_host { default ‘backend1’; ‘1’ ‘backend2’; } …

---

## [Help, make a post subrequest with response body from parent](https://www.ruby-forum.com/t/help-make-a-post-subrequest-with-response-body-from-parent/240346)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [April 9, 2014, 8:45am UTC](https://www.ruby-forum.com/t/help-make-a-post-subrequest-with-response-body-from-parent/240346 "2014-04-09T08:45:57Z")

</div>

hi, angentzh I use echo module(angentzh) to issue a subrequest(POST method) that it’s body from parent’s request body, and i add some code in ngx\_http\_echo\_subrequest-\>ngx\_http\_echo\_parse\_subrequest\_spec : so, it’…

---

## [Reverse proxy dns configuration](https://www.ruby-forum.com/t/reverse-proxy-dns-configuration/240340)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [April 9, 2014, 4:26am UTC](https://www.ruby-forum.com/t/reverse-proxy-dns-configuration/240340 "2014-04-09T04:26:04Z")

</div>

Hi. I am looking to deploy nginx on a proxy server. The real backend is located in a remoate geographic location and has apache, mysql, dovecot and postfix services supporting an IMAP mail-server. I am a bit confused …

---

## [New module: Nginx OpenSSL version check](https://www.ruby-forum.com/t/new-module-nginx-openssl-version-check/240339)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [April 9, 2014, 4:12am UTC](https://www.ruby-forum.com/t/new-module-nginx-openssl-version-check/240339 "2014-04-09T04:12:03Z")

</div>

On behalf of my employer, Apcera Inc, we are delighted to make available a new Nginx module, providing for a start-up OpenSSL version check for those who wish for a little more belt&braces protection. https://github.c…

---

## [Failed to verify repository GPG key](https://www.ruby-forum.com/t/failed-to-verify-repository-gpg-key/240326)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [April 8, 2014, 7:06pm UTC](https://www.ruby-forum.com/t/failed-to-verify-repository-gpg-key/240326 "2014-04-08T19:06:23Z")

</div>

today I noticed something changed and there is no longer packages being verified from nginx.org repository: W: GPG error: http://nginx.org squeeze Release: The following signatures were invalid: BADSIG ABF5BD827BD9BF6…

---

## [Windows nginx 1.5.13.1 Snowman](https://www.ruby-forum.com/t/windows-nginx-1-5-13-1-snowman/240279)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [April 8, 2014, 6:51pm UTC](https://www.ruby-forum.com/t/windows-nginx-1-5-13-1-snowman/240279 "2014-04-08T18:51:46Z")

</div>

0:18 5-4-2014 nginx 1.5.13.1 Snowman .-= This Is Snowman =-. Here’s a little snowman fast and fat, here’s it’s power as fast as a cat When you run Windows you can hear it shout, take me in try me out! The nginx Snowm…

---

## [Deprecated warnings in 1.5.8 are now errors in 1.5.12](https://www.ruby-forum.com/t/deprecated-warnings-in-1-5-8-are-now-errors-in-1-5-12/240319)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [April 8, 2014, 1:14pm UTC](https://www.ruby-forum.com/t/deprecated-warnings-in-1-5-8-are-now-errors-in-1-5-12/240319 "2014-04-08T13:14:44Z")

</div>

Hi, I’m trying to compile 1.5.12 on OSX. For some reason 1.5.12 generates errors in make where in 1.5.8 these same messages appeared as warnings and were ignored. I’m trying to build the nginx core without extra mod…

---

## [Nodejs websocket 502 bad gateway](https://www.ruby-forum.com/t/nodejs-websocket-502-bad-gateway/240299)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [April 8, 2014, 9:19am UTC](https://www.ruby-forum.com/t/nodejs-websocket-502-bad-gateway/240299 "2014-04-08T09:19:57Z")

</div>

I’m trying to make work nginx 1.4.7 with nodejs websockets but I’m getting 502 bad gateway NGINX Error: \[error\] 2394#0: \*1 upstream prematurely closed connection while reading response header from upstream, client: 1…

---

## [Limit\_conn\_zone Nginx Unknow error](https://www.ruby-forum.com/t/limit-conn-zone-nginx-unknow-error/240302)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 4\
**Last updated:** [April 7, 2014, 7:14pm UTC](https://www.ruby-forum.com/t/limit-conn-zone-nginx-unknow-error/240302 "2014-04-07T19:14:15Z")

</div>

What am I doing wrong here? http { limit\_conn\_zone $binary\_remote\_addr zone=one:63m; server { location /downloads/ { limit\_conn one 10;} \[root@batman1 ~\]# service nginx conf…

---

## [Windows | Nginx Mapped Hard Drive | Network Sharing](https://www.ruby-forum.com/t/windows-nginx-mapped-hard-drive-network-sharing/240269)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 25\
**Last updated:** [April 7, 2014, 7:02pm UTC](https://www.ruby-forum.com/t/windows-nginx-mapped-hard-drive-network-sharing/240269 "2014-04-07T19:02:34Z")

</div>

So i tried sharing my hard drives on windows and serving the content on them from nginx but nginx returns a 404 not found error every time.

---

## [Strange nginx issue](https://www.ruby-forum.com/t/strange-nginx-issue/240301)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 4\
**Last updated:** [April 7, 2014, 5:46pm UTC](https://www.ruby-forum.com/t/strange-nginx-issue/240301 "2014-04-07T17:46:01Z")

</div>

We are facing a strange issue on our servers. We have servers with 1GB RAM and some drupal sites are running on it. Generally all sites are loading fine but sometimes we are unable to access any sites. After waiting…

---

## [Adding custom protocol data while creating new keepalive connections](https://www.ruby-forum.com/t/adding-custom-protocol-data-while-creating-new-keepalive-connections/240304)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [April 7, 2014, 4:49pm UTC](https://www.ruby-forum.com/t/adding-custom-protocol-data-while-creating-new-keepalive-connections/240304 "2014-04-07T16:49:19Z")

</div>

Nginx is proxying requests to my custom tcp server. I have my proxy handler to create the right request format and process headers etc. The trouble started when I started using keepalive handler. I have to add a custo…

---

## [Do I need nginx in the web application host?](https://www.ruby-forum.com/t/do-i-need-nginx-in-the-web-application-host/240292)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [April 7, 2014, 2:33am UTC](https://www.ruby-forum.com/t/do-i-need-nginx-in-the-web-application-host/240292 "2014-04-07T02:33:44Z")

</div>

If I have a host witn nginx (load balancing and SSL termination), do i need nginx inside the host of each of my webapps? (Assuming I will use cdn for static assets). Thanks! Posted at Nginx Forum:

---

## [Web GUI](https://www.ruby-forum.com/t/web-gui/240272)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [April 5, 2014, 1:15am UTC](https://www.ruby-forum.com/t/web-gui/240272 "2014-04-05T01:15:28Z")

</div>

I just got NginX installed on Ubuntu and was wondering if there is a Web GUI built-in that can be called from the local IP address with some port number? Thanks again for your help.

---

## [SSL renegotiation probelm using nginx as reverse proxy to apache](https://www.ruby-forum.com/t/ssl-renegotiation-probelm-using-nginx-as-reverse-proxy-to-apache/240248)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [April 4, 2014, 11:02pm UTC](https://www.ruby-forum.com/t/ssl-renegotiation-probelm-using-nginx-as-reverse-proxy-to-apache/240248 "2014-04-04T23:02:51Z")

</div>

My goal is end-to-end encryption of multiple domains using nginx as a reverse proxy to load balance to multiple backends. Both nginx and apache use the same wildcard cert, eg \*.domain.com. The first request to https…

---

## [NginX on Ubuntu 12.04](https://www.ruby-forum.com/t/nginx-on-ubuntu-12-04/240265)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [April 4, 2014, 10:34pm UTC](https://www.ruby-forum.com/t/nginx-on-ubuntu-12-04/240265 "2014-04-04T22:34:47Z")

</div>

I am attempting to install NginX on Ubuntu 12.04 using instructions found from the following link: http://wiki.nginx.org/Install but I am getting various error messages. Does anyone have updated instructions for 12.…

---

## [Testssl.sh - script to test your ssl-setup from cli](https://www.ruby-forum.com/t/testssl-sh-script-to-test-your-ssl-setup-from-cli/240256)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [April 4, 2014, 5:28pm UTC](https://www.ruby-forum.com/t/testssl-sh-script-to-test-your-ssl-setup-from-cli/240256 "2014-04-04T17:28:45Z")

</div>

web: https://testssl.sh/ repo: Bitbucket testssl.sh is a free Unix command line tool which checks a server’s service on any port for the support of TLS/SSL ciphers, protocols as well as some cryptographic flaws. I…

---

## [Map v/s rewrite performance](https://www.ruby-forum.com/t/map-v-s-rewrite-performance/240035)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 5\
**Last updated:** [April 4, 2014, 2:05pm UTC](https://www.ruby-forum.com/t/map-v-s-rewrite-performance/240035 "2014-04-04T14:05:27Z")

</div>

Hi All, I am just wondering, say for 1000 url redirects, what will be more efficient. Rewrite Style: server { rewrite old-url-1 new-url-1 permanent; rewrite old-url-2 new-url-2 per…

---

## [Need help: websocket proxy stops working after a while](https://www.ruby-forum.com/t/need-help-websocket-proxy-stops-working-after-a-while/245500)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 4\
**Last updated:** [April 4, 2014, 10:21am UTC](https://www.ruby-forum.com/t/need-help-websocket-proxy-stops-working-after-a-while/245500 "2014-04-04T10:21:08Z")

</div>

I got nginx websocket proxy working but the socket would close in a minute or so. So I add proxy\_read\_timeout 180s; and it works within 3 minutes but closed the websocket after 3 minutes, but it works OK before that.…

---

## [PCRE named captures sill counted in numerical variables list](https://www.ruby-forum.com/t/pcre-named-captures-sill-counted-in-numerical-variables-list/240237)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [April 3, 2014, 3:22pm UTC](https://www.ruby-forum.com/t/pcre-named-captures-sill-counted-in-numerical-variables-list/240237 "2014-04-03T15:22:15Z")

</div>

I tried to configure the following location with something like: location ~\* “^/(\[\[:alpha:\]\]{1,8}(?-\[\[:alpha:\]\]{1,8})?)(/.\*\[^/\])?/?$” { try\_files $uri $uri/ $2/?lang=$1&$args; } ​However, the $2 variable does not c…

---

## [More Descriptive 502 Errors](https://www.ruby-forum.com/t/more-descriptive-502-errors/240221)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [April 3, 2014, 3:06pm UTC](https://www.ruby-forum.com/t/more-descriptive-502-errors/240221 "2014-04-03T15:06:29Z")

</div>

Every so often I see a handful of errors in my error log, such as: connect() failed (113: No route to host) upstream timed out (110: Connection timed out) upstream sent too big header while reading response header fro…

---

## [Multiple CAs in ssl\_client\_certificate does not work for me](https://www.ruby-forum.com/t/multiple-cas-in-ssl-client-certificate-does-not-work-for-me/240236)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [April 3, 2014, 1:10pm UTC](https://www.ruby-forum.com/t/multiple-cas-in-ssl-client-certificate-does-not-work-for-me/240236 "2014-04-03T13:10:51Z")

</div>

Hello, I’ve seen from the doc and from this post (Re: Does Nginx allow to specify multiple root certificates for client certificate verification?) that it is possible to specify multiple CAs in ssl\_client\_certificate …

---

## [XSLT, one XML file and differing URIs](https://www.ruby-forum.com/t/xslt-one-xml-file-and-differing-uris/239907)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [April 3, 2014, 1:04pm UTC](https://www.ruby-forum.com/t/xslt-one-xml-file-and-differing-uris/239907 "2014-04-03T13:04:25Z")

</div>

Hello, I was wondering if anyone could put on the right path to do the following, So in it’s simplest form, lets say I have one file “chapter.xml” in directory A /A/chapter.xml I want to use nginx XSLT processing a…

---

## [Transfering url arguments to different location](https://www.ruby-forum.com/t/transfering-url-arguments-to-different-location/240207)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 4\
**Last updated:** [April 2, 2014, 7:51pm UTC](https://www.ruby-forum.com/t/transfering-url-arguments-to-different-location/240207 "2014-04-02T19:51:52Z")

</div>

Hello I have a setup on nginx to count downloads. location / {. post\_action /afterdownload; Here I have a value in $arg\_key location /afterdownload { I need $arg\_key here Any way to send it to /afterdown…

---

## [Keepalive not working with upstream tcp server](https://www.ruby-forum.com/t/keepalive-not-working-with-upstream-tcp-server/240206)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [April 2, 2014, 6:44pm UTC](https://www.ruby-forum.com/t/keepalive-not-working-with-upstream-tcp-server/240206 "2014-04-02T18:44:42Z")

</div>

I am trying to use nginx to proxy my requests to a custom tcp backend server that I have. I am following the same model as the default memcached module with in the nginx code base (1.5.10) , the relevant config file a…

---

## [Proxying large downloads from s3](https://www.ruby-forum.com/t/proxying-large-downloads-from-s3/240196)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [April 2, 2014, 5:56pm UTC](https://www.ruby-forum.com/t/proxying-large-downloads-from-s3/240196 "2014-04-02T17:56:49Z")

</div>

Hi guys! We are proxying files from s3 through our app and had a couple questions on ideal config. When I arrived on the scene, the following config was in place: location /download/ { internal; proxy\_pass https://…

---

## [How to send proxy cache status to backend server?](https://www.ruby-forum.com/t/how-to-send-proxy-cache-status-to-backend-server/239791)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 14\
**Last updated:** [April 2, 2014, 3:44pm UTC](https://www.ruby-forum.com/t/how-to-send-proxy-cache-status-to-backend-server/239791 "2014-04-02T15:44:14Z")

</div>

Hello, I have been using proxy cache of Nginx. It provides response header to indicate cache status. Is there some way to forward the cache status (in case of miss, expired or revalidate ) to backend upstream server? …

---

## [What is better location regex or map regex?](https://www.ruby-forum.com/t/what-is-better-location-regex-or-map-regex/240212)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [April 2, 2014, 3:23pm UTC](https://www.ruby-forum.com/t/what-is-better-location-regex-or-map-regex/240212 "2014-04-02T15:23:12Z")

</div>

Hi. I try to transform the pligg htaccess rules to nginx. There is one from 2010 http://www.edwardawebb.com/web-development/running-pligg-nginx-rewrite-rules this transformation have some optimization potential, im…

---

## [Nginx upload module compile the problem](https://www.ruby-forum.com/t/nginx-upload-module-compile-the-problem/240211)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [April 2, 2014, 1:25pm UTC](https://www.ruby-forum.com/t/nginx-upload-module-compile-the-problem/240211 "2014-04-02T13:25:12Z")

</div>

hi friends, nginx version 1.4.7 upload module version 2.0.12

---

## [Ngx\_slab\_alloc() failed: no memory in cache keys zone "zone-xyz"](https://www.ruby-forum.com/t/ngx-slab-alloc-failed-no-memory-in-cache-keys-zone-zone-xyz/227747)

<div class="topic-metadata">

**Author:** [@praveenkumar\_Muppal](https://www.ruby-forum.com/u/praveenkumar_Muppal)\
**Replies:** 10\
**Last updated:** [April 2, 2014, 11:31am UTC](https://www.ruby-forum.com/t/ngx-slab-alloc-failed-no-memory-in-cache-keys-zone-zone-xyz/227747 "2014-04-02T11:31:17Z")

</div>

Hi, We have a nginx1.0.5 version installed in our system. We are getting this error continuously in our nginx error log. ngx\_slab\_alloc() failed: no memory in cache keys zone “zone-xyz”. I have increased this value t…

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

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