# NGINX

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

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

---

## [Proxy\_read\_timeout vs proxy\_next\_upstream\_timeout](https://www.ruby-forum.com/t/proxy-read-timeout-vs-proxy-next-upstream-timeout/244374)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 3\
**Last updated:** [April 1, 2016, 12:33am UTC](https://www.ruby-forum.com/t/proxy-read-timeout-vs-proxy-next-upstream-timeout/244374 "2016-04-01T00:33:39Z")

</div>

Hi If you set read timeout 2 min and next upstream timeout 50 seconds, will nginx break the current connection at 50 second or will it let the read finish until 2min? Thanks Frank

---

## [Nginx configuration](https://www.ruby-forum.com/t/nginx-configuration/244384)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [March 31, 2016, 10:05pm UTC](https://www.ruby-forum.com/t/nginx-configuration/244384 "2016-03-31T22:05:51Z")

</div>

Hello, I need to create a web interface to configure my nginx reverse proxy. I only know how to configure nginx with the configuration file. Is there another way to change the configurations, like a REST API, so I c…

---

## [DNSBL with mail proxy](https://www.ruby-forum.com/t/dnsbl-with-mail-proxy/244385)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [March 31, 2016, 8:18pm UTC](https://www.ruby-forum.com/t/dnsbl-with-mail-proxy/244385 "2016-03-31T20:18:22Z")

</div>

Hello, I started using nginx as a proxy for incoming mail, for DDoS protection and hiding of origin. I have it set up as follows: mail { server\_name foo.bar.com; auth\_http localhost:8080/auth-smtppass.php; se…

---

## [Nginx counterpart of haproxy's acl dst](https://www.ruby-forum.com/t/nginx-counterpart-of-haproxys-acl-dst/244376)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [March 31, 2016, 9:00am UTC](https://www.ruby-forum.com/t/nginx-counterpart-of-haproxys-acl-dst/244376 "2016-03-31T09:00:10Z")

</div>

Hi, does nginx have a variable, that represents the destination IP address and port, like it was seen/used by the client at the connection time? Thank you. WBR, Alexey

---

## [$upstream\_http\_NAME and $sent\_http\_NAME vars not available in certain scopes](https://www.ruby-forum.com/t/upstream-http-name-and-sent-http-name-vars-not-available-in-certain-scopes/244381)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [March 30, 2016, 5:37pm UTC](https://www.ruby-forum.com/t/upstream-http-name-and-sent-http-name-vars-not-available-in-certain-scopes/244381 "2016-03-30T17:37:47Z")

</div>

Hi all I am developing a proxy service which uses NGINX to reverse proxy, kind of CDN-like but very specific to our needs. During this. I have hit an issue which I think is a bug but wanted to ask in case anyone can…

---

## [Re: multiple named captures in map regex](https://www.ruby-forum.com/t/re-multiple-named-captures-in-map-regex/244379)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [March 30, 2016, 3:06pm UTC](https://www.ruby-forum.com/t/re-multiple-named-captures-in-map-regex/244379 "2016-03-30T15:06:29Z")

</div>

Thank you, Francis! That’s great. Cole

---

## [Nginx-1.9.13](https://www.ruby-forum.com/t/nginx-1-9-13/244375)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [March 29, 2016, 7:59pm UTC](https://www.ruby-forum.com/t/nginx-1-9-13/244375 "2016-03-29T19:59:03Z")

</div>

Changes with nginx 1.9.13 29 Mar 2016 \*) Change: non-idempotent requests (POST, LOCK, PATCH) are no longer passed to the next server by default if a request has been sent to …

---

## [Packages for the dynamic modules. testing required](https://www.ruby-forum.com/t/packages-for-the-dynamic-modules-testing-required/244131)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [March 29, 2016, 7:10pm UTC](https://www.ruby-forum.com/t/packages-for-the-dynamic-modules-testing-required/244131 "2016-03-29T19:10:34Z")

</div>

Hello. Previously we built nginx with all modules, except those that required extra libraries. With dynamic modules it is possible to build them as the separate packages and nginx main package will not have extra dep…

---

## [Multiple named captures in map regex](https://www.ruby-forum.com/t/multiple-named-captures-in-map-regex/244371)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [March 29, 2016, 5:18pm UTC](https://www.ruby-forum.com/t/multiple-named-captures-in-map-regex/244371 "2016-03-29T17:18:24Z")

</div>

Hello, Is it possible to have more than one named capture in a map regex? When I try the following in a map: ~^/(?.)(?.) $a$b; …I get \[emerg\] 28486#0: unknown "a$b” variable. I’ve tried "$a$b” and "${a}${b}” with no…

---

## [Nginx generating different md5 sums for same key causing cache to become corrupt](https://www.ruby-forum.com/t/nginx-generating-different-md5-sums-for-same-key-causing-cache-to-become-corrupt/244373)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [March 29, 2016, 3:07pm UTC](https://www.ruby-forum.com/t/nginx-generating-different-md5-sums-for-same-key-causing-cache-to-become-corrupt/244373 "2016-03-29T15:07:33Z")

</div>

Hello, Currently we use nginx 1.8.1 on redhat 7. We have reverse proxy caching enabled but are experiencing unexpected behaviour. Our caching key is $scheme$request\_method$host$request\_uri$. On the first visit to …

---

## [Limit\_req\_status & limit\_conn\_status code](https://www.ruby-forum.com/t/limit-req-status-limit-conn-status-code/244369)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [March 29, 2016, 2:31am UTC](https://www.ruby-forum.com/t/limit-req-status-limit-conn-status-code/244369 "2016-03-29T02:31:39Z")

</div>

Following RFC 6585 https://tools.ietf.org/html/rfc6585, there is a HTTP status code for ‘too many requests’, which applies well to the nginx module limiting requests, and by extension to the module limiting connectio…

---

## [Deny in http {}, get 500 response , how to log this?](https://www.ruby-forum.com/t/deny-in-http-get-500-response-how-to-log-this/244366)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [March 29, 2016, 12:33am UTC](https://www.ruby-forum.com/t/deny-in-http-get-500-response-how-to-log-this/244366 "2016-03-29T00:33:04Z")

</div>

Hi All, I’m using deny to deny some IPs for my server. http { deny 192.168.1.123; # this is an example server { error\_page 403 /error/403.htm; error\_page 404 /error/404.htm; error\_page 502 /error/502.htm; error\_p…

---

## [Nginx HttpSecureLinkModule php streaming](https://www.ruby-forum.com/t/nginx-httpsecurelinkmodule-php-streaming/244354)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [March 28, 2016, 5:36pm UTC](https://www.ruby-forum.com/t/nginx-httpsecurelinkmodule-php-streaming/244354 "2016-03-28T17:36:34Z")

</div>

I have for hours been trying to understand and figure out how this is working, and searched and tried a lot, but still… No hair left on my head :frowning: Sources for trial and errors http://nginx.org/en/docs/http/n…

---

## [Proxy\_ssl\_certificate not working as expected](https://www.ruby-forum.com/t/proxy-ssl-certificate-not-working-as-expected/244270)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [March 28, 2016, 12:44pm UTC](https://www.ruby-forum.com/t/proxy-ssl-certificate-not-working-as-expected/244270 "2016-03-28T12:44:29Z")

</div>

Hello, I’m using nginx as a proxy to a backend server. The backend server is also using nginx and enforcing client certificate authentication using the ssl\_client\_certificate and ssl\_verify\_client directives. In my …

---

## [Nginx http2 pictures timeout](https://www.ruby-forum.com/t/nginx-http2-pictures-timeout/244297)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 5\
**Last updated:** [March 28, 2016, 6:00am UTC](https://www.ruby-forum.com/t/nginx-http2-pictures-timeout/244297 "2016-03-28T06:00:50Z")

</div>

Hi All, After I upgrade nginx to 1.9.12 and enabled http2 for my website. I found a wired issue related with download pictures. My website is a photo-sharing websites. So on each page there are about 100-200 picture…

---

## [Mod\_rewrite with Nginx?](https://www.ruby-forum.com/t/mod-rewrite-with-nginx/244359)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 3\
**Last updated:** [March 27, 2016, 10:12pm UTC](https://www.ruby-forum.com/t/mod-rewrite-with-nginx/244359 "2016-03-27T22:12:16Z")

</div>

Hello is the first time that NGINX uses, and I’m turning my .htaccess to use it. Unfortunately the access is really long, and it is my first time I do this. I converted the .htaccess with nginx online tool, but unfo…

---

## [Sendy in foreign language](https://www.ruby-forum.com/t/sendy-in-foreign-language/244356)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [March 26, 2016, 11:12pm UTC](https://www.ruby-forum.com/t/sendy-in-foreign-language/244356 "2016-03-26T23:12:39Z")

</div>

I have Sendy running fine on a Debian box and served by Nginx. I have installed French language files to enable Sendy to operate in French. This works perfectly under Apache on my local computer but not on the produc…

---

## [Homepage cache and cookies](https://www.ruby-forum.com/t/homepage-cache-and-cookies/244345)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 8\
**Last updated:** [March 26, 2016, 11:26am UTC](https://www.ruby-forum.com/t/homepage-cache-and-cookies/244345 "2016-03-26T11:26:24Z")

</div>

I am trying to cache the home page to a site. I am only caching the home page. If I put in a condition to check for cookies existing before caching, everything works as expected, but there is a high BYPASS rate due to…

---

## [Why is nginx returning a 301 redirect in my reverse-proxy to a REST service?](https://www.ruby-forum.com/t/why-is-nginx-returning-a-301-redirect-in-my-reverse-proxy-to-a-rest-service/244352)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [March 26, 2016, 4:10am UTC](https://www.ruby-forum.com/t/why-is-nginx-returning-a-301-redirect-in-my-reverse-proxy-to-a-rest-service/244352 "2016-03-26T04:10:02Z")

</div>

I have a REST service with an endpoint ‘registrations’ running in a Docker container and it maps port 5000 to port 5001 on the Docker host. My /etc/nginx/conf.d/default.conf contains: upstream registration-api { serv…

---

## [Unknown directive "flv"](https://www.ruby-forum.com/t/unknown-directive-flv/244350)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [March 26, 2016, 2:24am UTC](https://www.ruby-forum.com/t/unknown-directive-flv/244350 "2016-03-26T02:24:53Z")

</div>

Hi, I have compiled nginx with allmodules: nginx version: nginx/1.9.12 built by gcc 5.2.1 20151010 (Ubuntu 5.2.1-22ubuntu2) built with OpenSSL 1.0.2d 9 Jul 2015 TLS SNI support enabled configure arguments: --prefix…

---

## [Simple auth question for nested sections](https://www.ruby-forum.com/t/simple-auth-question-for-nested-sections/244329)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 8\
**Last updated:** [March 24, 2016, 6:37pm UTC](https://www.ruby-forum.com/t/simple-auth-question-for-nested-sections/244329 "2016-03-24T18:37:39Z")

</div>

apologies for the simple question, but i could only find the opposite situation in the list archives and I haven’t had to reconfigure some of these routes in years! i have works location /foo { proxy\_pass http://1…

---

## [How do I install module Rate Limit](https://www.ruby-forum.com/t/how-do-i-install-module-rate-limit/244340)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [March 24, 2016, 6:11pm UTC](https://www.ruby-forum.com/t/how-do-i-install-module-rate-limit/244340 "2016-03-24T18:11:56Z")

</div>

Hello friends, could you help me? as I install module for nginx Rate Limit? Thank you Posted at Nginx Forum:

---

## [CIS NGINX Security Benchmark help](https://www.ruby-forum.com/t/cis-nginx-security-benchmark-help/244335)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [March 23, 2016, 4:02pm UTC](https://www.ruby-forum.com/t/cis-nginx-security-benchmark-help/244335 "2016-03-23T16:02:17Z")

</div>

Hello, The Center for Internet Security is looking for some folks to help in the creation of a security benchmark for NGINX. We have a wide range of benchmark guides that are created by the cyber security community a…

---

## [502 Bad Gateway once running php on command line](https://www.ruby-forum.com/t/502-bad-gateway-once-running-php-on-command-line/244332)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 5\
**Last updated:** [March 23, 2016, 10:26am UTC](https://www.ruby-forum.com/t/502-bad-gateway-once-running-php-on-command-line/244332 "2016-03-23T10:26:23Z")

</div>

I have just installed: FreeBSD 10.2 Nginx 1.8.1 PHP 5.5.33 Nginx works fine with PHP that the web sites seems ok to run php pages. However, once I run php on command line (e.g. php -v), the web site will get “502 B…

---

## [Vulnerability related Doubts in Nginx](https://www.ruby-forum.com/t/vulnerability-related-doubts-in-nginx/244326)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 4\
**Last updated:** [March 22, 2016, 1:22pm UTC](https://www.ruby-forum.com/t/vulnerability-related-doubts-in-nginx/244326 "2016-03-22T13:22:14Z")

</div>

Hi We are running Nginx version 1.8 ( nginx-1.8.1-1.amzn1.ngx.x86\_64 ) in our servers. So in the Vulnerability Assessment, Nessus gave report that it is vulnerable. Current version :- nginx-1.8.1-1.amzn1.ngx…

---

## [The Second International Conference on Electronics and Software Science (ICESS2016)](https://www.ruby-forum.com/t/the-second-international-conference-on-electronics-and-software-science-icess2016/244322)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [March 22, 2016, 5:29am UTC](https://www.ruby-forum.com/t/the-second-international-conference-on-electronics-and-software-science-icess2016/244322 "2016-03-22T05:29:04Z")

</div>

You are invited to participate in \*The Second International Conference on Electronics and Software Science (ICESS2016) http://sdiwc.net/conferences/second-international-conference-on-electronics-and-software-science/ …

---

## [The Fourth International Conference on Digital Information Processing, E-Business and Cloud Computin](https://www.ruby-forum.com/t/the-fourth-international-conference-on-digital-information-processing-e-business-and-cloud-computin/244321)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [March 22, 2016, 5:28am UTC](https://www.ruby-forum.com/t/the-fourth-international-conference-on-digital-information-processing-e-business-and-cloud-computin/244321 "2016-03-22T05:28:29Z")

</div>

You are invited to participate in The Fourth International Conference on Digital Information Processing, E-Business and Cloud Computing (DIPECC2016) http://sdiwc.net/conferences/dipecc2016/ that will be held in Asia …

---

## [Nginx seems to just be serving default page](https://www.ruby-forum.com/t/nginx-seems-to-just-be-serving-default-page/244318)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [March 22, 2016, 1:25am UTC](https://www.ruby-forum.com/t/nginx-seems-to-just-be-serving-default-page/244318 "2016-03-22T01:25:28Z")

</div>

I am brand new to nginx and have it running on a VM (mynginx.example.com) and running. I am trying to get it to serve content under /opt/mysite (where the homepage is located at /opt/mysite/index.html). Below is the…

---

## [Does nginx support linger\_close as client?](https://www.ruby-forum.com/t/does-nginx-support-linger-close-as-client/244315)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [March 21, 2016, 5:29pm UTC](https://www.ruby-forum.com/t/does-nginx-support-linger-close-as-client/244315 "2016-03-21T17:29:58Z")

</div>

Hi guys i run nginx as a proxy, it became a client when connecting to a upstream server. i want to close the connection with SO\_LINGER option when i read the full data, because linger\_close send RST to upstream se…

---

## [Workers CPU leak](https://www.ruby-forum.com/t/workers-cpu-leak/244126)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 18\
**Last updated:** [March 21, 2016, 1:01pm UTC](https://www.ruby-forum.com/t/workers-cpu-leak/244126 "2016-03-21T13:01:16Z")

</div>

Hello, I have strange issuses with nginx workers. For some time after start Nginx I notice that some process of workers cause high load to CPU ( principally sys CPU). At first I’ve got syscall traces from one of such…

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

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