# Server

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

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

---

## [FastCGI + fork](https://www.ruby-forum.com/t/fastcgi-fork/239606)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [March 6, 2014, 4:41pm UTC](https://www.ruby-forum.com/t/fastcgi-fork/239606 "2014-03-06T16:41:28Z")

</div>

Hi there, I rewrote FastCGI’s echo\_cpp.cpp example to ridirect another process e.g. ls output DIRECTLY (to achieve high performance) to client but unfortunately does not work as expected! P.S. if I simply read the pi…

---

## [Removing a request header in an access phase handler](https://www.ruby-forum.com/t/removing-a-request-header-in-an-access-phase-handler/245742)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 4\
**Last updated:** [March 6, 2014, 2:22pm UTC](https://www.ruby-forum.com/t/removing-a-request-header-in-an-access-phase-handler/245742 "2014-03-06T14:22:13Z")

</div>

Hi, I developing a handler for the access phase. In this handler I intend to remove a certain header. It seems that this is exceptionally hard to do - the only hint I have is how it is done in the headers\_more module…

---

## [Tengine-2.0.1 is released](https://www.ruby-forum.com/t/tengine-2-0-1-is-released/239604)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [March 6, 2014, 12:24pm UTC](https://www.ruby-forum.com/t/tengine-2-0-1-is-released/239604 "2014-03-06T12:24:27Z")

</div>

Hi folks, We are glad to announce that Tengine-2.0.1 (development version) has been released. You can either checkout the source code from github: GitHub - alibaba/tengine: A distribution of Nginx with some advanced f…

---

## [Nginx-1.4.6](https://www.ruby-forum.com/t/nginx-1-4-6/239555)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [March 6, 2014, 9:05am UTC](https://www.ruby-forum.com/t/nginx-1-4-6/239555 "2014-03-06T09:05:46Z")

</div>

Changes with nginx 1.4.6 04 Mar 2014 \*) Bugfix: the "client\_max\_body\_size" directive might not work when reading a request body using chunked transfer encoding; the bug had …

---

## [OCSP, ssl\_trusted\_certificate, and ssl\_stapling\_verify](https://www.ruby-forum.com/t/ocsp-ssl-trusted-certificate-and-ssl-stapling-verify/239586)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [March 6, 2014, 5:32am UTC](https://www.ruby-forum.com/t/ocsp-ssl-trusted-certificate-and-ssl-stapling-verify/239586 "2014-03-06T05:32:04Z")

</div>

In setting up OCSP stapling on 1.5.10 I’ve found it behaving in a way which is opposite to what I perceive is documented. There it states that the contents of ssl\_trusted\_certificate are not sent to the client. Howeve…

---

## [Confusion over apparently conflicting advice in guide/wiki/examples](https://www.ruby-forum.com/t/confusion-over-apparently-conflicting-advice-in-guide-wiki-examples/239535)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 6\
**Last updated:** [March 6, 2014, 12:32am UTC](https://www.ruby-forum.com/t/confusion-over-apparently-conflicting-advice-in-guide-wiki-examples/239535 "2014-03-06T00:32:23Z")

</div>

I’d call myself very much a beginner with NGiNX, but I’ve been looking further through the documentation, particularly the Pitfalls and Common Mistakes | NGINX page, and now I’m left with confusion! This page PHP Fast…

---

## [Nginx postgres problem](https://www.ruby-forum.com/t/nginx-postgres-problem/239553)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 6\
**Last updated:** [March 5, 2014, 11:33pm UTC](https://www.ruby-forum.com/t/nginx-postgres-problem/239553 "2014-03-05T23:33:31Z")

</div>

Hello All, I am newbie to Nginx and I am using Nginx with PostgreSQL database. When there is a http request to the server I want to extract one of the input variables in the request, query the Database and retrun the…

---

## [Nginx-1.5.11](https://www.ruby-forum.com/t/nginx-1-5-11/239554)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [March 5, 2014, 4:14pm UTC](https://www.ruby-forum.com/t/nginx-1-5-11/239554 "2014-03-05T16:14:42Z")

</div>

Changes with nginx 1.5.11 04 Mar 2014 \*) Security: memory corruption might occur in a worker process on 32-bit platforms while handling a specially crafted request by ngx\_http…

---

## [RE: NGINX proxy, 502 error while SSL handshaking to upstream](https://www.ruby-forum.com/t/re-nginx-proxy-502-error-while-ssl-handshaking-to-upstream/239575)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [March 5, 2014, 3:58pm UTC](https://www.ruby-forum.com/t/re-nginx-proxy-502-error-while-ssl-handshaking-to-upstream/239575 "2014-03-05T15:58:48Z")

</div>

Hello! On Tue, Feb 25, 2014 at 04:34:34PM +0100, Juan Matas wrote: Hello everyone, I’m new here and this my first post in this mailing list, \> \> Maybe this is a frequently answered question but I could’t find a sol…

---

## [Worker dies with a segfault error](https://www.ruby-forum.com/t/worker-dies-with-a-segfault-error/239381)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 10\
**Last updated:** [March 5, 2014, 3:57pm UTC](https://www.ruby-forum.com/t/worker-dies-with-a-segfault-error/239381 "2014-03-05T15:57:02Z")

</div>

Hello, Hello, I have an issue with segfaults especially when I send lot’s of traffic to the server. The hardware is an HP proliant G8 with 24 cores but I am using only one worker because the problem becames worse w…

---

## [Proxy\_pass with variable removes uri](https://www.ruby-forum.com/t/proxy-pass-with-variable-removes-uri/239573)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 9\
**Last updated:** [March 5, 2014, 2:42pm UTC](https://www.ruby-forum.com/t/proxy-pass-with-variable-removes-uri/239573 "2014-03-05T14:42:51Z")

</div>

Hi, I have a conf with two virtual hosts and a proxy-pass that is dependent on which host the request arrived to, like this: server { listen 80; server\_name x.com y.com; resolver 8.8.8.8; root /var/ww…

---

## [Redirect 301 alias domain](https://www.ruby-forum.com/t/redirect-301-alias-domain/239528)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 9\
**Last updated:** [March 5, 2014, 2:01pm UTC](https://www.ruby-forum.com/t/redirect-301-alias-domain/239528 "2014-03-05T14:01:38Z")

</div>

hi, i want to do a 301 redirect on all my alias domain for a domain but i stuck in an infinite loop! server{ listen 80; server\_name www.aaa.com www.aa.com … return 301 http://www.bbb.com$request\_uri; } server{ l…

---

## [High CPU Usage and NGINX Hangup](https://www.ruby-forum.com/t/high-cpu-usage-and-nginx-hangup/239540)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [March 5, 2014, 6:16am UTC](https://www.ruby-forum.com/t/high-cpu-usage-and-nginx-hangup/239540 "2014-03-05T06:16:45Z")

</div>

I am seeing my NGINX server randomly hangup. Multiple worker processes utilizing 100% CPU. I see the hangups in strace, but not quite sure what would be causing the issue. 0.000081 futex(0x7f563c893068, FUTEX\_WAIT, 0,…

---

## [Nginx as front end cache for WMS](https://www.ruby-forum.com/t/nginx-as-front-end-cache-for-wms/239537)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [March 5, 2014, 1:34am UTC](https://www.ruby-forum.com/t/nginx-as-front-end-cache-for-wms/239537 "2014-03-05T01:34:41Z")

</div>

I tried to set up nginx as a front end cache for my WMS server. The typical WMS request is: http://localhost:8080/geoserver/somestring/wms?version=1.1.1&service=WMS&request=WMS&… Below is my nginx configuration: /e…

---

## [Nginx security advisory (CVE-2014-0088)](https://www.ruby-forum.com/t/nginx-security-advisory-cve-2014-0088/239556)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [March 4, 2014, 4:26pm UTC](https://www.ruby-forum.com/t/nginx-security-advisory-cve-2014-0088/239556 "2014-03-04T16:26:15Z")

</div>

Hello! A bug in the experimental SPDY implementation in nginx 1.5.10 was found, which might allow an attacker to corrupt worker process memory by using a specially crafted request, potentially resulting in arbitrary c…

---

## [HttpLimitReqModule should return 429 not 503](https://www.ruby-forum.com/t/httplimitreqmodule-should-return-429-not-503/239534)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [March 4, 2014, 11:26am UTC](https://www.ruby-forum.com/t/httplimitreqmodule-should-return-429-not-503/239534 "2014-03-04T11:26:34Z")

</div>

Can we get a flag in HttpLimitReqModule to return a http status code 429 Too Many Requests instead of 503 Service Temporarily Unavailable since this is a more accurate status code? I know that 429 is not officially d…

---

## [Server block conflict](https://www.ruby-forum.com/t/server-block-conflict/239546)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [March 4, 2014, 11:24am UTC](https://www.ruby-forum.com/t/server-block-conflict/239546 "2014-03-04T11:24:12Z")

</div>

hi, got multiples server block for different domains, but it seem for fastcgi\_param PHP\_VALUE; they are in conflict all together here an exemple: server{ server\_name aaa; … location ~ .php$ { try\_files $uri =404; …

---

## [100% CPU nginx master process](https://www.ruby-forum.com/t/100-cpu-nginx-master-process/239513)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [March 3, 2014, 1:41pm UTC](https://www.ruby-forum.com/t/100-cpu-nginx-master-process/239513 "2014-03-03T13:41:34Z")

</div>

We are have issue that nginx master process is at 100% CPU and it stop responding to any request. The CPU utilization for all the workers are low. I am also seeing multiple nginx master process running at the same tim…

---

## [Best possible configuration for file upload](https://www.ruby-forum.com/t/best-possible-configuration-for-file-upload/239438)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [March 3, 2014, 12:59pm UTC](https://www.ruby-forum.com/t/best-possible-configuration-for-file-upload/239438 "2014-03-03T12:59:46Z")

</div>

We are using nginx for file uploads instead of directing to the backend servrs. Used lua openresty module to get the data in chunks in write it to local disk. File size could vary from few KB’s to 10MB. We are tuning…

---

## [ASP.NET pages with nginx](https://www.ruby-forum.com/t/asp-net-pages-with-nginx/239053)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 13\
**Last updated:** [March 2, 2014, 2:10pm UTC](https://www.ruby-forum.com/t/asp-net-pages-with-nginx/239053 "2014-03-02T14:10:47Z")

</div>

Hi all, i would like to use my aspx pages with raspberry and nginx but it seem to be not an easy goal… I have tried almost all “tutorials” on the web but i can not find solution for my issue. With lots of experimen…

---

## [Custom handler module - dynamic response with unknown content length](https://www.ruby-forum.com/t/custom-handler-module-dynamic-response-with-unknown-content-length/239487)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 5\
**Last updated:** [March 1, 2014, 6:27pm UTC](https://www.ruby-forum.com/t/custom-handler-module-dynamic-response-with-unknown-content-length/239487 "2014-03-01T18:27:40Z")

</div>

Hi there, I learned some about how to write a handler module from \[1\] and \[2\]. \[1\] \[2\] Emiller’s Guide to Nginx Module Development – Evan Miller But I need to rewrite \[1\] to send dynamically generated octect stream …

---

## [Using fastcgi\_cache with mediawiki](https://www.ruby-forum.com/t/using-fastcgi-cache-with-mediawiki/239494)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [March 1, 2014, 10:36am UTC](https://www.ruby-forum.com/t/using-fastcgi-cache-with-mediawiki/239494 "2014-03-01T10:36:18Z")

</div>

Hi, There is sample varnish config file for mediawiki that purge cache on updates ######### http://www.mediawiki.org/wiki/Manual:Varnish\_caching#Configuring\_Varnish\_3.x ######### Can the same setting be used in Loc…

---

## [Closed keepalive connection](https://www.ruby-forum.com/t/closed-keepalive-connection/211593)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [February 28, 2014, 1:28pm UTC](https://www.ruby-forum.com/t/closed-keepalive-connection/211593 "2014-02-28T13:28:42Z")

</div>

hi all nginx debug log the following problems,please help me nginx config user www www; worker\_processes 8; worker\_cpu\_affinity 00000001 00000010 00000100 00001000 00010000 00100000 01000000 10000000; worker\_rlim…

---

## [WordPress multisite](https://www.ruby-forum.com/t/wordpress-multisite/239478)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [February 28, 2014, 11:01am UTC](https://www.ruby-forum.com/t/wordpress-multisite/239478 "2014-02-28T11:01:33Z")

</div>

I have nginx running on a local intranet server. I’m trying to setup WordPress multisite with subdirectory, and WP is located in $document\_root/wordpress because there are many other folders directly under the documen…

---

## [Can proxy\_cache(nginx) in front of internal location?](https://www.ruby-forum.com/t/can-proxy-cache-nginx-in-front-of-internal-location/239471)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [February 28, 2014, 3:57am UTC](https://www.ruby-forum.com/t/can-proxy-cache-nginx-in-front-of-internal-location/239471 "2014-02-28T03:57:23Z")

</div>

I want to using proxy\_cache in front of internal location,but proxy\_pass not work.my code like following: location /proxy { proxy\_cache cache; proxy\_cache\_key $uri; proxy\_cache\_valid 200 304 10d; expires 10d; pro…

---

## [Odd issue with proxy\_pass serving wrong cached data](https://www.ruby-forum.com/t/odd-issue-with-proxy-pass-serving-wrong-cached-data/239423)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 5\
**Last updated:** [February 28, 2014, 1:56am UTC](https://www.ruby-forum.com/t/odd-issue-with-proxy-pass-serving-wrong-cached-data/239423 "2014-02-28T01:56:39Z")

</div>

I’m having an odd issue, and I’m not sure where to start. We’ve been implementing a number of NGINX servers recently, and one of them is doing a proxy\_pass to an older IIS7 server that we’ll be phasing out soon, which…

---

## [How to Nginx cache server setting](https://www.ruby-forum.com/t/how-to-nginx-cache-server-setting/239463)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [February 27, 2014, 4:48pm UTC](https://www.ruby-forum.com/t/how-to-nginx-cache-server-setting/239463 "2014-02-27T16:48:49Z")

</div>

Hi everyone I would like to make reverse proxy and cache server from Nginx using CentOS6.5, The setup of Nginx is as follows. But, cache information is not saved in /var/cache/nginx/hoge.com of proxy\_cache\_path. Is…

---

## [SSL\_STAPLING when network is unreachable](https://www.ruby-forum.com/t/ssl-stapling-when-network-is-unreachable/239448)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 4\
**Last updated:** [February 27, 2014, 12:58pm UTC](https://www.ruby-forum.com/t/ssl-stapling-when-network-is-unreachable/239448 "2014-02-27T12:58:07Z")

</div>

Hello, I’ve encountered a problem with nginx 1.5.10. I’m running nginx on a highly available system (2 cluster node). When node1 fails, node2 is automatically coming into play. A few days ago the internet connection…

---

## [Whitelisting Client Side Certificates](https://www.ruby-forum.com/t/whitelisting-client-side-certificates/239451)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 4\
**Last updated:** [February 27, 2014, 12:16pm UTC](https://www.ruby-forum.com/t/whitelisting-client-side-certificates/239451 "2014-02-27T12:16:51Z")

</div>

I’m currently working on POC for my company which is looking to use NGINX to validate API Requests using Client Side Certificates. Presently we have it setup so we are self signing/generating these certificates on th…

---

## [Primitive RBAC/AAA implementation in nginx config](https://www.ruby-forum.com/t/primitive-rbac-aaa-implementation-in-nginx-config/239441)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [February 26, 2014, 9:23pm UTC](https://www.ruby-forum.com/t/primitive-rbac-aaa-implementation-in-nginx-config/239441 "2014-02-26T21:23:40Z")

</div>

Hi all - I spent some time poking at a interesting problem that came up last night, and ended up with this primitive RBAC system, implemented in declarative nginx config. You might find it useful, or might be able to…

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

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