# NGINX

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

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

---

## [Problem with nginx + uwsgi](https://www.ruby-forum.com/t/problem-with-nginx-uwsgi/242700)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [July 17, 2015, 2:10pm UTC](https://www.ruby-forum.com/t/problem-with-nginx-uwsgi/242700 "2015-07-17T14:10:06Z")

</div>

Hi everybody, I’m having a problem with my nginx and uwsgi. I don’t really know what I’m doing wrong. Here is the configuration of nginx: server { listen 80; location /api/v1 { uws…

---

## [Health Monitoring](https://www.ruby-forum.com/t/health-monitoring/242690)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [July 17, 2015, 6:51am UTC](https://www.ruby-forum.com/t/health-monitoring/242690 "2015-07-17T06:51:59Z")

</div>

What is the best way to perform health check of Nginx server? Backup Nginx server is recommended, in case of risks with Primary Nginx server? Posted at Nginx Forum:

---

## [Lost connection after reading 2147479552 bytes with sendfile](https://www.ruby-forum.com/t/lost-connection-after-reading-2147479552-bytes-with-sendfile/242643)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [July 16, 2015, 8:38pm UTC](https://www.ruby-forum.com/t/lost-connection-after-reading-2147479552-bytes-with-sendfile/242643 "2015-07-16T20:38:54Z")

</div>

Hi! I’ve bumped into a strange problem lately, and though I’ve found a workaround I thought I’d post here to try and understand what the underlying issue can be in case it affects anyone else. The short version is: …

---

## [Nginx\_status](https://www.ruby-forum.com/t/nginx-status/242688)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [July 16, 2015, 7:25pm UTC](https://www.ruby-forum.com/t/nginx-status/242688 "2015-07-16T19:25:17Z")

</div>

Hi Team, I am configured to use nginx\_status and I can see the expected result on the browser Now, the query is: the /nginx\_status configuration is done on the server block. Is this required to be repeated for every…

---

## [Nginx with Organization PROXY server](https://www.ruby-forum.com/t/nginx-with-organization-proxy-server/242671)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 5\
**Last updated:** [July 15, 2015, 9:33pm UTC](https://www.ruby-forum.com/t/nginx-with-organization-proxy-server/242671 "2015-07-15T21:33:52Z")

</div>

Hello , on a linux box I define to move the traffic through some Centralize proxy server ( Organization one ) in order to configure the proxy from the command line I ran : export HTTP\_PROXY=“http://\<proxy\_server\>:” …

---

## [Storing $server\_addr in a variable VS using it directly in location block](https://www.ruby-forum.com/t/storing-server-addr-in-a-variable-vs-using-it-directly-in-location-block/242680)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [July 15, 2015, 2:27pm UTC](https://www.ruby-forum.com/t/storing-server-addr-in-a-variable-vs-using-it-directly-in-location-block/242680 "2015-07-15T14:27:25Z")

</div>

According to the documentation getting the value of $server\_addr to set a response header makes a system call, and can impact performance negativelyset $ip $server\_addr; server { location /health { add\_he…

---

## [Nginx for Postgres servers](https://www.ruby-forum.com/t/nginx-for-postgres-servers/242679)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [July 15, 2015, 1:54am UTC](https://www.ruby-forum.com/t/nginx-for-postgres-servers/242679 "2015-07-15T01:54:27Z")

</div>

I know nginx is designed to handle web and mail servers. Does it make sense to use to handle multiple (in our case 2) PostgreSQL database servers? Tom Ekberg Senior Computer Specialist, Lab Medicine University of Wa…

---

## [Nginx-1.9.3](https://www.ruby-forum.com/t/nginx-1-9-3/242674)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [July 14, 2015, 7:34pm UTC](https://www.ruby-forum.com/t/nginx-1-9-3/242674 "2015-07-14T19:34:43Z")

</div>

Changes with nginx 1.9.3 14 Jul 2015 \*) Change: duplicate "http", "mail", and "stream" blocks are now disallowed. \*) Feature: connection limiting in the stream module. \*) Fe…

---

## [Problem Nginx with SSL Settings active in IIS 7.5](https://www.ruby-forum.com/t/problem-nginx-with-ssl-settings-active-in-iis-7-5/242672)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [July 14, 2015, 5:22pm UTC](https://www.ruby-forum.com/t/problem-nginx-with-ssl-settings-active-in-iis-7-5/242672 "2015-07-14T17:22:41Z")

</div>

I’ve got the following problem with nginx working with IIS, when enabled the client certificate in the SSL Settings solicitation IIS, it performs two SSL handshake, a first without requesting the certificate after th…

---

## [Keepalive\_timeout, proxy\_send\_timeout, and proxy\_read\_timeout ignored](https://www.ruby-forum.com/t/keepalive-timeout-proxy-send-timeout-and-proxy-read-timeout-ignored/242662)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [July 14, 2015, 5:14am UTC](https://www.ruby-forum.com/t/keepalive-timeout-proxy-send-timeout-and-proxy-read-timeout-ignored/242662 "2015-07-14T05:14:56Z")

</div>

Hi, I’m using AWS Beanstalk with nginx in front of a Puma server serving Ruby on Rails. I have one URL that is for an EventSource so it is kept alive and data is streamed out. I was running into this problem Dropped …

---

## [New to nginx question about php-fpm](https://www.ruby-forum.com/t/new-to-nginx-question-about-php-fpm/242663)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [July 13, 2015, 9:17pm UTC](https://www.ruby-forum.com/t/new-to-nginx-question-about-php-fpm/242663 "2015-07-13T21:17:33Z")

</div>

I am new to nginx and had a question about php-fpm. It seems that php-fpm is being restarted at random times. I am not sure what is causing the restart, but when it does I am getting this in the php-fpm.log \[12-Jul…

---

## [Query Rewrite Help](https://www.ruby-forum.com/t/query-rewrite-help/242659)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [July 13, 2015, 3:39pm UTC](https://www.ruby-forum.com/t/query-rewrite-help/242659 "2015-07-13T15:39:19Z")

</div>

Hi, Am suffering with a bit of writer’s block when it comes to query rewrites. I’ve got a rewrite rule that looks like : rewrite ^/api/app/(\[^/\]+)/(\[^/\]+)/(\[^/\]+)?$ /api/app/$1.php?p=$2&q=$3? last; I am having two …

---

## [NGINX plus REST monitoring API query](https://www.ruby-forum.com/t/nginx-plus-rest-monitoring-api-query/242647)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [July 13, 2015, 10:31am UTC](https://www.ruby-forum.com/t/nginx-plus-rest-monitoring-api-query/242647 "2015-07-13T10:31:27Z")

</div>

HI I have deployed NGINX plus trial version in my setup. I have a query that if we use NGINX plus as a load balancer then is there any way to fetch the relationship between the virtual servers and its attached pool…

---

## [Wrong mimetype when served from nginx](https://www.ruby-forum.com/t/wrong-mimetype-when-served-from-nginx/242636)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [July 12, 2015, 6:58am UTC](https://www.ruby-forum.com/t/wrong-mimetype-when-served-from-nginx/242636 "2015-07-12T06:58:18Z")

</div>

Hello, I have a small issue with my nginx (1.2.1) configuration: some files are served as “application/octet-stream” while they are detected as “text/plain” by "mimetype " command. File names are just “1”, “2”, and s…

---

## [Nginx + PHP Windows Network Sharing Uploads locking/slow load time](https://www.ruby-forum.com/t/nginx-php-windows-network-sharing-uploads-locking-slow-load-time/242646)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 8\
**Last updated:** [July 11, 2015, 9:54pm UTC](https://www.ruby-forum.com/t/nginx-php-windows-network-sharing-uploads-locking-slow-load-time/242646 "2015-07-11T21:54:25Z")

</div>

So i have Nginx as a web server with PHP running as fastcgi what nginx serves traffic via upstreams. The strange bug i have encountered is the fact when i upload a large file lets say 2GB and PHP must pass this file …

---

## [Windows nginx 1.9.3.1 Lizard](https://www.ruby-forum.com/t/windows-nginx-1-9-3-1-lizard/242648)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 4\
**Last updated:** [July 10, 2015, 11:41pm UTC](https://www.ruby-forum.com/t/windows-nginx-1-9-3-1-lizard/242648 "2015-07-10T23:41:57Z")

</div>

18:54 10-7-2015 nginx 1.9.3.1 Lizard Based on nginx 1.9.3 (10-7-2015) with; Openssl-1.0.1p (CVE-2015-1793) nginx-module-vts (new fix for 32bit total overflow counters) Array-var-nginx-module v0.04 (upgraded 29-6-2015) …

---

## [Problem with devise and nginx proxy cache](https://www.ruby-forum.com/t/problem-with-devise-and-nginx-proxy-cache/242644)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [July 10, 2015, 6:04pm UTC](https://www.ruby-forum.com/t/problem-with-devise-and-nginx-proxy-cache/242644 "2015-07-10T18:04:17Z")

</div>

Hi. I have a RoR project which was working just fine. But i’ve tryied to follow this site and add proxy cache to my nginx config: http://vstark.net/2012/10/21/nginx-unicorn-performance-tweaks/ and devise just won’t…

---

## [Nginx on Debian: dynamic network interfaces](https://www.ruby-forum.com/t/nginx-on-debian-dynamic-network-interfaces/242094)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 9\
**Last updated:** [July 10, 2015, 3:40pm UTC](https://www.ruby-forum.com/t/nginx-on-debian-dynamic-network-interfaces/242094 "2015-07-10T15:40:34Z")

</div>

Hello, Facing issues on Debian with official nginx packages, I filled a bug up on the Debian tracker which ended up as being closed since Debian refers to the faulty service(s), nginx being one. ​Bug #785253 https:/…

---

## [\*\_cache\_revalidate directives](https://www.ruby-forum.com/t/cache-revalidate-directives/242630)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 4\
**Last updated:** [July 10, 2015, 1:18pm UTC](https://www.ruby-forum.com/t/cache-revalidate-directives/242630 "2015-07-10T13:18:02Z")

</div>

Hello, From the documentation, I don’t understand how the fastcgi\_cache\_revalidate (or scgi\_cache\_revalidate or proxy\_cache\_revalidate or uwsgi\_cache\_revalidate) works. Please, can someone explain what nginx does wh…

---

## [Do not log "directory index of /foo/bar/ is forbidden"](https://www.ruby-forum.com/t/do-not-log-directory-index-of-foo-bar-is-forbidden/242633)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [July 9, 2015, 11:58am UTC](https://www.ruby-forum.com/t/do-not-log-directory-index-of-foo-bar-is-forbidden/242633 "2015-07-09T11:58:33Z")

</div>

Hello, I have found “conditional logging” in http://nginx.org/en/docs/http/ngx\_http\_log\_module.html It seems that it only works on status codes. Is there a way to disable logging for something like: 2015/07/09 11:0…

---

## [Leaking memory nginx 1.8.0](https://www.ruby-forum.com/t/leaking-memory-nginx-1-8-0/242614)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 16\
**Last updated:** [July 8, 2015, 4:34pm UTC](https://www.ruby-forum.com/t/leaking-memory-nginx-1-8-0/242614 "2015-07-08T16:34:14Z")

</div>

Hello, need help with leaking memory i installed fresh system , centos7.1 +directadmin + nginx1.8.0 + mariadb5.5.41 + php54 & php56 both with php\_fpm the server it for webhosting and i have there 32gb for now have onl…

---

## [Fastcgi retry upstream (transparent php-fpm restart)?](https://www.ruby-forum.com/t/fastcgi-retry-upstream-transparent-php-fpm-restart/242622)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [July 8, 2015, 11:14am UTC](https://www.ruby-forum.com/t/fastcgi-retry-upstream-transparent-php-fpm-restart/242622 "2015-07-08T11:14:41Z")

</div>

Hi, I’m using nginx with 1 php-fpm (via unix socket), and i’m wondering if there is a way to make nginx retry on error, something like fastcgi\_next\_upstream but for the same upstream. I would like to be able to trans…

---

## [RE: Nginx SFTP/FTP loadbalancer](https://www.ruby-forum.com/t/re-nginx-sftp-ftp-loadbalancer/242621)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [July 8, 2015, 6:53am UTC](https://www.ruby-forum.com/t/re-nginx-sftp-ftp-loadbalancer/242621 "2015-07-08T06:53:33Z")

</div>

Dears, This is Felix which is from Lenovo.I need your kindly help of nginx. Here is one question of nginx SFTP/FTP loadbalancer. The backend is two machines 10.96.144.195/10.96.144.196 service IP is 10.96.144.197 whi…

---

## [Nginx doesn't redirect www no m in Safari, iPhone, iPad](https://www.ruby-forum.com/t/nginx-doesnt-redirect-www-no-m-in-safari-iphone-ipad/242572)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 19\
**Last updated:** [July 7, 2015, 4:45pm UTC](https://www.ruby-forum.com/t/nginx-doesnt-redirect-www-no-m-in-safari-iphone-ipad/242572 "2015-07-07T16:45:19Z")

</div>

The problem is, the site is entered with www in url in a mobile device with parameters in the url, it is redirected from www.domain.com to m.domain.com but the parameters entered with www.domain.com/parameters when …

---

## [Nginx-Clojure v0.4.0 Release!](https://www.ruby-forum.com/t/nginx-clojure-v0-4-0-release/242587)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [July 7, 2015, 3:34am UTC](https://www.ruby-forum.com/t/nginx-clojure-v0-4-0-release/242587 "2015-07-07T03:34:54Z")

</div>

0.4.0 (2015-07-06) New Feature: Server Side Websocket (issue #73) New Feature: A build-in Jersey container to support java standard RESTful web services (JAX-RS 2.0) (issue #74) New Feature: Tomcat 8 embedding suppo…

---

## [Multiple add\_header](https://www.ruby-forum.com/t/multiple-add-header/242613)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [July 7, 2015, 12:56am UTC](https://www.ruby-forum.com/t/multiple-add-header/242613 "2015-07-07T00:56:00Z")

</div>

Hello, I’m using PHP with nginx 1.9.2 and it works great! But there’s something I don’t understand with the add\_header directive. I use add\_header in server and location block, but it seems only the one in location …

---

## [Proxy\_cache\_key with variables](https://www.ruby-forum.com/t/proxy-cache-key-with-variables/242601)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [July 6, 2015, 5:44pm UTC](https://www.ruby-forum.com/t/proxy-cache-key-with-variables/242601 "2015-07-06T17:44:46Z")

</div>

I’ve just created a configuration composed of two servers. Both just forwards traffic from different ports (and protocols) to different servers, and keep responses in cache. It works nice. For both servers “GET /” re…

---

## [DNS cache in nginx](https://www.ruby-forum.com/t/dns-cache-in-nginx/242580)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [July 6, 2015, 4:30pm UTC](https://www.ruby-forum.com/t/dns-cache-in-nginx/242580 "2015-07-06T16:30:34Z")

</div>

Hello , I have an A record which resolve to 2 CNAME’s , the DNS failover will make the switch if something go wrong . The problem is that after a change the nginx stick to the OLD IP unless I reload it … any way the…

---

## [Stub\_status newrelic plugin](https://www.ruby-forum.com/t/stub-status-newrelic-plugin/242599)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [July 6, 2015, 3:41pm UTC](https://www.ruby-forum.com/t/stub-status-newrelic-plugin/242599 "2015-07-06T15:41:29Z")

</div>

Hello nginx experts, I wonder how nginx generate the server status by stub\_status directive. I have set several virtual host on single server and I put the several nginx server behind load balancer. I have 2 questio…

---

## [Websocket causes "client sent invalid method."](https://www.ruby-forum.com/t/websocket-causes-client-sent-invalid-method/242537)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [July 6, 2015, 3:02pm UTC](https://www.ruby-forum.com/t/websocket-causes-client-sent-invalid-method/242537 "2015-07-06T15:02:19Z")

</div>

Hello, I’m trying setup nginx for socket proxy. I was able to find that nginx can be configured to proxy websockets and added an error log file in the server configuration block to isolate the messages, and I get: c…

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

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