# NGINX

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

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

---

## [Erro 502 Bad Gateway help](https://www.ruby-forum.com/t/erro-502-bad-gateway-help/244886)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 3\
**Last updated:** [July 3, 2016, 3:03am UTC](https://www.ruby-forum.com/t/erro-502-bad-gateway-help/244886 "2016-07-03T03:03:04Z")

</div>

Hi I’m setting up a nginx as a reverse proxy but to try to see a site with drupal locally that have shown me 502 Bad Gateway error. this gets me in the logs. 016/07/02 00:51:57 \[error\] 18120#0: \*61 upstream sent unsup…

---

## [Understanding caching](https://www.ruby-forum.com/t/understanding-caching/244873)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [June 30, 2016, 7:18pm UTC](https://www.ruby-forum.com/t/understanding-caching/244873 "2016-06-30T19:18:12Z")

</div>

Hi there, i need to understand the caching options better. So, i have serval Questions :wink: I added some Cacherules like these: location /js { add\_header Cache-Control public; ad…

---

## [Caching issues with nginx as reverse-proxy](https://www.ruby-forum.com/t/caching-issues-with-nginx-as-reverse-proxy/244870)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [June 30, 2016, 2:51pm UTC](https://www.ruby-forum.com/t/caching-issues-with-nginx-as-reverse-proxy/244870 "2016-06-30T14:51:50Z")

</div>

Hi community, currently I am serving files with a size about 1,5G (static without dynamic content) using a hand full of nodes and nginx in reverse proxy setup. Caching works, …but not as expected. During the requests…

---

## [Caching issues with nginx as reverse-proxy](https://www.ruby-forum.com/t/caching-issues-with-nginx-as-reverse-proxy/244871)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [June 30, 2016, 9:14am UTC](https://www.ruby-forum.com/t/caching-issues-with-nginx-as-reverse-proxy/244871 "2016-06-30T09:14:46Z")

</div>

Hi, I am using nginx as a reverse proxy and using the proxy-cache, I use the request body as a cache key as shown below. location ^~ /mycachepath { proxy\_pass http://upstreamservers; proxy\_buffe…

---

## [Master process on reload](https://www.ruby-forum.com/t/master-process-on-reload/244868)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [June 29, 2016, 9:36pm UTC](https://www.ruby-forum.com/t/master-process-on-reload/244868 "2016-06-29T21:36:06Z")

</div>

Hello, Kind of basic question about nginx behavior here. On the docs page Controlling nginx, it is said : HUP → changing configuration, keeping up with a changed time zone (only for FreeBSD and Linux), starting new …

---

## [NGINX Help](https://www.ruby-forum.com/t/nginx-help/244869)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [June 29, 2016, 7:18pm UTC](https://www.ruby-forum.com/t/nginx-help/244869 "2016-06-29T19:18:49Z")

</div>

Hey everyone, We have started work on the CIS NGINX Benchmark and we are looking for folks to help give security recommendations so that we can add them into the benchmark. We have a good team of editors now but we…

---

## [Differing ocsp responses](https://www.ruby-forum.com/t/differing-ocsp-responses/244862)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 4\
**Last updated:** [June 29, 2016, 6:27pm UTC](https://www.ruby-forum.com/t/differing-ocsp-responses/244862 "2016-06-29T18:27:24Z")

</div>

I think I’ve got ocsp stapling setup correctly with Nginx (1.9.0). I am seeing valid OCSP responses however if I keep querying the same server I also frequently see “No response”. The OCSP responses are valid for seve…

---

## [Nginx can not use more than 1024 log?](https://www.ruby-forum.com/t/nginx-can-not-use-more-than-1024-log/244863)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [June 29, 2016, 1:45pm UTC](https://www.ruby-forum.com/t/nginx-can-not-use-more-than-1024-log/244863 "2016-06-29T13:45:15Z")

</div>

Hello everyone, I think the open file problem already mentioned. Here is the error 2016/06/28 21:12:41 \[emerg\] 1539#1539: open() “/var/log/nginx/xxx-xxx-xx\_error.log” failed (24: Too many open files) I use 531 virtual…

---

## [Query re: upstreams and two protocols](https://www.ruby-forum.com/t/query-re-upstreams-and-two-protocols/244861)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [June 28, 2016, 6:02pm UTC](https://www.ruby-forum.com/t/query-re-upstreams-and-two-protocols/244861 "2016-06-28T18:02:01Z")

</div>

Hi all, First time posting here so apologies for any faux pas etc… I have an nginx config where I have a server block, a location block and a proxypass in the location block, pointing to an upstream. The upstream ha…

---

## [Is there an original source linking Qualys report codes to codes in nginx configuration?](https://www.ruby-forum.com/t/is-there-an-original-source-linking-qualys-report-codes-to-codes-in-nginx-configuration/244859)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 3\
**Last updated:** [June 28, 2016, 5:45pm UTC](https://www.ruby-forum.com/t/is-there-an-original-source-linking-qualys-report-codes-to-codes-in-nginx-configuration/244859 "2016-06-28T17:45:05Z")

</div>

http://security.stackexchange.com/questions/128513/is-there-an-original-informaton-source-linking-output-of-qualys-ssl-report-to-se# The online tool at Qualys for testing webserver SSL configurations, SSL Server Test (…

---

## [Nginx and http/2](https://www.ruby-forum.com/t/nginx-and-http-2/244854)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 6\
**Last updated:** [June 28, 2016, 2:39am UTC](https://www.ruby-forum.com/t/nginx-and-http-2/244854 "2016-06-28T02:39:04Z")

</div>

I could use some help with this one - I took a big leap with enabling http/2 support and I got knocked back really quick. There seems to be an issue with POSTs and it seems to be more pronounced with ios devices (as m…

---

## [Configuring multiple nginx workers](https://www.ruby-forum.com/t/configuring-multiple-nginx-workers/244857)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [June 27, 2016, 5:17pm UTC](https://www.ruby-forum.com/t/configuring-multiple-nginx-workers/244857 "2016-06-27T17:17:07Z")

</div>

Hi Gurus, I am looking to develop a discovery service feature on top of nginx. I have read Redirecting… and I have a couple questions based on what I’ve seen in the code base. If I have multiple workers configured u…

---

## [Nginx Can't handeled More Perl CGI concurrent Request](https://www.ruby-forum.com/t/nginx-cant-handeled-more-perl-cgi-concurrent-request/244855)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [June 27, 2016, 2:45pm UTC](https://www.ruby-forum.com/t/nginx-cant-handeled-more-perl-cgi-concurrent-request/244855 "2016-06-27T14:45:49Z")

</div>

Hello We are using Fastcgi module in nginx with perl. We are trying to send 200 concurrent perl cgi request, but after increase the 250 concurrent request to specific script, We are getting below error in nginx log…

---

## [Double Redirect](https://www.ruby-forum.com/t/double-redirect/244814)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 13\
**Last updated:** [June 26, 2016, 4:48am UTC](https://www.ruby-forum.com/t/double-redirect/244814 "2016-06-26T04:48:51Z")

</div>

Hi everybody, I’m having an issue with our site. We’re trying to redirect all traffic of http://example.com to https://www.example.com. Testing out our site, what happens is that http://example.com redirects to htt…

---

## [Re: OpenSSL 1.1.0 Pre 6 patch for Nginx 1.11.\*\]](https://www.ruby-forum.com/t/re-openssl-1-1-0-pre-6-patch-for-nginx-1-11/244852)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [June 25, 2016, 4:07pm UTC](https://www.ruby-forum.com/t/re-openssl-1-1-0-pre-6-patch-for-nginx-1-11/244852 "2016-06-25T16:07:41Z")

</div>

Hi, Fixed. Consider it done. Thanks Sergey A. Osokin for the info and Kurt C. for the patch. Regards, Rik Ske

---

## [OpenSSL 1.1.0 Pre 6 patch for Nginx 1.11.\*](https://www.ruby-forum.com/t/openssl-1-1-0-pre-6-patch-for-nginx-1-11/244848)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 5\
**Last updated:** [June 25, 2016, 5:25am UTC](https://www.ruby-forum.com/t/openssl-1-1-0-pre-6-patch-for-nginx-1-11/244848 "2016-06-25T05:25:07Z")

</div>

Hi, Does someone have a OpenSSL 1.1.0 Pre 6 patch for Nginx 1.11.\*? So that it is possible to compile Nginx 1.11.\* with the latest OpenSSL 1.1.0 Pre 6 git clone (today). Want to test some new OpenSSL 1.1.0 features, …

---

## [Nginx limit\_rate based on file extension](https://www.ruby-forum.com/t/nginx-limit-rate-based-on-file-extension/244847)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [June 25, 2016, 2:39am UTC](https://www.ruby-forum.com/t/nginx-limit-rate-based-on-file-extension/244847 "2016-06-25T02:39:13Z")

</div>

Hello, I wonder is there any way to limit\_rate based on file extension in Nginx, for example, putting different rate limit rules on flv and mp4? I’ve tried this, but somehow returned file not found location ~\* .(flv…

---

## [Full URL parameter in nginx](https://www.ruby-forum.com/t/full-url-parameter-in-nginx/244841)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [June 24, 2016, 10:26pm UTC](https://www.ruby-forum.com/t/full-url-parameter-in-nginx/244841 "2016-06-24T22:26:51Z")

</div>

Hi, I have this nginx rule: rewrite ^/(.\*)?$ /index.cfm?event=saveURL=$1 last; Which makes this work: http://mywebsite.com/http://notherwebsite.com/page.html But if I pass a parameter like this: http://mywebsit…

---

## [nginScript (njs) feedback](https://www.ruby-forum.com/t/nginscript-njs-feedback/244834)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [June 24, 2016, 6:47pm UTC](https://www.ruby-forum.com/t/nginscript-njs-feedback/244834 "2016-06-24T18:47:48Z")

</div>

I’m trying to implement a routing logic with nginScript. I haven’t been successful because I miss important javascript feature. I would like to give you my feedback just in case it may help to improve njs (from more i…

---

## [Open () failed (24 too many open files](https://www.ruby-forum.com/t/open-failed-24-too-many-open-files/244843)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [June 24, 2016, 6:18pm UTC](https://www.ruby-forum.com/t/open-failed-24-too-many-open-files/244843 "2016-06-24T18:18:36Z")

</div>

I have a lot of below error in error.log. Open /home/user/… failed (24 too many open files. So i search in google and config below files. Limits.conf , sysctl.conf nginx.conf for adjust rlimit nofile. I set open file…

---

## [Problem with mailman behind nginx with TLS certs](https://www.ruby-forum.com/t/problem-with-mailman-behind-nginx-with-tls-certs/244849)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 3\
**Last updated:** [June 24, 2016, 5:36pm UTC](https://www.ruby-forum.com/t/problem-with-mailman-behind-nginx-with-tls-certs/244849 "2016-06-24T17:36:32Z")

</div>

mailman version 2.1.22 works fine for my webpages I set up such as http://cibolo.us/mailman/listinfo/open\_electroporator that URl is rewritten and permenanently directed to below: https://cibolo.us/mailman/listinfo/o…

---

## [Blocking all the URL except 1](https://www.ruby-forum.com/t/blocking-all-the-url-except-1/244846)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [June 24, 2016, 3:34pm UTC](https://www.ruby-forum.com/t/blocking-all-the-url-except-1/244846 "2016-06-24T15:34:26Z")

</div>

Hi We have a Nginx Box which acts as a reverse proxy to backend applications. We only want to allow traffic on http://example.com which internally redirects to specific application. Other then that, every other URI …

---

## [Udp balancing](https://www.ruby-forum.com/t/udp-balancing/244844)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 7\
**Last updated:** [June 23, 2016, 8:59pm UTC](https://www.ruby-forum.com/t/udp-balancing/244844 "2016-06-23T20:59:17Z")

</div>

Hi, In the default stream/udp/proxy setup, will nginx round robin every packet or will it remembers client and send all packets from same client to same upstream? Thanks Frank

---

## [Nginx core dump explodes](https://www.ruby-forum.com/t/nginx-core-dump-explodes/244802)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 16\
**Last updated:** [June 23, 2016, 7:41pm UTC](https://www.ruby-forum.com/t/nginx-core-dump-explodes/244802 "2016-06-23T19:41:01Z")

</div>

nginx version: nginx/1.11.1 built with OpenSSL 1.0.2h 3 May 2016 I try to debug those alerts currently, which only appear after a reload: 2016/06/17 13:10:49 \[alert\] 14624#0: \*15709 open socket #626 left in connecti…

---

## [Enable HTTP2 in one of several name-based servers](https://www.ruby-forum.com/t/enable-http2-in-one-of-several-name-based-servers/244835)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 5\
**Last updated:** [June 23, 2016, 3:36pm UTC](https://www.ruby-forum.com/t/enable-http2-in-one-of-several-name-based-servers/244835 "2016-06-23T15:36:14Z")

</div>

Hi, Is it possible to enable http2 in only one of several name-based servers? I have the following scenario: server { listen 443 ssl; server\_name www.example.com; ssl\_certificate www.example.com.crt; …

---

## [(52) Empty reply from server on slow response](https://www.ruby-forum.com/t/52-empty-reply-from-server-on-slow-response/244842)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [June 23, 2016, 2:24pm UTC](https://www.ruby-forum.com/t/52-empty-reply-from-server-on-slow-response/244842 "2016-06-23T14:24:58Z")

</div>

Hi, I have a node.js/express backend with nginx. Everything works fine except one request which gives back (52) Empty reply from server on slow responses ONLY (this request aggregates remote data, so in some very sp…

---

## [Nginx upstream https not proxing other pages(?)](https://www.ruby-forum.com/t/nginx-upstream-https-not-proxing-other-pages/244839)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 5\
**Last updated:** [June 23, 2016, 2:04pm UTC](https://www.ruby-forum.com/t/nginx-upstream-https-not-proxing-other-pages/244839 "2016-06-23T14:04:31Z")

</div>

Having odd situation, even don’t know how to search in google, how to describe it…Anyway I’m using Nginx and proxy’ing https traffic to upstream server. Everything is fine with http (with others domains) but can’t get …

---

## [Dynamic Cert/Key Lookup](https://www.ruby-forum.com/t/dynamic-cert-key-lookup/244838)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [June 23, 2016, 1:41pm UTC](https://www.ruby-forum.com/t/dynamic-cert-key-lookup/244838 "2016-06-23T13:41:09Z")

</div>

Hello, is it possible to dynamical get an cert/key from an database or an script for SNI? I want to dynamical add new domains with certs for an web app without changing the config oder restarting nginx: get SNI req…

---

## [Limit\_conn is not limiting the number of connections in my use case](https://www.ruby-forum.com/t/limit-conn-is-not-limiting-the-number-of-connections-in-my-use-case/244811)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [June 23, 2016, 9:33am UTC](https://www.ruby-forum.com/t/limit-conn-is-not-limiting-the-number-of-connections-in-my-use-case/244811 "2016-06-23T09:33:49Z")

</div>

Hello, I have a hard time understanding limit\_conn My NGINX has the configuration below. I would expect to see 16 connections on the backend server 192.168.10.131 defined in the “dynamic” directive. Yet I see ~50-60…

---

## [SSL handshake failed with mutual TLS](https://www.ruby-forum.com/t/ssl-handshake-failed-with-mutual-tls/244807)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 4\
**Last updated:** [June 22, 2016, 9:31pm UTC](https://www.ruby-forum.com/t/ssl-handshake-failed-with-mutual-tls/244807 "2016-06-22T21:31:48Z")

</div>

Hello everyone. I’m setting up an internal web server that will accept requests from another systems (mostly enterprise-ish something) authenticated with client certificates. We’ve successfully configured interaction…

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

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