# Server

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

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

---

## [CPU Intensive Tasks inside Nginx Module](https://www.ruby-forum.com/t/cpu-intensive-tasks-inside-nginx-module/231499)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [August 12, 2014, 9:25am UTC](https://www.ruby-forum.com/t/cpu-intensive-tasks-inside-nginx-module/231499 "2014-08-12T09:25:36Z")

</div>

Hello, I am writing an application server as Nginx standard module, This code is supposed to perform some CPU intensive tasks. If the single thread/master-process in Nginx doing event-loop is stuck inside this part …

---

## [How to write async http web client inside nginx code?](https://www.ruby-forum.com/t/how-to-write-async-http-web-client-inside-nginx-code/231501)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [August 12, 2014, 9:24am UTC](https://www.ruby-forum.com/t/how-to-write-async-http-web-client-inside-nginx-code/231501 "2014-08-12T09:24:24Z")

</div>

I am writing an application server whose code will be written as nginx module (c/c++). This server is supposed to send HTTP Requests to other servers & wait for response from them for 200-400ms. If I use libcurl to ma…

---

## [Disable "proxy store" on "?start=1" param](https://www.ruby-forum.com/t/disable-proxy-store-on-start-1-param/231493)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [August 12, 2014, 12:38am UTC](https://www.ruby-forum.com/t/disable-proxy-store-on-start-1-param/231493 "2014-08-12T00:38:16Z")

</div>

Hello, Is there a good way to disable “proxy\_store”, if the parameter “start=” is set? The down below configuration works, but I get an error message: “\[crit\] … open() “/dev/null.0000000004” failed (13: Permission …

---

## [NGINX1.2.1 SNI provides wrong server certificate](https://www.ruby-forum.com/t/nginx1-2-1-sni-provides-wrong-server-certificate/231344)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 5\
**Last updated:** [August 11, 2014, 4:12pm UTC](https://www.ruby-forum.com/t/nginx1-2-1-sni-provides-wrong-server-certificate/231344 "2014-08-11T16:12:12Z")

</div>

Hi there, we configured NGINX 1.2.1 on debian 7.1u1 with 5 virtual host, set up a private certification authority, generated keys for all the the virt. host and configured the hosts similar to server { listen 443; …

---

## [AJP V/s Proxy pass with Nginx](https://www.ruby-forum.com/t/ajp-v-s-proxy-pass-with-nginx/231487)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [August 11, 2014, 2:31pm UTC](https://www.ruby-forum.com/t/ajp-v-s-proxy-pass-with-nginx/231487 "2014-08-11T14:31:58Z")

</div>

Hi All, I am new to Nginx and currently we are using Apache which is having both Proxy pass and AJP configuration. When setup long back we found AJP performs faster than http. Now as we are moving to Nginx, so just …

---

## [Custom error page for post queries](https://www.ruby-forum.com/t/custom-error-page-for-post-queries/231485)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [August 11, 2014, 12:27pm UTC](https://www.ruby-forum.com/t/custom-error-page-for-post-queries/231485 "2014-08-11T12:27:55Z")

</div>

Hi! Current infrastructure: We have nginx/1.7.1 as frontend for java application. We have special requirement, when java app goes down we need response with 204 error code instead 500 or 502 and this works like in c…

---

## [Upstream: ip\_hash and backup](https://www.ruby-forum.com/t/upstream-ip-hash-and-backup/208937)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [August 11, 2014, 12:16pm UTC](https://www.ruby-forum.com/t/upstream-ip-hash-and-backup/208937 "2014-08-11T12:16:37Z")

</div>

I’m using the upstream module to load balance between 2 back-end servers, using ip\_hash to effect a kind of ‘stickiness’ (making it more likely that subsequent requests from the same client will go to the same back-en…

---

## [Regarding ERROR: XmlParseFailure](https://www.ruby-forum.com/t/regarding-error-xmlparsefailure/231463)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [August 11, 2014, 6:14am UTC](https://www.ruby-forum.com/t/regarding-error-xmlparsefailure/231463 "2014-08-11T06:14:03Z")

</div>

Hi, I am getting this error : ERROR: XmlParseFailure Can anybody please let me know what is the issue? Below is my nginx.conf. map $uri $key2 { ~^(?\<key\>/\[^/\]+)/ $key; default ""; } …

---

## [Regarding support of server backup parameter](https://www.ruby-forum.com/t/regarding-support-of-server-backup-parameter/231478)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [August 11, 2014, 2:24am UTC](https://www.ruby-forum.com/t/regarding-support-of-server-backup-parameter/231478 "2014-08-11T02:24:52Z")

</div>

Hi, I am getting below error while loading nginx configuration file. 2014/08/10 10:06:33 \[emerg\] 816#0: invalid parameter “backup” in /etc/nginx/nginx.conf:39 Below is the configuration file :- upstream backend { h…

---

## [Multiple nginx instances share same proxy cache storage](https://www.ruby-forum.com/t/multiple-nginx-instances-share-same-proxy-cache-storage/231361)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 6\
**Last updated:** [August 11, 2014, 2:24am UTC](https://www.ruby-forum.com/t/multiple-nginx-instances-share-same-proxy-cache-storage/231361 "2014-08-11T02:24:51Z")

</div>

I am thinking about setting up multiple nginx instances share single proxy cache storage using NAS, NFS or some kind of distributed file system. Cache key will be the same for all nginx instances. Will this theory w…

---

## [SSL client Authentication](https://www.ruby-forum.com/t/ssl-client-authentication/231352)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [August 11, 2014, 1:43am UTC](https://www.ruby-forum.com/t/ssl-client-authentication/231352 "2014-08-11T01:43:26Z")

</div>

Hi !! I am using nginx as reverse proxy with HTTPS on both client side as well as server side . My ssl configuration looks like below :- ssl\_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2; ssl\_ciphe…

---

## [Specific permissions for fastcgi\_temp\_path?](https://www.ruby-forum.com/t/specific-permissions-for-fastcgi-temp-path/231482)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [August 10, 2014, 8:20pm UTC](https://www.ruby-forum.com/t/specific-permissions-for-fastcgi-temp-path/231482 "2014-08-10T20:20:29Z")

</div>

Hi all, I looked into /src/core/ngx\_file.c and noticed that ngx\_conf\_set\_access\_slot() defines the access type. What is the variable I need to use in order to force new files to be written 0640, instead of 0600 as a…

---

## [Change nevents type in ngx\_poll\_module.c to ngx\_uint\_t](https://www.ruby-forum.com/t/change-nevents-type-in-ngx-poll-module-c-to-ngx-uint-t/231427)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [August 10, 2014, 3:18pm UTC](https://www.ruby-forum.com/t/change-nevents-type-in-ngx-poll-module-c-to-ngx-uint-t/231427 "2014-08-10T15:18:15Z")

</div>

Hello, In ngx\_epoll\_module.c, nevents is defined as ngx\_uint\_t and ev-\>index is also a ngx\_uint\_t. So I proposed to change nevents type. I’m not sure about variable declaration: ngx\_int\_t i, nready; ngx…

---

## [Building nginx with TCP\_FASTOPEN enabled](https://www.ruby-forum.com/t/building-nginx-with-tcp-fastopen-enabled/231467)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 6\
**Last updated:** [August 10, 2014, 3:01pm UTC](https://www.ruby-forum.com/t/building-nginx-with-tcp-fastopen-enabled/231467 "2014-08-10T15:01:01Z")

</div>

Hello, I’ve tried to use “fastopen” in the listen directive but nginx gave me an error that the option is unkown. I’m using nginx 1.7.4 on Debian Wheezy 3.14.13 kernel. I’ve compiled nginx myself. When I run the co…

---

## [$request\_uri for subrequest](https://www.ruby-forum.com/t/request-uri-for-subrequest/231477)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [August 10, 2014, 1:13pm UTC](https://www.ruby-forum.com/t/request-uri-for-subrequest/231477 "2014-08-10T13:13:21Z")

</div>

Hi, I have problems setting up SSI with NGinx and PHP5-FPM. The problem I have is (indrectly) related to this rule fastcgi\_param REQUEST\_URI $request\_uri; During the SSI-subrequest the variable $request\_uri still po…

---

## [Nginx-1.7.4](https://www.ruby-forum.com/t/nginx-1-7-4/231375)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [August 9, 2014, 9:29pm UTC](https://www.ruby-forum.com/t/nginx-1-7-4/231375 "2014-08-09T21:29:01Z")

</div>

Changes with nginx 1.7.4 05 Aug 2014 \*) Security: pipelined commands were not discarded after STARTTLS command in SMTP proxy (CVE-2014-3556); the bug had appeared in 1.5.6. …

---

## [Nginx as a proxy to node.js application - server busy](https://www.ruby-forum.com/t/nginx-as-a-proxy-to-node-js-application-server-busy/231466)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [August 9, 2014, 6:18pm UTC](https://www.ruby-forum.com/t/nginx-as-a-proxy-to-node-js-application-server-busy/231466 "2014-08-09T18:18:54Z")

</div>

I have a freebsd server running two jails on one jail i have nginx and and on the other jail i am running a node.js application. Here is the nginx.conf file: when viewing the site, every other request seems to time …

---

## [Any suggestions for active Ubuntu nginx-mainline repo?](https://www.ruby-forum.com/t/any-suggestions-for-active-ubuntu-nginx-mainline-repo/231435)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [August 8, 2014, 10:58pm UTC](https://www.ruby-forum.com/t/any-suggestions-for-active-ubuntu-nginx-mainline-repo/231435 "2014-08-08T22:58:07Z")

</div>

For a while I was quite happily using the ubuntu nginx ppa repo to get my nginx mainline fix (NGINX Mainline (1.15.x) : “Nginx” team) However, for some weeks now, it seems to have become inactive and “stuck” on 1.7…

---

## [Use /g (global) regex modifier in map](https://www.ruby-forum.com/t/use-g-global-regex-modifier-in-map/231442)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 6\
**Last updated:** [August 8, 2014, 8:27pm UTC](https://www.ruby-forum.com/t/use-g-global-regex-modifier-in-map/231442 "2014-08-08T20:27:54Z")

</div>

Is it possible somehow to use the global modifier in a regex map match? I’m trying to use the map directive to filter the query string leaving my proxy\_cache\_key with only known parameters. For the first test I’ve tri…

---

## [Can NGINX add an empty payload](https://www.ruby-forum.com/t/can-nginx-add-an-empty-payload/231455)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [August 8, 2014, 7:16pm UTC](https://www.ruby-forum.com/t/can-nginx-add-an-empty-payload/231455 "2014-08-08T19:16:12Z")

</div>

Hello I have taken the NGINX training but the following question was not covered. I am hoping I can get some help from the community. Thank you in advance. Can NGINX add empty (or static non empty) payload to a requ…

---

## [Proposal to remove unused macro ngx\_sleep()](https://www.ruby-forum.com/t/proposal-to-remove-unused-macro-ngx-sleep/231429)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [August 8, 2014, 5:38pm UTC](https://www.ruby-forum.com/t/proposal-to-remove-unused-macro-ngx-sleep/231429 "2014-08-08T17:38:01Z")

</div>

Hello, ngx\_sleep() macro is unused. regards, yves HG changeset patch User Yves Crespinremoved\_email\_address@domain.invalid Date 1407420247 -7200 Node ID 8120c2937062998497546a3ecb38b78bb302fe34 Parent 97fcc941…

---

## [Implemention ngx\_strstrn() is no longer exposed](https://www.ruby-forum.com/t/implemention-ngx-strstrn-is-no-longer-exposed/231449)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [August 8, 2014, 3:05pm UTC](https://www.ruby-forum.com/t/implemention-ngx-strstrn-is-no-longer-exposed/231449 "2014-08-08T15:05:02Z")

</div>

Hello, Implementing ngx\_strstrn () is exposed. This can be misleading. regards, yves HG changeset patch User Yves Crespinremoved\_email\_address@domain.invalid Date 1407491120 -7200 Node ID 505ec91d60fefa776bc2c7f…

---

## [Initialize ngx\_buf\_t in ngx\_create\_temp\_buf()](https://www.ruby-forum.com/t/initialize-ngx-buf-t-in-ngx-create-temp-buf/231443)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [August 8, 2014, 2:58pm UTC](https://www.ruby-forum.com/t/initialize-ngx-buf-t-in-ngx-create-temp-buf/231443 "2014-08-08T14:58:29Z")

</div>

Hello, I don’t understand why b-\>last is used to initialize b-\>end. Why it’s not : b-\>end = b-\>start + size; Regards, yves HG changeset patch User Yves Crespinremoved\_email\_address@domain.invalid Date 140748093…

---

## [Gzip if in location example](https://www.ruby-forum.com/t/gzip-if-in-location-example/231448)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [August 8, 2014, 11:55am UTC](https://www.ruby-forum.com/t/gzip-if-in-location-example/231448 "2014-08-08T11:55:13Z")

</div>

Syntax: gzip on | off; Default: gzip off; Context: http, server, location, if in location Is there an example of this “if in location” usage ? Posted at Nginx Forum:

---

## [Windows nginx 1.7.5.1 WhiteRabbit](https://www.ruby-forum.com/t/windows-nginx-1-7-5-1-whiterabbit/231432)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [August 7, 2014, 9:02pm UTC](https://www.ruby-forum.com/t/windows-nginx-1-7-5-1-whiterabbit/231432 "2014-08-07T21:02:01Z")

</div>

19:48 7-8-2014 nginx 1.7.5.1 WhiteRabbit Based on nginx 1.7.5 (7-8-2014, last changeset 5801:ab48149b77a6) with; Openssl-1.0.1i (CVE-2014-3508, CVE-2014-5139, CVE-2014-3509, CVE-2014-3505, CVE-2014-3506, CVE-2014-350…

---

## [Error compiling NGINX 1.7.4 with openssl 1.0.1i statically on RHEL7 system](https://www.ruby-forum.com/t/error-compiling-nginx-1-7-4-with-openssl-1-0-1i-statically-on-rhel7-system/231433)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [August 7, 2014, 7:11pm UTC](https://www.ruby-forum.com/t/error-compiling-nginx-1-7-4-with-openssl-1-0-1i-statically-on-rhel7-system/231433 "2014-08-07T19:11:20Z")

</div>

Hi… I’m trying to compile NGINX 1.7.4 com openssl 1.0.1i statically on RHEL7. I’ve downloaded the SPRM file from http://nginx.org/packages/mainline/rhel/7/SRPMS/nginx-1.7.4-1.el7.ngx.src.rpm and I modified the nginx…

---

## [Use format %ui according to i type in ngx\_poll\_module.c](https://www.ruby-forum.com/t/use-format-ui-according-to-i-type-in-ngx-poll-module-c/231428)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [August 7, 2014, 3:20pm UTC](https://www.ruby-forum.com/t/use-format-ui-according-to-i-type-in-ngx-poll-module-c/231428 "2014-08-07T15:20:26Z")

</div>

Hello, I notice a wrong format %d for ngx\_uint\_t variable in ngx\_poll\_module.c. Regards, yves HG changeset patch User Yves Crespinremoved\_email\_address@domain.invalid Date 1407416683 -7200 Node ID 97fcc94109c0ea…

---

## [Print format for nevents](https://www.ruby-forum.com/t/print-format-for-nevents/231408)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 5\
**Last updated:** [August 7, 2014, 3:08pm UTC](https://www.ruby-forum.com/t/print-format-for-nevents/231408 "2014-08-07T15:08:32Z")

</div>

Hello, nevents is an ngx\_int\_t, so the print format must be “%i”. Regards, yves static ngx\_int\_t nevents; — a/nginx-1.7.4/src/event/modules/ngx\_poll\_module.c +++ b/nginx-1.7.4/src/event/modules/ngx\_poll\_modul…

---

## [Re: Why cannot the same path for cache be used several times?](https://www.ruby-forum.com/t/re-why-cannot-the-same-path-for-cache-be-used-several-times/231416)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [August 7, 2014, 6:01am UTC](https://www.ruby-forum.com/t/re-why-cannot-the-same-path-for-cache-be-used-several-times/231416 "2014-08-07T06:01:33Z")

</div>

On Wed, Aug 6, 2014 at 8:47 AM, itpp2012 removed\_email\_address@domain.invalid wrote: keys\_zone is memory, the other a ‘file’ path, I could imagine a ‘cachehash’ used could overwrite the other. ​I thought of that​, b…

---

## [Windows nginx 1.7.4.2 WhiteRabbit](https://www.ruby-forum.com/t/windows-nginx-1-7-4-2-whiterabbit/231204)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 15\
**Last updated:** [August 6, 2014, 3:53pm UTC](https://www.ruby-forum.com/t/windows-nginx-1-7-4-2-whiterabbit/231204 "2014-08-06T15:53:36Z")

</div>

22:40 26-7-2014 nginx 1.7.4.2 WhiteRabbit “I’m late! I’m late! For a very important date! No time to say hello, goodbye! I’m late! I’m late! I’m late!” The nginx WhiteRabbit release is here! Based on nginx 1.7.4 (25-…

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

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