# NGINX

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

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

---

## [Errorlog shows GET timeout; Accesslog shows POST](https://www.ruby-forum.com/t/errorlog-shows-get-timeout-accesslog-shows-post/244655)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [May 23, 2016, 2:46pm UTC](https://www.ruby-forum.com/t/errorlog-shows-get-timeout-accesslog-shows-post/244655 "2016-05-23T14:46:39Z")

</div>

Hello! Background We’ve implemented a lightweight APIGW on nginx 1.9.9 using openresty packages to customize the handling/proxying logic. We have dozens clients that are able to leverage this implementation just fi…

---

## [Nginx on high load (upstream prematurely closed connection while reading response header from upstre](https://www.ruby-forum.com/t/nginx-on-high-load-upstream-prematurely-closed-connection-while-reading-response-header-from-upstre/244642)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 6\
**Last updated:** [May 23, 2016, 11:14am UTC](https://www.ruby-forum.com/t/nginx-on-high-load-upstream-prematurely-closed-connection-while-reading-response-header-from-upstre/244642 "2016-05-23T11:14:36Z")

</div>

Dear Guys, I am facing strange issue, during load test and peak load of more than 3k concurrent users, get below errors in nginx logs continuously. 2016/05/18 11:23:28 \[error\] 15510#0: \*6853 upstream prematurely clos…

---

## [Reading config during run time](https://www.ruby-forum.com/t/reading-config-during-run-time/244660)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [May 23, 2016, 9:01am UTC](https://www.ruby-forum.com/t/reading-config-during-run-time/244660 "2016-05-23T09:01:24Z")

</div>

Hi, In my module i want to read config values run time. is there method available in nginx which i can use. Please suggest. Regards, Pankaj

---

## [Rewrite regex with percent signs](https://www.ruby-forum.com/t/rewrite-regex-with-percent-signs/244657)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [May 22, 2016, 7:18pm UTC](https://www.ruby-forum.com/t/rewrite-regex-with-percent-signs/244657 "2016-05-22T19:18:56Z")

</div>

Hello, I am helping an admin sort out some 404 issues by using some rewrite which have generally been successful. However we have a couple of cases that are a bit mysterious and hope you can help explain. This is fro…

---

## [CPU load monitoring / dynamically limit number of connections to server](https://www.ruby-forum.com/t/cpu-load-monitoring-dynamically-limit-number-of-connections-to-server/244651)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 5\
**Last updated:** [May 22, 2016, 3:39am UTC](https://www.ruby-forum.com/t/cpu-load-monitoring-dynamically-limit-number-of-connections-to-server/244651 "2016-05-22T03:39:37Z")

</div>

Hi to all, Is there a way to monitor the busyness of my dedicated server cpu cores and stop serving new connections passed a given cpu load threshold? Put another way, what is the standard approach/technique to dynam…

---

## [TLS for a generic TCP session?](https://www.ruby-forum.com/t/tls-for-a-generic-tcp-session/244644)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 3\
**Last updated:** [May 19, 2016, 5:50pm UTC](https://www.ruby-forum.com/t/tls-for-a-generic-tcp-session/244644 "2016-05-19T17:50:52Z")

</div>

Hey All, I was looking over the feature differences between nginx and nginx-plus and its not clear to me if nginx by itself supports TLS termination for a generic TCP session. If it does not support TLS termination …

---

## [Range request with Accept-Encoding:“gzip,deflate" for \*.pdf.\* file-name pattern returns 416](https://www.ruby-forum.com/t/range-request-with-accept-encoding-gzip-deflate-for-pdf-file-name-pattern-returns-416/244589)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [May 19, 2016, 1:44pm UTC](https://www.ruby-forum.com/t/range-request-with-accept-encoding-gzip-deflate-for-pdf-file-name-pattern-returns-416/244589 "2016-05-19T13:44:21Z")

</div>

We are facing this weird behavior wherein if a range request with Accept-Encoding:“gzip,deflate" is called for a url having .pdf as part of path, nginx would throw 416 even if the range is well within overall size of …

---

## [Fully hiding localhost:8080 with Nginx as reverse proxy?](https://www.ruby-forum.com/t/fully-hiding-localhost-8080-with-nginx-as-reverse-proxy/244632)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [May 18, 2016, 9:04pm UTC](https://www.ruby-forum.com/t/fully-hiding-localhost-8080-with-nginx-as-reverse-proxy/244632 "2016-05-18T21:04:16Z")

</div>

Hello list, As mentioned earlier, Nginx and Apache are currently playing nicely together, with Apache handling all my OSTicket needs. However, I’m now trying to send mail from OSTicket, and while OST claims success, I…

---

## [Include file with "if" statements](https://www.ruby-forum.com/t/include-file-with-if-statements/244643)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [May 18, 2016, 8:29pm UTC](https://www.ruby-forum.com/t/include-file-with-if-statements/244643 "2016-05-18T20:29:12Z")

</div>

I have several different “templates” for location and most of templates have common part like this: /etc/nginx/nginx.conf: http { include /etc/nginx/conf.d/\*.conf; } /etc/nginx/conf.d/config12345.conf: server { …

---

## [Is there a way to send back HTTP2 trailers?](https://www.ruby-forum.com/t/is-there-a-way-to-send-back-http2-trailers/244634)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 3\
**Last updated:** [May 18, 2016, 1:30pm UTC](https://www.ruby-forum.com/t/is-there-a-way-to-send-back-http2-trailers/244634 "2016-05-18T13:30:21Z")

</div>

Is there a way to send back HTTP2 trailers? Posted at Nginx Forum:

---

## [Gzip issue with Safari](https://www.ruby-forum.com/t/gzip-issue-with-safari/244626)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 5\
**Last updated:** [May 18, 2016, 9:38am UTC](https://www.ruby-forum.com/t/gzip-issue-with-safari/244626 "2016-05-18T09:38:27Z")

</div>

Hi all, we have successfully enable gziping on the server side and it works perfectly with Chrome and FF (it auto compress the files that we want). We’re using compressed assets of type: .dds and .pvr. MIME-types for …

---

## [Weak ETags and on-the-fly gzipping](https://www.ruby-forum.com/t/weak-etags-and-on-the-fly-gzipping/245590)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 8\
**Last updated:** [May 18, 2016, 6:43am UTC](https://www.ruby-forum.com/t/weak-etags-and-on-the-fly-gzipping/245590 "2016-05-18T06:43:47Z")

</div>

I am serving dynamic requests behind the Nginx HTTP server. HTTP requests are mostly from mobile HTTP clients. That’s is why I care about two things. Do not send the same representation twice: Use ETag caching mech…

---

## [Websocket Validation](https://www.ruby-forum.com/t/websocket-validation/244640)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [May 17, 2016, 8:56pm UTC](https://www.ruby-forum.com/t/websocket-validation/244640 "2016-05-17T20:56:06Z")

</div>

Hello, I use nginx as a proxy, and establish a webscoket between client and backend.I validate user’s cookies before establish WS and when WS is in use I validate cookies on backend periodically. With this set up i…

---

## [Serving website with Apache, with Nginx as interface?](https://www.ruby-forum.com/t/serving-website-with-apache-with-nginx-as-interface/244616)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 11\
**Last updated:** [May 17, 2016, 7:50pm UTC](https://www.ruby-forum.com/t/serving-website-with-apache-with-nginx-as-interface/244616 "2016-05-17T19:50:40Z")

</div>

Hello all, Here’s what I’m trying to do. I have two sites, sd1.mysite.com and sd2.mysite.com. The fun part is that sd1 is a Flask app, served by Nginx. However, sd2 is OSTicket, which must be served by Apache, it see…

---

## [Limit\_req\_zone values](https://www.ruby-forum.com/t/limit-req-zone-values/244623)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [May 17, 2016, 7:05pm UTC](https://www.ruby-forum.com/t/limit-req-zone-values/244623 "2016-05-17T19:05:41Z")

</div>

Greetings, I have the limit\_req\_zone working great in testing environment with the following values limit\_req\_zone $server\_name zone=perserver:10m rate=5r/s; limit\_req zone=perserver burst=5; The site has up to 750 …

---

## [Access and Error Log file for Nginx stream server configuration](https://www.ruby-forum.com/t/access-and-error-log-file-for-nginx-stream-server-configuration/244639)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [May 17, 2016, 5:46pm UTC](https://www.ruby-forum.com/t/access-and-error-log-file-for-nginx-stream-server-configuration/244639 "2016-05-17T17:46:14Z")

</div>

Seems access\_log and error\_log options are not available in stream server section. If its available, can you please share some example config for me ?. Thanks. Posted at Nginx Forum:

---

## [Proxy\_cache is not working](https://www.ruby-forum.com/t/proxy-cache-is-not-working/244638)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [May 17, 2016, 3:11pm UTC](https://www.ruby-forum.com/t/proxy-cache-is-not-working/244638 "2016-05-17T15:11:26Z")

</div>

nginx is not caching anything. Every request that’s supposed to be cached has “http cacheable: 0” in debug log. Test request is a static page with headers like those \< HTTP/1.1 200 OK \< Date: Tue, 17 May 2016 12:23:…

---

## [Reverse proxying exchange with rpc/mapi over http](https://www.ruby-forum.com/t/reverse-proxying-exchange-with-rpc-mapi-over-http/244637)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [May 17, 2016, 1:37pm UTC](https://www.ruby-forum.com/t/reverse-proxying-exchange-with-rpc-mapi-over-http/244637 "2016-05-17T13:37:58Z")

</div>

Hello, is it possible to make a reverse proxy for exchange with all features working (activesync, rpc over http, mapi over http, etc…) with the free version of nginx. Or is this only possible with nginx plus? I do no…

---

## [DNS Caching Issue For community version](https://www.ruby-forum.com/t/dns-caching-issue-for-community-version/244609)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 11\
**Last updated:** [May 16, 2016, 12:27pm UTC](https://www.ruby-forum.com/t/dns-caching-issue-for-community-version/244609 "2016-05-16T12:27:21Z")

</div>

Troubled up in DNS caching of the IP address for a given DNS name. Adding the solution given below does not solve the problem of DNS caching in NGINX. resolver 8.8.8.8; set $upstream\_endpoint https://example.net:808…

---

## [Ngx\_http\_mp4\_module. Help me!](https://www.ruby-forum.com/t/ngx-http-mp4-module-help-me/244625)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [May 16, 2016, 6:51am UTC](https://www.ruby-forum.com/t/ngx-http-mp4-module-help-me/244625 "2016-05-16T06:51:27Z")

</div>

I compiling nginx for streaming videos on my web site by these options : nginx version: nginx/1.9.15 built by gcc 4.4.7 20120313 (Red Hat 4.4.7-16) (GCC) built with OpenSSL 1.0.1e-fips 11 Feb 2013 TLS SNI support ena…

---

## [Nginx reverse proxy with rtmp](https://www.ruby-forum.com/t/nginx-reverse-proxy-with-rtmp/244622)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [May 14, 2016, 5:22pm UTC](https://www.ruby-forum.com/t/nginx-reverse-proxy-with-rtmp/244622 "2016-05-14T17:22:53Z")

</div>

I am trying to use nginx reverse proxy to connect to a nginx rtmp server 2 servers a and b a = nginx with rtmp ( videos loacated here ) b = nginx reverse proxy the reverse proxy is working good with http to stream my…

---

## [Using proxy\_redirect correctly](https://www.ruby-forum.com/t/using-proxy-redirect-correctly/244619)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [May 13, 2016, 5:32pm UTC](https://www.ruby-forum.com/t/using-proxy-redirect-correctly/244619 "2016-05-13T17:32:59Z")

</div>

Hi all, My proxy seems to be working, at least so far. I browse to sd2.mysite.com and find the OSTicket installer. Since I’ve removed the OST site from Nginx, I know Apache is kicking it like it should be. The only p…

---

## [Nginx doesn't seem to log all accesses (some uwsgi accesses are missing)](https://www.ruby-forum.com/t/nginx-doesnt-seem-to-log-all-accesses-some-uwsgi-accesses-are-missing/216192)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [May 13, 2016, 2:47pm UTC](https://www.ruby-forum.com/t/nginx-doesnt-seem-to-log-all-accesses-some-uwsgi-accesses-are-missing/216192 "2016-05-13T14:47:40Z")

</div>

Hi everybody, I hope the message does NOT show up three times. My news client always reports errors and I don’t know whether the message was sent out or not. I’m having following setup: nginx \<-unix\_socket-\> uwsgi -\>…

---

## [NGINX: Set/use requests with fully qualified domain name (= FQDN)](https://www.ruby-forum.com/t/nginx-set-use-requests-with-fully-qualified-domain-name-fqdn/244603)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [May 13, 2016, 10:30am UTC](https://www.ruby-forum.com/t/nginx-set-use-requests-with-fully-qualified-domain-name-fqdn/244603 "2016-05-13T10:30:38Z")

</div>

Hi @ all. NGINX proxy\_pass works great with our internal servers. Thanks for the good work. Now I want to proxy\_pass an external server and I have to use our proxy for this to get an external connection. I checked …

---

## [Limit\_req\_zone](https://www.ruby-forum.com/t/limit-req-zone/244606)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 4\
**Last updated:** [May 12, 2016, 12:07am UTC](https://www.ruby-forum.com/t/limit-req-zone/244606 "2016-05-12T00:07:58Z")

</div>

Greetings fellow nginx users, Is the limit\_req\_zone module included in the core version ? I’t doesn’t show up when I list the modules via nginx -V although when I add the directive into my nginx configuration it ap…

---

## [Anyone running OSTicket with Nginx?](https://www.ruby-forum.com/t/anyone-running-osticket-with-nginx/244605)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 12\
**Last updated:** [May 11, 2016, 11:50pm UTC](https://www.ruby-forum.com/t/anyone-running-osticket-with-nginx/244605 "2016-05-11T23:50:26Z")

</div>

Hi all, I’m using Nginx (obviously), but I want to try OSTicket. The only supported servers for it are, for whatever reason, Apache and IIS. I hate IIS, and I don’t know how I’d run Apache and Nginx together (plus N…

---

## [Timeout with UWSGI?](https://www.ruby-forum.com/t/timeout-with-uwsgi/244599)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 9\
**Last updated:** [May 11, 2016, 4:48pm UTC](https://www.ruby-forum.com/t/timeout-with-uwsgi/244599 "2016-05-11T16:48:39Z")

</div>

Hi all, My Flask app is finally up and running, using UWSGI! This is great, but I’m hitting a problem if the app takes too long. It talks to an AS400, so can sometimes take a while to gather the requested informatio…

---

## [Change client\_body\_buffer\_size from 16K to 256K made the nginx logs size from 50M to 1G](https://www.ruby-forum.com/t/change-client-body-buffer-size-from-16k-to-256k-made-the-nginx-logs-size-from-50m-to-1g/244602)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 4\
**Last updated:** [May 11, 2016, 3:50pm UTC](https://www.ruby-forum.com/t/change-client-body-buffer-size-from-16k-to-256k-made-the-nginx-logs-size-from-50m-to-1g/244602 "2016-05-11T15:50:13Z")

</div>

Hi Team, I always use below configuration to record the post date of my webserver (for security resaon) http { … log\_format main '$remote\_addr - $remote\_user \[$time\_local\] “$request” ’ '$status $body\_bytes\_sent …

---

## [Ssl test causes nginx to crash (SSL\_do\_handshake() failed)](https://www.ruby-forum.com/t/ssl-test-causes-nginx-to-crash-ssl-do-handshake-failed/244564)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 10\
**Last updated:** [May 11, 2016, 1:07pm UTC](https://www.ruby-forum.com/t/ssl-test-causes-nginx-to-crash-ssl-do-handshake-failed/244564 "2016-05-11T13:07:49Z")

</div>

I tried to do use the ssltest from qualys.com: SSL Server Test (Powered by Qualys SSL Labs) Every time i run it, my nginx server (ssl terminator) crashes and i have to restart it. I get the following error in my ngi…

---

## [Replace apache with nginx](https://www.ruby-forum.com/t/replace-apache-with-nginx/244570)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [May 10, 2016, 11:09pm UTC](https://www.ruby-forum.com/t/replace-apache-with-nginx/244570 "2016-05-10T23:09:33Z")

</div>

Hello there. I want to migrate my website only on nginx. I setup everything, but have issue with my htaccess. Here is the file: \[root@server\]# cat .htaccess RewriteEngine On RewriteRule ^audio-(.).html$ %{ENV:BASE…

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

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