# NGINX

**URL:** https://www.ruby-forum.com/c/server/nginx/21.md?page=15

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

---

## [What modules are using the query term "token" for access control?](https://www.ruby-forum.com/t/what-modules-are-using-the-query-term-token-for-access-control/243881)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 3\
**Last updated:** [January 23, 2016, 11:21pm UTC](https://www.ruby-forum.com/t/what-modules-are-using-the-query-term-token-for-access-control/243881 "2016-01-23T23:21:26Z")

</div>

I have seen that couple media sites are using the “token” query term for access control to some media content and I was wondering what module can do that? For examples the request: http://example.com/media/111111.mp4…

---

## [Is ngx\_http\_perl\_module stable enough to use in high traffic production environment?](https://www.ruby-forum.com/t/is-ngx-http-perl-module-stable-enough-to-use-in-high-traffic-production-environment/243900)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [January 23, 2016, 11:09pm UTC](https://www.ruby-forum.com/t/is-ngx-http-perl-module-stable-enough-to-use-in-high-traffic-production-environment/243900 "2016-01-23T23:09:45Z")

</div>

I use perl a lot, and I noticed http://nginx.org/en/docs/http/ngx\_http\_perl\_module.html for several years has been documented as “The module is experimental, caveat emptor applies.” So I have been somewhat avoiding …

---

## [Limit\_req off?](https://www.ruby-forum.com/t/limit-req-off/243865)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [January 23, 2016, 12:23pm UTC](https://www.ruby-forum.com/t/limit-req-off/243865 "2016-01-23T12:23:40Z")

</div>

I have a location with limit\_req and would like to set up an inner path without the limit but with other settings same, e.g. location / { limit\_req …; proxy\_pass …; location /private/ { limit\_req off; } } How c…

---

## [Nginx/1.9.9 with modsecurity/2.9.0 crashes with segfault and worker process exited on signal 11](https://www.ruby-forum.com/t/nginx-1-9-9-with-modsecurity-2-9-0-crashes-with-segfault-and-worker-process-exited-on-signal-11/243812)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 10\
**Last updated:** [January 23, 2016, 3:50am UTC](https://www.ruby-forum.com/t/nginx-1-9-9-with-modsecurity-2-9-0-crashes-with-segfault-and-worker-process-exited-on-signal-11/243812 "2016-01-23T03:50:10Z")

</div>

Dear all Fascinated by nginx, I attempted to integrate it with modsecurity. Unfortunately, ever when modsecurity is enabled, nginx reports a sefault in sysmessages. Searching the web did not reveal any solution, i.e.…

---

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

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [January 22, 2016, 9:50pm UTC](https://www.ruby-forum.com/t/windows-nginx-network-sharing-mapped-hard-drive-issue/243861 "2016-01-22T21:50:54Z")

</div>

So i have two machines in different locations. Web server is C:/ Storage Server is Z:/ (This one is the external mapped hard drive) Now when you upload files to nginx especialy large files in my tests 2GB. Nginx the…

---

## [Directio sendfile aio](https://www.ruby-forum.com/t/directio-sendfile-aio/243888)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 6\
**Last updated:** [January 22, 2016, 12:56pm UTC](https://www.ruby-forum.com/t/directio-sendfile-aio/243888 "2016-01-22T12:56:23Z")

</div>

From an nginx book i read setting ########### http { sendfile on; sendfile\_max\_chunk 512k; aio threads=default; directio 4m; ############ is good as it use (if i understand it correctly) sendfile for files less …

---

## [OpenResty 1.9.7.2 released](https://www.ruby-forum.com/t/openresty-1-9-7-2-released/243887)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [January 22, 2016, 6:29am UTC](https://www.ruby-forum.com/t/openresty-1-9-7-2-released/243887 "2016-01-22T06:29:03Z")

</div>

Hi folks I am happy to announce the new formal release, 1.9.7.2, of the OpenResty web platform based on NGINX and Lua: https://openresty.org/#Download Both the (portable) source code distribution and the Win32 binary …

---

## [What is the recommended way to swap hash consistent servers (with least sudden hash change)](https://www.ruby-forum.com/t/what-is-the-recommended-way-to-swap-hash-consistent-servers-with-least-sudden-hash-change/243885)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [January 22, 2016, 1:59am UTC](https://www.ruby-forum.com/t/what-is-the-recommended-way-to-swap-hash-consistent-servers-with-least-sudden-hash-change/243885 "2016-01-22T01:59:10Z")

</div>

Hello, If I have the following config upstream ImageCluster { server 10.1.1.1; server 10.1.1.2; server 10.1.1.3; hash $cachekey consistent; } and wish to swap 10.1.1.3 to 10.1.1.5 would it be better to delete 1…

---

## [I'm not sure how "hash $cachekey" works](https://www.ruby-forum.com/t/im-not-sure-how-hash-cachekey-works/243879)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [January 22, 2016, 1:49am UTC](https://www.ruby-forum.com/t/im-not-sure-how-hash-cachekey-works/243879 "2016-01-22T01:49:14Z")

</div>

I have a question about “hash $cachekey” consistent; Would the following Config 1, Config 2, Config 3 be exactly the same of different? i.e. if I swap the configurations would the cache keys stay consistent? The reas…

---

## [Unencoded Location: header when redirecting](https://www.ruby-forum.com/t/unencoded-location-header-when-redirecting/243874)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [January 21, 2016, 12:50am UTC](https://www.ruby-forum.com/t/unencoded-location-header-when-redirecting/243874 "2016-01-21T00:50:47Z")

</div>

Were seeing the following behavior in nginx 1.4.6: User navigates to location w/ spaces in the URL (“http://example.org/When%20Harry%20Met%20Sally”). The location points to a directory on the filesystem with spaces…

---

## [Nginx mod security module issue](https://www.ruby-forum.com/t/nginx-mod-security-module-issue/243872)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [January 20, 2016, 1:55pm UTC](https://www.ruby-forum.com/t/nginx-mod-security-module-issue/243872 "2016-01-20T13:55:53Z")

</div>

Hi All I have complied the\* nginx 1.9.9\* with ModSecurity support . and configured the nginx,conf as fallows Nginx Version : 1.9.9 Modsecurity Version : 2.9 nginx -V nginx version: nginx/1.9.9 built by gcc 4.8.4…

---

## [Log rate limits violations without enforcing them](https://www.ruby-forum.com/t/log-rate-limits-violations-without-enforcing-them/243869)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [January 20, 2016, 11:59am UTC](https://www.ruby-forum.com/t/log-rate-limits-violations-without-enforcing-them/243869 "2016-01-20T11:59:02Z")

</div>

Hi list, Before applying new rate limit values, I would like to check if these rules will have an impact on legitimate clients. Is there a way to either set these rules in a “log only” mode, or a tool to analyse exis…

---

## [Php not working from aliased subdir](https://www.ruby-forum.com/t/php-not-working-from-aliased-subdir/243863)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [January 19, 2016, 9:59pm UTC](https://www.ruby-forum.com/t/php-not-working-from-aliased-subdir/243863 "2016-01-19T21:59:00Z")

</div>

Hello, I have been adding (to my nginx config) directories outside of the default “root” tree like: location ~ /newlocation(.\*) { alias /var/websites/externaldir$1; } This works OK. however, I find that the a…

---

## [High number connections-writing stuck](https://www.ruby-forum.com/t/high-number-connections-writing-stuck/243676)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 5\
**Last updated:** [January 19, 2016, 2:29pm UTC](https://www.ruby-forum.com/t/high-number-connections-writing-stuck/243676 "2016-01-19T14:29:47Z")

</div>

Hi, Recently we added a ‘thread\_pool’ directive to our main configuration. A few hours later we saw a huge increase in the connections\_writing stat as reported by stub\_status module. This number reached ± 3800 and is…

---

## [Rewriting a "multipart/form-data" request to a "binary" "x-www-form-urlencoded" request](https://www.ruby-forum.com/t/rewriting-a-multipart-form-data-request-to-a-binary-x-www-form-urlencoded-request/243852)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [January 17, 2016, 1:24am UTC](https://www.ruby-forum.com/t/rewriting-a-multipart-form-data-request-to-a-binary-x-www-form-urlencoded-request/243852 "2016-01-17T01:24:37Z")

</div>

Hi, everyone! I would like to know if there’s a simple way to have Nginx rewrite a “multipart/form-data” request to a “x-www-form-urlencoded” request with only a (binary) file as the content. That is, I want the rewr…

---

## [Intermittent SSL Handshake Errors](https://www.ruby-forum.com/t/intermittent-ssl-handshake-errors/234027)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 28\
**Last updated:** [January 16, 2016, 12:42am UTC](https://www.ruby-forum.com/t/intermittent-ssl-handshake-errors/234027 "2016-01-16T00:42:01Z")

</div>

Hi, We are using round-robin DNS to distribute requests to three servers all running identically configured nginx. Connections then go upstream to HAProxy and then to our Rails app. About two weeks ago, users began t…

---

## [Writing a module-syncing upstreams from conf-servers](https://www.ruby-forum.com/t/writing-a-module-syncing-upstreams-from-conf-servers/243825)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [January 13, 2016, 7:58am UTC](https://www.ruby-forum.com/t/writing-a-module-syncing-upstreams-from-conf-servers/243825 "2016-01-13T07:58:32Z")

</div>

Hi Nginxers,I’m writing a new module that syncs upstreams from conf-servers(consul, etcd…). During the nginx offering service, the module makes requests to the conf-server(consul, etcd…) to pull upstreams backend list…

---

## [Logging](https://www.ruby-forum.com/t/logging/243787)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 4\
**Last updated:** [January 12, 2016, 1:56pm UTC](https://www.ruby-forum.com/t/logging/243787 "2016-01-12T13:56:05Z")

</div>

Is it possible to log websocket requests in nginx access log ? Or is this logging restricted only to http requests ? tammini Posted at Nginx Forum:

---

## [Nginx / LRO on vmxnet3 / missing ACKs](https://www.ruby-forum.com/t/nginx-lro-on-vmxnet3-missing-acks/243821)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [January 12, 2016, 1:42pm UTC](https://www.ruby-forum.com/t/nginx-lro-on-vmxnet3-missing-acks/243821 "2016-01-12T13:42:38Z")

</div>

Hello, I’m currently investigating an issue with Linux (3.13.0), nginx (1.6.2), vmxnet3 (1.2.0.0-k-NAPI), IPv6 connections and large receive offload (LRO) enabled. The workflow we are investigating is a POST of a sma…

---

## [Client Authentication Problem when access from android phone](https://www.ruby-forum.com/t/client-authentication-problem-when-access-from-android-phone/243800)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [January 12, 2016, 1:59am UTC](https://www.ruby-forum.com/t/client-authentication-problem-when-access-from-android-phone/243800 "2016-01-12T01:59:53Z")

</div>

Hi there, I’m trying to set up reverse proxy server with client authentication. — Environment — My CA is 2 tier. Root CA - intermediate CA - Client Certificate. — Problem Discripton — When I accessed proxy server …

---

## [Limit reqs per user / bot](https://www.ruby-forum.com/t/limit-reqs-per-user-bot/243795)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 5\
**Last updated:** [January 8, 2016, 8:52pm UTC](https://www.ruby-forum.com/t/limit-reqs-per-user-bot/243795 "2016-01-08T20:52:45Z")

</div>

I want to limit requests to 1 per second for each user, counting a bot that makes requests from multiple ips as a single user. Does this make sense: map $http\_user\_agent $single\_user { default $binary\_remote\_addr; ~…

---

## [Reverse proxy, proxy\_pass](https://www.ruby-forum.com/t/reverse-proxy-proxy-pass/243790)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [January 8, 2016, 7:03pm UTC](https://www.ruby-forum.com/t/reverse-proxy-proxy-pass/243790 "2016-01-08T19:03:31Z")

</div>

Hi there, Here is a part of my nginx config file: location /test/ { proxy\_pass http://localhost:1024/; } If I have it as above the GET /test/xxxx request will be sent to port 1024 as /xxxx and it also decodes the …

---

## [Debugging 504 Gateway Timeout and its actual cause and solution](https://www.ruby-forum.com/t/debugging-504-gateway-timeout-and-its-actual-cause-and-solution/243775)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 6\
**Last updated:** [January 8, 2016, 5:34pm UTC](https://www.ruby-forum.com/t/debugging-504-gateway-timeout-and-its-actual-cause-and-solution/243775 "2016-01-08T17:34:43Z")

</div>

Hi, We are running following stack on our web server Varnish + Nginx + FastCGI (php-fpm) on RHEL 6.6 Its a dynamic website with different result sets everytime and has around 2 million url’s indexed with Google. I…

---

## [How to setup Nginx as REALLY static-cache reverse proxy](https://www.ruby-forum.com/t/how-to-setup-nginx-as-really-static-cache-reverse-proxy/233296)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [January 8, 2016, 2:03am UTC](https://www.ruby-forum.com/t/how-to-setup-nginx-as-really-static-cache-reverse-proxy/233296 "2016-01-08T02:03:31Z")

</div>

Hi, i love Nginx, but i have some specific problem. Nginx cache depends also on some browser-specific factors. In one project, we need to work with Nginx as “Static webpage mirror” for occasional outages or scheduled…

---

## [Nginx Vulnerability on FreeBSD](https://www.ruby-forum.com/t/nginx-vulnerability-on-freebsd/243777)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [January 5, 2016, 6:31am UTC](https://www.ruby-forum.com/t/nginx-vulnerability-on-freebsd/243777 "2016-01-05T06:31:08Z")

</div>

Hi, I am trying to do a security research experiment on FreeBSD. I try to test the Nginx Vulnerability CVE-2013-2028 on FreeBSD 10.1 x86-64, with Nginx 1.3.9/1.4.0. (CVE - CVE-2013-2028) However, most exploit sampl…

---

## [Tengine-2.1.2 released](https://www.ruby-forum.com/t/tengine-2-1-2-released/243770)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [January 4, 2016, 4:01am UTC](https://www.ruby-forum.com/t/tengine-2-1-2-released/243770 "2016-01-04T04:01:27Z")

</div>

Hi folks, We are very excited to announce that Tengine-2.1.2 (stable version) has been released. You can either checkout the source code from GitHub: GitHub - alibaba/tengine: A distribution of Nginx with some advance…

---

## [Nginx configuration problem when splitting across front & backends, when using php?](https://www.ruby-forum.com/t/nginx-configuration-problem-when-splitting-across-front-backends-when-using-php/243772)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [January 4, 2016, 1:18am UTC](https://www.ruby-forum.com/t/nginx-configuration-problem-when-splitting-across-front-backends-when-using-php/243772 "2016-01-04T01:18:28Z")

</div>

I installed an Nginx server this weekend. I got the Symfony PHP framework, and a test app, running on it, using php-fpm, and a simple all-in-one Nginx config. I’m trying to figure out splitting front- and back-ends us…

---

## [Debian Jessie, Nginx, PHP, UWSGI quick start](https://www.ruby-forum.com/t/debian-jessie-nginx-php-uwsgi-quick-start/243764)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [January 3, 2016, 3:01am UTC](https://www.ruby-forum.com/t/debian-jessie-nginx-php-uwsgi-quick-start/243764 "2016-01-03T03:01:53Z")

</div>

Hello, I had to host a potential unsecure PHP web application. So I though about writing a small c programm which creates a network, filesystem, pid, uts, and ipc namespace and run php-fpm inside it. I needd from the…

---

## [Re: config reverse proxy nginx to apache2](https://www.ruby-forum.com/t/re-config-reverse-proxy-nginx-to-apache2/243766)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [January 2, 2016, 1:28pm UTC](https://www.ruby-forum.com/t/re-config-reverse-proxy-nginx-to-apache2/243766 "2016-01-02T13:28:07Z")

</div>

Bonjour, I have made some modification on my nginx reverse proxy server. I have add these lines: listen 445; server\_name \*.domain.org; ssl on; ssl\_certificate /etc/ssl/certs/fil…

---

## [Config reverse proxy nginx vers apache2](https://www.ruby-forum.com/t/config-reverse-proxy-nginx-vers-apache2/243761)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [January 2, 2016, 8:52am UTC](https://www.ruby-forum.com/t/config-reverse-proxy-nginx-vers-apache2/243761 "2016-01-02T08:52:23Z")

</div>

Bonjour tous, Et bonne anne. J’ai un serveur web Ubuntu/Apache2 + SSL avec 3 Vhosts (site1.domain.org site2.domain.org site3.domain.org)… Je voudrais monter en amont, sur la mme machine un reverse prox…

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

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