# NGINX

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

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

---

## [POST request body manipulation](https://www.ruby-forum.com/t/post-request-body-manipulation/241687)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 4\
**Last updated:** [December 18, 2015, 12:37am UTC](https://www.ruby-forum.com/t/post-request-body-manipulation/241687 "2015-12-18T00:37:15Z")

</div>

Hello everyone, i have a problem in configuring Nginx. I have a location that serves as a proxy for a well-specified url “/login”. This location can receive both GET and POST request. GET request have no body and sh…

---

## [Re: preserve client source address when proxying to upstream](https://www.ruby-forum.com/t/re-preserve-client-source-address-when-proxying-to-upstream/243668)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [December 17, 2015, 1:28pm UTC](https://www.ruby-forum.com/t/re-preserve-client-source-address-when-proxying-to-upstream/243668 "2015-12-17T13:28:58Z")

</div>

Thanks for pointing me in the right direction, Maxim! I’ve found a number of posts where people are discussing nginx acting as listener at 0.0.0.0:80/0 for outbound traffic, making able the system to review every outg…

---

## [Building a redundant mail service](https://www.ruby-forum.com/t/building-a-redundant-mail-service/232108)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [December 17, 2015, 10:55am UTC](https://www.ruby-forum.com/t/building-a-redundant-mail-service/232108 "2015-12-17T10:55:54Z")

</div>

Hello, I would appreciate your advice on the following: We are trying to build a redundant mail service, and we are investigating the use of nginx as smtp/pop3/imap proxy with TLS/SSL support (ports 25/587, 143/993, …

---

## [Using 32768KiB of shared memory for push module in /etc/nginx/nginx.conf:64](https://www.ruby-forum.com/t/using-32768kib-of-shared-memory-for-push-module-in-etc-nginx-nginx-conf-64/243666)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [December 17, 2015, 8:46am UTC](https://www.ruby-forum.com/t/using-32768kib-of-shared-memory-for-push-module-in-etc-nginx-nginx-conf-64/243666 "2015-12-17T08:46:13Z")

</div>

I have this error when using the php http module. http\_send\_content\_disposition(‘a.pdf’, true); http\_send\_content\_type(“application/x-octetstream”); http\_throttle(0.1, 40480); http\_send\_file(‘/pathtopdf/a.pdf’)); A…

---

## [Preserve client source address when proxying to upstream](https://www.ruby-forum.com/t/preserve-client-source-address-when-proxying-to-upstream/243659)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [December 16, 2015, 5:56pm UTC](https://www.ruby-forum.com/t/preserve-client-source-address-when-proxying-to-upstream/243659 "2015-12-16T17:56:31Z")

</div>

Hello, proxy\_bind directive allows to specify source IP address for proxied connections. This directive can be set to local IP address. I’m wondering if there’s a way to set $remote\_addr as proxy\_bind address? Or a…

---

## [How is module type value (NGX\_HTTP\_MODULE) is generated?](https://www.ruby-forum.com/t/how-is-module-type-value-ngx-http-module-is-generated/243655)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [December 16, 2015, 2:56pm UTC](https://www.ruby-forum.com/t/how-is-module-type-value-ngx-http-module-is-generated/243655 "2015-12-16T14:56:35Z")

</div>

Hi, I am curious how is module type like NGX\_HTTP\_MODULE in ngx\_http\_config.h is generated? Thanks! #define NGX\_HTTP\_MODULE 0x50545445 /\* “HTTP” \*/ Posted at Nginx Forum:

---

## [SSL-Session-Cache on non standard port](https://www.ruby-forum.com/t/ssl-session-cache-on-non-standard-port/243660)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [December 16, 2015, 2:29pm UTC](https://www.ruby-forum.com/t/ssl-session-cache-on-non-standard-port/243660 "2015-12-16T14:29:08Z")

</div>

SSL-Session-Cache isnot working on non-standard port. I tried the solutions mentioned in configuring ssl\_session\_cache outside of server blocks configuring ssl\_session\_cache inside every server block But the cache i…

---

## [Load balancing based on hash of the domain](https://www.ruby-forum.com/t/load-balancing-based-on-hash-of-the-domain/243642)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 5\
**Last updated:** [December 15, 2015, 12:32pm UTC](https://www.ruby-forum.com/t/load-balancing-based-on-hash-of-the-domain/243642 "2015-12-15T12:32:22Z")

</div>

Hi all, I wish to use load balancing in front of a shared webhosting cluster with multiple domains. To make optimal use of resources, it would make sense to do load balancing based on domain instead of random or base…

---

## [Rewrite causing $ to be escaped](https://www.ruby-forum.com/t/rewrite-causing-to-be-escaped/243638)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [December 15, 2015, 10:28am UTC](https://www.ruby-forum.com/t/rewrite-causing-to-be-escaped/243638 "2015-12-15T10:28:30Z")

</div>

Hi, We’re running Jenkins behind an Nginx reverse proxy and see issues where Jenkins running in Tomcat returns 404 because it receives URLs that have $ encoded as %24. From the Tomcat logs: 10.0.7.212 - - \[15/Dec/20…

---

## [Mixing fcgi and fcgiwrap](https://www.ruby-forum.com/t/mixing-fcgi-and-fcgiwrap/243645)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [December 15, 2015, 2:11am UTC](https://www.ruby-forum.com/t/mixing-fcgi-and-fcgiwrap/243645 "2015-12-15T02:11:21Z")

</div>

Hi, I have an issue where I need to move a site that has a legacy C cgi interface onto a server that already has FCGI hosts. Rather than trying to mix slow cgi and fast cgi I was thinking of using fcgiwrap … does any…

---

## [HTTP/2 Gateway](https://www.ruby-forum.com/t/http-2-gateway/243578)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 10\
**Last updated:** [December 14, 2015, 7:24pm UTC](https://www.ruby-forum.com/t/http-2-gateway/243578 "2015-12-14T19:24:45Z")

</div>

Hi, i’ve tried to use nginx as http/2 gateway for backends which only supporting HTTP 1.1. If a backend is already HTTP/2 ready, than HTTP/2 should be used. When i test my configuration (simple proxy\_pass / upstream)…

---

## [Is stale-while-revalidate (RFC 5861) currently supported in nginx?](https://www.ruby-forum.com/t/is-stale-while-revalidate-rfc-5861-currently-supported-in-nginx/243632)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [December 14, 2015, 4:00pm UTC](https://www.ruby-forum.com/t/is-stale-while-revalidate-rfc-5861-currently-supported-in-nginx/243632 "2015-12-14T16:00:53Z")

</div>

There is a very old post from September, 2011 which says it is not supported, I am just wondering if anything has changed since then? http://mailman.nginx.org/pipermail/nginx/2011-September/028926.html Thanks!

---

## [How to set up nginx for file uploading](https://www.ruby-forum.com/t/how-to-set-up-nginx-for-file-uploading/243623)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 5\
**Last updated:** [December 14, 2015, 10:44am UTC](https://www.ruby-forum.com/t/how-to-set-up-nginx-for-file-uploading/243623 "2015-12-14T10:44:16Z")

</div>

Hi everyone! I am having some trouble setting up nginx for file uploading. I am using nginx as a proxy in front of my nodejs server (that has hapi as server framework). Here is the nginx.conf file’s portion for this…

---

## [Nchan: a pubsub server module for Websocket, EventSource, Long-Poll and more](https://www.ruby-forum.com/t/nchan-a-pubsub-server-module-for-websocket-eventsource-long-poll-and-more/243636)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [December 14, 2015, 6:50am UTC](https://www.ruby-forum.com/t/nchan-a-pubsub-server-module-for-websocket-eventsource-long-poll-and-more/243636 "2015-12-14T06:50:00Z")

</div>

The module formerly known as NGINX HTTP Push Module is now Nchan. Nchan is a light, scalable, and flexible pub/sub server for the modern web. It can be configured as a standalone server, or as a shim between an applic…

---

## [How to use keepalive with Nginx revers proxy?](https://www.ruby-forum.com/t/how-to-use-keepalive-with-nginx-revers-proxy/240215)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 6\
**Last updated:** [December 14, 2015, 3:29am UTC](https://www.ruby-forum.com/t/how-to-use-keepalive-with-nginx-revers-proxy/240215 "2015-12-14T03:29:03Z")

</div>

Hi, Can some one provide me an example to set keep alive connection between Nginx(reverse proxy) and backend server? I can not use upstream module as my backend IP is dynamic based on variable. So I can not use keepa…

---

## [Using uninitialized variable value](https://www.ruby-forum.com/t/using-uninitialized-variable-value/243634)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [December 14, 2015, 12:32am UTC](https://www.ruby-forum.com/t/using-uninitialized-variable-value/243634 "2015-12-14T00:32:03Z")

</div>

Hi, we are getting quite a lot of these warnings about using uninitialized variables, although we have “set” directive for each variable in every server block. I understand the fact, that it happens when the request i…

---

## [Request configuration file review](https://www.ruby-forum.com/t/request-configuration-file-review/243630)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [December 13, 2015, 5:11pm UTC](https://www.ruby-forum.com/t/request-configuration-file-review/243630 "2015-12-13T17:11:00Z")

</div>

nginx mailing list removed\_email\_address@domain.invalid http://mailman.nginx.org/mailman/listinfo/nginx

---

## [How to preserve nginx url from being redirected (302) from back end tomcat server?](https://www.ruby-forum.com/t/how-to-preserve-nginx-url-from-being-redirected-302-from-back-end-tomcat-server/243627)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [December 12, 2015, 8:57pm UTC](https://www.ruby-forum.com/t/how-to-preserve-nginx-url-from-being-redirected-302-from-back-end-tomcat-server/243627 "2015-12-12T20:57:07Z")

</div>

Newby working for a couple weeks. Any guidance really appreciated. Nginx is not preserving the url from redirected backend tomcat server. Nginx url: //develop-application.example.com/ Backend tomcat url: //applicatio…

---

## [Nginx-1.9.8](https://www.ruby-forum.com/t/nginx-1-9-8/243596)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 3\
**Last updated:** [December 12, 2015, 4:06pm UTC](https://www.ruby-forum.com/t/nginx-1-9-8/243596 "2015-12-12T16:06:12Z")

</div>

Changes with nginx 1.9.8 08 Dec 2015 \*) Feature: pwritev() support. \*) Feature: the "include" directive inside the "upstream" block. \*) Feature: the ngx\_http\_slice\_module. \*) …

---

## [Next upstream based on custom http code](https://www.ruby-forum.com/t/next-upstream-based-on-custom-http-code/243611)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 4\
**Last updated:** [December 11, 2015, 10:06am UTC](https://www.ruby-forum.com/t/next-upstream-based-on-custom-http-code/243611 "2015-12-11T10:06:24Z")

</div>

Hi There are a few options for when to try next upstream : http://nginx.org/en/docs/http/ngx\_http\_proxy\_module.html#proxy\_next\_upstream Is it possible to configure a custom http code so that upstream servers can sen…

---

## [How to make nginx return response body for 4xx and 5xx?](https://www.ruby-forum.com/t/how-to-make-nginx-return-response-body-for-4xx-and-5xx/243605)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [December 10, 2015, 7:45pm UTC](https://www.ruby-forum.com/t/how-to-make-nginx-return-response-body-for-4xx-and-5xx/243605 "2015-12-10T19:45:48Z")

</div>

Looks like nginx removes response body when HTTP code is 4xx/5xx. Is there a way to make nginx proxy the original response body? Posted at Nginx Forum:

---

## [502 bad gateway](https://www.ruby-forum.com/t/502-bad-gateway/243606)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [December 10, 2015, 6:05pm UTC](https://www.ruby-forum.com/t/502-bad-gateway/243606 "2015-12-10T18:05:20Z")

</div>

Hello, I have a magento website working fine for months now. However i recently installed a PDF plugin to send invoices with emails. The PDF url is giving a 502 bad gateway “{admin}/sales\_invoice/view/invoice\_id/717/…

---

## [Nginx return http code 498](https://www.ruby-forum.com/t/nginx-return-http-code-498/243610)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [December 10, 2015, 5:13pm UTC](https://www.ruby-forum.com/t/nginx-return-http-code-498/243610 "2015-12-10T17:13:20Z")

</div>

i am using nginx as a reverse proxy server(Let 's call it Server A). server A’s upstream server is also a nginx server((Let 's call it Server B) backend with a jetty server((Let 's call it Server C) served at port 80…

---

## [How about to add splice](https://www.ruby-forum.com/t/how-about-to-add-splice/243599)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 6\
**Last updated:** [December 10, 2015, 3:31pm UTC](https://www.ruby-forum.com/t/how-about-to-add-splice/243599 "2015-12-10T15:31:41Z")

</div>

Dear developer. Do you know the splice() feature in Linux? http://man7.org/linux/man-pages/man2/splice.2.html http://ogris.de/howtos/splice.html How about to add it :wink: BR Aleks

---

## [Nginx-1.9.9](https://www.ruby-forum.com/t/nginx-1-9-9/243604)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [December 10, 2015, 9:53am UTC](https://www.ruby-forum.com/t/nginx-1-9-9/243604 "2015-12-10T09:53:28Z")

</div>

Changes with nginx 1.9.9 09 Dec 2015 \*) Bugfix: proxying to unix domain sockets did not work when using variables; the bug had appeared in 1.9.8. – Maxim D. http://nginx.or…

---

## [HTTP/2 stable status](https://www.ruby-forum.com/t/http-2-stable-status/243582)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [December 10, 2015, 12:58am UTC](https://www.ruby-forum.com/t/http-2-stable-status/243582 "2015-12-10T00:58:58Z")

</div>

Hey, has anyone experiences with nginx 1.9.7 and http/2 in pruduction environments? Means: is http/2 stable in 1.9.7 ? Best, Martin

---

## [Location ^~ modifier](https://www.ruby-forum.com/t/location-modifier/243591)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 4\
**Last updated:** [December 9, 2015, 8:51pm UTC](https://www.ruby-forum.com/t/location-modifier/243591 "2015-12-09T20:51:17Z")

</div>

Hello, I got kind of a newbie question: Does the ^~ location modifier finds a matching string at the start of an URI? I naively thought it was just a variant of the classic prefix search, without any constraint on t…

---

## [Try\_files and expires](https://www.ruby-forum.com/t/try-files-and-expires/243597)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [December 9, 2015, 5:31pm UTC](https://www.ruby-forum.com/t/try-files-and-expires/243597 "2015-12-09T17:31:30Z")

</div>

Hi, I have a case with a CMS (pimcore) and setting the expires directive. location / { # First attempt to serve request as file, then as directory, then fall back to index.php try\_files $uri $uri/ /website/var/…

---

## [Nginx 1.8.0 not logging properly](https://www.ruby-forum.com/t/nginx-1-8-0-not-logging-properly/243602)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [December 9, 2015, 12:41pm UTC](https://www.ruby-forum.com/t/nginx-1-8-0-not-logging-properly/243602 "2015-12-09T12:41:08Z")

</div>

Hi, I’m using the Nginx 1.8.0 rpm found on Index of /packages/centos/7/x86\_64/RPMS/ with a config that has been working fine so far with Nginx 1.6.x. The problem is that sometimes I get 500 Internal Server Errors but…

---

## [The nginx server could not access win2012r2's request](https://www.ruby-forum.com/t/the-nginx-server-could-not-access-win2012r2s-request/243600)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [December 9, 2015, 11:00am UTC](https://www.ruby-forum.com/t/the-nginx-server-could-not-access-win2012r2s-request/243600 "2015-12-09T11:00:40Z")

</div>

i install a nginx service in a centos 7 server.i can visit the nginx web page from a linux client.but i can not visit the page from a win2012r2 client.it show ERR\_CONNECTION\_TIMED\_OUT error.there is no error on the ng…

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

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