# NGINX

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

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

---

## [Accept Header / cache versioning issue](https://www.ruby-forum.com/t/accept-header-cache-versioning-issue/243073)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [August 19, 2015, 11:00pm UTC](https://www.ruby-forum.com/t/accept-header-cache-versioning-issue/243073 "2015-08-19T23:00:24Z")

</div>

Hi Guys, I noticed that Nginx 1.8.X is taking into account the Client Header “Accept” for versioning the cache objects, for instance: This request, generates one object in cache: curl -sv -o /dev/null 'http://www.fo…

---

## [Setup for consuming external web APIs from internal app](https://www.ruby-forum.com/t/setup-for-consuming-external-web-apis-from-internal-app/243063)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [August 19, 2015, 8:14pm UTC](https://www.ruby-forum.com/t/setup-for-consuming-external-web-apis-from-internal-app/243063 "2015-08-19T20:14:28Z")

</div>

Hi NGinx users, Not sure if this is off topic. Need help on what would be the recommended setup/architecture for consuming external web apis (e.g. twitter, Facebook APIs) securely from an application deployed in an …

---

## [Static Content on Different Server Isn't Loaded?](https://www.ruby-forum.com/t/static-content-on-different-server-isnt-loaded/242406)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 13\
**Last updated:** [August 19, 2015, 7:34pm UTC](https://www.ruby-forum.com/t/static-content-on-different-server-isnt-loaded/242406 "2015-08-19T19:34:09Z")

</div>

Hi Team, I have static content available on the remote server (say NODE 02) and PATH: …/livetest/WEB-INF/static/classes/ under which I have /image, /js, /styles folders I have installed nginx-1.8.0 on server (Say No…

---

## [Nginx.conf schedule posted for 2015, September 22-24 @ Fort Mason, San Francisco](https://www.ruby-forum.com/t/nginx-conf-schedule-posted-for-2015-september-22-24-fort-mason-san-francisco/243062)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [August 19, 2015, 5:46am UTC](https://www.ruby-forum.com/t/nginx-conf-schedule-posted-for-2015-september-22-24-fort-mason-san-francisco/243062 "2015-08-19T05:46:56Z")

</div>

Hello all! The NGINX user conference, nginx.conf 2015, is coming soon: September 22-24 @ Fort Mason, San Francisco. Register now to take advantage of our early pricing. — NGINX Conf 2019 Seattle - NGINX nginx.conf 2…

---

## [Nginx-1.9.4](https://www.ruby-forum.com/t/nginx-1-9-4/243056)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [August 18, 2015, 6:17pm UTC](https://www.ruby-forum.com/t/nginx-1-9-4/243056 "2015-08-18T18:17:02Z")

</div>

Changes with nginx 1.9.4 18 Aug 2015 \*) Change: the "proxy\_downstream\_buffer" and "proxy\_upstream\_buffer" directives of the stream module are replaced with the "proxy\_buffe…

---

## [Nginx 1.8.0 http\_proxy cache issues](https://www.ruby-forum.com/t/nginx-1-8-0-http-proxy-cache-issues/243048)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [August 18, 2015, 2:13pm UTC](https://www.ruby-forum.com/t/nginx-1-8-0-http-proxy-cache-issues/243048 "2015-08-18T14:13:25Z")

</div>

Hi, I’m using nginx 1.8.0 on Ubuntu 14.04 LTS. nginx -V nginx version: nginx/1.8.0 built with OpenSSL 1.0.1f 6 Jan 2014 TLS SNI support enabled configure arguments: --with-cc-opt=‘-g -O2 -fPIE -fstack-protector –p…

---

## [Header handling](https://www.ruby-forum.com/t/header-handling/243011)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 5\
**Last updated:** [August 18, 2015, 1:39am UTC](https://www.ruby-forum.com/t/header-handling/243011 "2015-08-18T01:39:51Z")

</div>

Hi, I have a few questions regarding headers in nginx: I use proxy\_set\_header to pass a header to upstream servers. Is it possible to honor the header if the incoming request already has it? I want to pass the “S…

---

## [$upstream\_status may show 502 even if upstream replied with 503](https://www.ruby-forum.com/t/upstream-status-may-show-502-even-if-upstream-replied-with-503/243044)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [August 17, 2015, 11:40pm UTC](https://www.ruby-forum.com/t/upstream-status-may-show-502-even-if-upstream-replied-with-503/243044 "2015-08-17T23:40:40Z")

</div>

My nginx.conf: http { upstream test { server 127.0.0.1:8081 max\_fails=0; server 127.0.0.1:8082 max\_fails=0; } server { listen 8080; location / { proxy\_pass http://test; } proxy\_next\_upstream http\_503; proxy\_i…

---

## [Upgrading plain HTTP to HTTPS using STARTTLS](https://www.ruby-forum.com/t/upgrading-plain-http-to-https-using-starttls/243029)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [August 17, 2015, 5:19pm UTC](https://www.ruby-forum.com/t/upgrading-plain-http-to-https-using-starttls/243029 "2015-08-17T17:19:12Z")

</div>

Hello, I consider switching from Apache to Nginx (or using it as a reverse proxy to the Apache), but need to upgrade plain HTTP connections to HTTPS using the scheme defined in RFC 2817. Reason for this is a client …

---

## [How nginx proxy works](https://www.ruby-forum.com/t/how-nginx-proxy-works/243035)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [August 17, 2015, 7:22am UTC](https://www.ruby-forum.com/t/how-nginx-proxy-works/243035 "2015-08-17T07:22:45Z")

</div>

Hello, I would like to know how nginx proxy\_pass works with upstream. I have 2 backend servers running. 1 nginx proxy running in front of them. My question is if one user connects to nginx proxy then nginx forward it…

---

## [Únete a mí en el Grupo de Meetup AWS User Group Peru](https://www.ruby-forum.com/t/unete-a-mi-en-el-grupo-de-meetup-aws-user-group-peru/243025)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [August 16, 2015, 7:36am UTC](https://www.ruby-forum.com/t/unete-a-mi-en-el-grupo-de-meetup-aws-user-group-peru/243025 "2015-08-16T07:36:15Z")

</div>

Raul Hugo Noriega te invitó a unirte a Meetup “Hola Ya somos una comunidad Oficial, Pronto realizaremos el Primer MeetUp Unete!” AWS User Group Peru AWS Perú es una comunidad, integrada por Ingenieros, Técnicos y Ge…

---

## [Uwsgi\_cache only caching root location](https://www.ruby-forum.com/t/uwsgi-cache-only-caching-root-location/243021)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 5\
**Last updated:** [August 16, 2015, 7:16am UTC](https://www.ruby-forum.com/t/uwsgi-cache-only-caching-root-location/243021 "2015-08-16T07:16:58Z")

</div>

Hello all - I’m having an issue where nginx is only caching homepage requests. If i send requests to my server, the HTML at the homepage is saved, but requests to any URI otherwise do not save in the cache and upstr…

---

## [Problem with uwsgi\_no\_cache](https://www.ruby-forum.com/t/problem-with-uwsgi-no-cache/242985)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [August 15, 2015, 7:48pm UTC](https://www.ruby-forum.com/t/problem-with-uwsgi-no-cache/242985 "2015-08-15T19:48:48Z")

</div>

Hi all - I’m attempting to exclude application/json data from storing in nginx’s cache. All other content types are OK to cache. I thought that the below config would work for me, but nginx is still caching everyth…

---

## [Rewrite rules for "random" subfolders](https://www.ruby-forum.com/t/rewrite-rules-for-random-subfolders/243002)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 4\
**Last updated:** [August 15, 2015, 7:46pm UTC](https://www.ruby-forum.com/t/rewrite-rules-for-random-subfolders/243002 "2015-08-15T19:46:28Z")

</div>

Hey, I would like to migrate my page from a webhoster to my own vServer running Nginx. So far I got everything up and running EXCEPT these stupid .htaccess file. Let me explain: My site contains several galleries w…

---

## [Removal of server from nginx load balancer does not reflect after nginx reload](https://www.ruby-forum.com/t/removal-of-server-from-nginx-load-balancer-does-not-reflect-after-nginx-reload/243001)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [August 14, 2015, 7:27pm UTC](https://www.ruby-forum.com/t/removal-of-server-from-nginx-load-balancer-does-not-reflect-after-nginx-reload/243001 "2015-08-14T19:27:47Z")

</div>

Hi, I am using nginx 1.8.0 as a load balancer. Below is the configuration snippet: upstream appservers { least\_conn; server 10.21.3.123:8083; server 10.21.3.125:8083; } server { listen 443 ssl spdy b…

---

## [Good log analysis tool for nginx?](https://www.ruby-forum.com/t/good-log-analysis-tool-for-nginx/137831)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 4\
**Last updated:** [August 14, 2015, 6:21pm UTC](https://www.ruby-forum.com/t/good-log-analysis-tool-for-nginx/137831 "2015-08-14T18:21:18Z")

</div>

Can anyone recommend a good log analysis tool that is a good match for nginx? I’d like something that is flexible, where I can tell it which fields in the format are for which parts of the data (i.e. user agent is fie…

---

## [RTMP save and watch with 1h delay](https://www.ruby-forum.com/t/rtmp-save-and-watch-with-1h-delay/243008)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [August 14, 2015, 6:12pm UTC](https://www.ruby-forum.com/t/rtmp-save-and-watch-with-1h-delay/243008 "2015-08-14T18:12:58Z")

</div>

HI, Nginx receive rtmp unsecure link from admin → restream the same rtmp to users just using secure link & record to any format → if user want, he can watch transmision choosing 1, 2 or 3h delay. Delay is static…

---

## [Nginx load balancing](https://www.ruby-forum.com/t/nginx-load-balancing/242999)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [August 14, 2015, 12:14pm UTC](https://www.ruby-forum.com/t/nginx-load-balancing/242999 "2015-08-14T12:14:15Z")

</div>

Hi, I’m new to nginx. Need help understanding the http/s load balancing capability of nginx open source versus nginx plus. Appreciate any info regarding this query :slight\_smile: I just downloaded nginx and I’m goin…

---

## [How to make nginx loadbalancer give 404 when all upstream servers are down](https://www.ruby-forum.com/t/how-to-make-nginx-loadbalancer-give-404-when-all-upstream-servers-are-down/242988)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 6\
**Last updated:** [August 14, 2015, 10:18am UTC](https://www.ruby-forum.com/t/how-to-make-nginx-loadbalancer-give-404-when-all-upstream-servers-are-down/242988 "2015-08-14T10:18:20Z")

</div>

Hi folks, I have been stuck this issue for a long time now. Searches could not solve my issue hence posting here. Please help. I am using nginx as a load balancer and ngnix.conf looks like: worker\_processes 4; eve…

---

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

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [August 12, 2015, 8:21pm UTC](https://www.ruby-forum.com/t/nginx-clojure-v0-4-1-release/242986 "2015-08-12T20:21:44Z")

</div>

0.4.1 (2015-08-12) New Feature: Coroutine based socket supports unix domain socket New Feature: APIs for Embedding Nginx-Clojure into a standard Clojure/Java/Groovy App (issue #86). This feature makes debug/test with …

---

## [Using Nginx with chunking](https://www.ruby-forum.com/t/using-nginx-with-chunking/242976)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 4\
**Last updated:** [August 12, 2015, 4:24pm UTC](https://www.ruby-forum.com/t/using-nginx-with-chunking/242976 "2015-08-12T16:24:28Z")

</div>

Hello, I have nginx configured to send files in chunks to remote clients. The clients will contact the server to send it in chunks of 1 MB each. I am using nginx version 1.8.0 \[root@ph-rdu-external-download-01 sbin\]#…

---

## [OpenResty 1.9.3.1 released](https://www.ruby-forum.com/t/openresty-1-9-3-1-released/242977)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [August 12, 2015, 12:28pm UTC](https://www.ruby-forum.com/t/openresty-1-9-3-1-released/242977 "2015-08-12T12:28:28Z")

</div>

Hi folks! I am glad to announce the new formal release, 1.9.3.1, of the OpenResty bundle: https://openresty.org/#Download This is the first OpenResty formal release includes an NGINX 1.9.x core. For OpenResty’s rele…

---

## [Nginx serving self-signed cert instead of the one defined in conf](https://www.ruby-forum.com/t/nginx-serving-self-signed-cert-instead-of-the-one-defined-in-conf/242970)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 3\
**Last updated:** [August 12, 2015, 11:57am UTC](https://www.ruby-forum.com/t/nginx-serving-self-signed-cert-instead-of-the-one-defined-in-conf/242970 "2015-08-12T11:57:30Z")

</div>

Hello, I’m facing a strange issue since I upgraded from Nginx 1.6.2 to 1.8.0. My configuration files have been kept identicals, as well as my official SSL certificates. The problem is Nginx keeps on serving a self-…

---

## [Should we add php-fpm for each Virtual Host or in Global Configuration?](https://www.ruby-forum.com/t/should-we-add-php-fpm-for-each-virtual-host-or-in-global-configuration/242975)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [August 12, 2015, 10:21am UTC](https://www.ruby-forum.com/t/should-we-add-php-fpm-for-each-virtual-host-or-in-global-configuration/242975 "2015-08-12T10:21:06Z")

</div>

This is my configuration for my Virtual Host. I am not sure, but is this the ideal way of defining things ? For every domain / sub-domain, i’m adding a location ~/.php directive. Should i add it in the global nginx.c…

---

## [Nginx sending notification](https://www.ruby-forum.com/t/nginx-sending-notification/242873)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [August 12, 2015, 8:45am UTC](https://www.ruby-forum.com/t/nginx-sending-notification/242873 "2015-08-12T08:45:18Z")

</div>

Hi, I want to send a notification from Nginx to another remote server when the health of any configured upstream server changes. Is there any module available for this. I was able to get that working through “salt” ,…

---

## [Execute python files with Nginx](https://www.ruby-forum.com/t/execute-python-files-with-nginx/242906)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 9\
**Last updated:** [August 11, 2015, 7:53pm UTC](https://www.ruby-forum.com/t/execute-python-files-with-nginx/242906 "2015-08-11T19:53:28Z")

</div>

Hello, How can we execute python files with Nginx? Anybody can help me to give steps by steps to follow. In Apache, it is very easy to execute python files but in python, I am trying from last 2 days and nothing hap…

---

## [Nginx & Digest authentication](https://www.ruby-forum.com/t/nginx-digest-authentication/242959)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 5\
**Last updated:** [August 11, 2015, 7:43pm UTC](https://www.ruby-forum.com/t/nginx-digest-authentication/242959 "2015-08-11T19:43:32Z")

</div>

I have a NGINX that sits in front of my application. I have digest authentication enabled for the application. Id like a set up where when a user connects to NGINX using Digest, NGINX simply proxies this request to my…

---

## [Proxy non persistent client connections to persistent upstream connections](https://www.ruby-forum.com/t/proxy-non-persistent-client-connections-to-persistent-upstream-connections/242951)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [August 11, 2015, 2:34pm UTC](https://www.ruby-forum.com/t/proxy-non-persistent-client-connections-to-persistent-upstream-connections/242951 "2015-08-11T14:34:28Z")

</div>

I would like to be able to proxy non persistent client http connections to persistent upstream connections on a Linux system, both to reduce the number of connections and the upstream latency. I have experimented wit…

---

## [Proxy\_set\_header concatenated value](https://www.ruby-forum.com/t/proxy-set-header-concatenated-value/242964)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [August 11, 2015, 9:43am UTC](https://www.ruby-forum.com/t/proxy-set-header-concatenated-value/242964 "2015-08-11T09:43:33Z")

</div>

hi, I want to pass the following header to the backend server: name: X-Original-URL value: $scheme://$host$request\_uri but the concatenation of the values for the value above do not seem to work. how can I do that? …

---

## [Odd server\_name directive behavior](https://www.ruby-forum.com/t/odd-server-name-directive-behavior/242956)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [August 11, 2015, 9:28am UTC](https://www.ruby-forum.com/t/odd-server-name-directive-behavior/242956 "2015-08-11T09:28:22Z")

</div>

I have an nginx 1.9.0 deploy and I noticed a working config where the name given to the server\_name directive doesn’t match the names in the Host headers or the certificate DNs. It looks like a mistake, but it works, …

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

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