# NGINX

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

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

---

## [How to send a REST request to another node if the service on the current node is not available?](https://www.ruby-forum.com/t/how-to-send-a-rest-request-to-another-node-if-the-service-on-the-current-node-is-not-available/242154)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [June 1, 2015, 3:42pm UTC](https://www.ruby-forum.com/t/how-to-send-a-rest-request-to-another-node-if-the-service-on-the-current-node-is-not-available/242154 "2015-06-01T15:42:29Z")

</div>

Hi, All, We setup a cluster of three nodes and running ngix on each node to load balance. I found that if a REST service is unavailable on current node, the corresponding REST request sending to this node will retur…

---

## [Proxy\_cache not working anymore in 1.8](https://www.ruby-forum.com/t/proxy-cache-not-working-anymore-in-1-8/242158)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [June 1, 2015, 2:19pm UTC](https://www.ruby-forum.com/t/proxy-cache-not-working-anymore-in-1-8/242158 "2015-06-01T14:19:32Z")

</div>

Hi We use nginx as proxy\_cache and identified a different somehow weird behaviour compared to 1.6.: In some situations we get a MISS or EXPIRED in 1.8, where with the same config, same resource and same origin, we go…

---

## [Compiling Nginx on Windows 7](https://www.ruby-forum.com/t/compiling-nginx-on-windows-7/227803)

<div class="topic-metadata">

**Author:** [@x64architecture](https://www.ruby-forum.com/u/x64architecture)\
**Replies:** 5\
**Last updated:** [June 1, 2015, 9:45am UTC](https://www.ruby-forum.com/t/compiling-nginx-on-windows-7/227803 "2015-06-01T09:45:33Z")

</div>

Im experiencing issues with compiling Nginx on Windows 7, every thing goes good until nmake -f objs/Makefile. I get the following error: Generating Code… link -lib -out:pcre.lib -verbose:lib pcre\_\*.obj /usr/bin/lin…

---

## [Nginx virtual host traffic status module](https://www.ruby-forum.com/t/nginx-virtual-host-traffic-status-module/234894)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [May 30, 2015, 1:43pm UTC](https://www.ruby-forum.com/t/nginx-virtual-host-traffic-status-module/234894 "2015-05-30T13:43:27Z")

</div>

Hello, I’ve created an open source module similar to the live traffic monitoring of nginx plus. I’ve made it as C module, and it supports virtual hosts. If anyone tries it out, feedback is welcome. Note: I haven’t t…

---

## [Nginx and Websphere](https://www.ruby-forum.com/t/nginx-and-websphere/242089)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 16\
**Last updated:** [May 30, 2015, 4:43am UTC](https://www.ruby-forum.com/t/nginx-and-websphere/242089 "2015-05-30T04:43:06Z")

</div>

Hi all! I’m new in NGINX but I have try everything with very bad results. My scenario is: NGINX balancing over 2 servers using ip\_hash. This servers runs Websphere and in every Websphere runs several apps. Servers …

---

## [Nginx Session Draining](https://www.ruby-forum.com/t/nginx-session-draining/242121)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [May 29, 2015, 10:24pm UTC](https://www.ruby-forum.com/t/nginx-session-draining/242121 "2015-05-29T22:24:34Z")

</div>

Hi, I read about the Nginx Session Draining feature. Looks like it is also available in the non commercial version. Load Balancing with NGINX Plus draining But, it does not tell me how to configure this in the upstre…

---

## [Supporting special characters in URI for location block](https://www.ruby-forum.com/t/supporting-special-characters-in-uri-for-location-block/242126)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [May 29, 2015, 11:50am UTC](https://www.ruby-forum.com/t/supporting-special-characters-in-uri-for-location-block/242126 "2015-05-29T11:50:00Z")

</div>

I have a URI with spanish characters that needs to be handled in location block specific to it e.g. I want to do location {} However, nginx does not seem to match URI in location block with spanish (or any other cha…

---

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

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [May 28, 2015, 6:46pm UTC](https://www.ruby-forum.com/t/nginx-1-9-1/242091 "2015-05-28T18:46:04Z")

</div>

Changes with nginx 1.9.1 26 May 2015 \*) Change: now SSLv3 protocol is disabled by default. \*) Change: some long deprecated directives are not supported anymore. \*) Feature: t…

---

## [Sock error](https://www.ruby-forum.com/t/sock-error/242108)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [May 28, 2015, 2:22pm UTC](https://www.ruby-forum.com/t/sock-error/242108 "2015-05-28T14:22:26Z")

</div>

Hi, i have a rails app using unicorn + nginx. Last month my app started to get really slow and giving me error 502. Unicorn log doesn’t show nothing, either my rails app log. But looking at nginx error log, i get nume…

---

## [Ip\_hash in active\_active nginx setup](https://www.ruby-forum.com/t/ip-hash-in-active-active-nginx-setup/242038)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [May 28, 2015, 11:49am UTC](https://www.ruby-forum.com/t/ip-hash-in-active-active-nginx-setup/242038 "2015-05-28T11:49:53Z")

</div>

Hi all, we want to use a F5 loadbalancer in front of two nginx instances, which balance the load to our app-nodes. The F5 loadbalancer distributes incoming requests via round-robin algorithm to the two nginx instanc…

---

## [Noob needs help with alias locations and php](https://www.ruby-forum.com/t/noob-needs-help-with-alias-locations-and-php/242110)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [May 28, 2015, 10:04am UTC](https://www.ruby-forum.com/t/noob-needs-help-with-alias-locations-and-php/242110 "2015-05-28T10:04:05Z")

</div>

Hi all, Been going in circles for the third day now. The server handles files and php scripts as long as they are at or beneath the document root. Here are the two problems I haven’t been able to figure out: Direct…

---

## [": bind() to 0.0.0.0:80" and relation between 'logs' directory and 'pid' direction](https://www.ruby-forum.com/t/bind-to-0-0-0-0-80-and-relation-between-logs-directory-and-pid-direction/242109)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [May 28, 2015, 9:06am UTC](https://www.ruby-forum.com/t/bind-to-0-0-0-0-80-and-relation-between-logs-directory-and-pid-direction/242109 "2015-05-28T09:06:13Z")

</div>

Hello, I had compiled my Nginx using ‘.configure’, ‘make’ and ‘make install’ commands. nginx.pid file occurs on ‘logs’ directory as default. If I change set ‘pid’ directive (e.g. pid sbin/nginx.pid) on my nginx.conf…

---

## [Encoded url](https://www.ruby-forum.com/t/encoded-url/242062)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [May 28, 2015, 12:16am UTC](https://www.ruby-forum.com/t/encoded-url/242062 "2015-05-28T00:16:11Z")

</div>

Hello everyone, I’ve nginx 1.2.5 and I’ve an issue about encoded URLs. Is there a way to make nginx accepts URL like the following: http://www.mywebsite.com/image.php%3Fid%3D12345 as equivalent of the following? htt…

---

## [Measuring request processing time](https://www.ruby-forum.com/t/measuring-request-processing-time/242093)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 4\
**Last updated:** [May 27, 2015, 8:10pm UTC](https://www.ruby-forum.com/t/measuring-request-processing-time/242093 "2015-05-27T20:10:42Z")

</div>

Hi! Is there a way to measure time Nginx takes to process request? Not $request\_time, but rather something like “time between request was fully read and request is ready to pass it to the backend”. I need it to evalu…

---

## [NGINX rtmp module multiple push and grab from another app?](https://www.ruby-forum.com/t/nginx-rtmp-module-multiple-push-and-grab-from-another-app/242103)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [May 27, 2015, 5:05pm UTC](https://www.ruby-forum.com/t/nginx-rtmp-module-multiple-push-and-grab-from-another-app/242103 "2015-05-27T17:05:26Z")

</div>

Hey, guys! I have problems with the rtmp module. There is an input application, that pushes “xyz” to the “2nd” application, that exec\_pushes with ffmpeg to a “3rd” application. From “3rd” it gets pushed to 2 rtmp ser…

---

## [Nginx Location Block](https://www.ruby-forum.com/t/nginx-location-block/242075)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 6\
**Last updated:** [May 27, 2015, 2:43am UTC](https://www.ruby-forum.com/t/nginx-location-block/242075 "2015-05-27T02:43:22Z")

</div>

heya- I’m having some interesting dramas with Nginx location block. I put it down to a misconfiguration in my conf files, but I can’t locate what it possible could be. Briefly, my setup is using an Nginx frontend ser…

---

## [Host names in 1.9](https://www.ruby-forum.com/t/host-names-in-1-9/242101)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [May 27, 2015, 1:29am UTC](https://www.ruby-forum.com/t/host-names-in-1-9/242101 "2015-05-27T01:29:44Z")

</div>

I’m having some difficulty using the stream directive in 1.9. I may be using it wrong, so please correct me if this is incorrect or not possible. stream { server { listen 1520; server\_name customhost.example.com …

---

## [Can somebody help me to rewrite this?](https://www.ruby-forum.com/t/can-somebody-help-me-to-rewrite-this/242061)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 6\
**Last updated:** [May 25, 2015, 7:43pm UTC](https://www.ruby-forum.com/t/can-somebody-help-me-to-rewrite-this/242061 "2015-05-25T19:43:54Z")

</div>

Hi guys, i really need some help here. I plan to move my forum from the root domain to a subfolder named “/forum” I need to rewrite from: www.mywebsite.com/showthread.php?t=123456 To www.mywebsite.com/forum/showthr…

---

## [Calling unique url not more then 1 time per 5 seconds](https://www.ruby-forum.com/t/calling-unique-url-not-more-then-1-time-per-5-seconds/242063)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [May 25, 2015, 1:56pm UTC](https://www.ruby-forum.com/t/calling-unique-url-not-more-then-1-time-per-5-seconds/242063 "2015-05-25T13:56:54Z")

</div>

Hi, Assuming I have an url like /payout/\[hash\] , where hash is something unique, and I want to make, that on nginx level it’s checked that this url is called not more then 1 time per 5 seconds. 1st time it should be…

---

## [Case insensitive exact location match?](https://www.ruby-forum.com/t/case-insensitive-exact-location-match/241991)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 6\
**Last updated:** [May 24, 2015, 2:46am UTC](https://www.ruby-forum.com/t/case-insensitive-exact-location-match/241991 "2015-05-24T02:46:52Z")

</div>

I know how to do case insensitive regex location matching. But it would be very useful if I could do same with exact string matching, something like location =\* /test So it would matching “/test” as well as “…

---

## [Ssl\_dhparam compatibility issues?](https://www.ruby-forum.com/t/ssl-dhparam-compatibility-issues/242060)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [May 23, 2015, 9:54pm UTC](https://www.ruby-forum.com/t/ssl-dhparam-compatibility-issues/242060 "2015-05-23T21:54:47Z")

</div>

I’m using Mozilla’s “Old backward compatibility” ssl\_ciphers so I feel good about my compatibility there, but does the following open me up to potential compatibility problems: openssl dhparam -out dhparams.pem 2048 n…

---

## [A problem while using nginx1.4.6 and nginx1.8.0 for web service](https://www.ruby-forum.com/t/a-problem-while-using-nginx1-4-6-and-nginx1-8-0-for-web-service/242032)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 4\
**Last updated:** [May 22, 2015, 11:56pm UTC](https://www.ruby-forum.com/t/a-problem-while-using-nginx1-4-6-and-nginx1-8-0-for-web-service/242032 "2015-05-22T23:56:19Z")

</div>

Hello, This is Amily. I meet a problem while using nginx1.4.6 and nginx1.8.0 for web service. The follow is that the content shows on the /var/log/messages: May 21 01:55:51 web3 kernel: nginx\[16176\] general protectio…

---

## [Cancel ongoing ngx\_http\_request\_t](https://www.ruby-forum.com/t/cancel-ongoing-ngx-http-request-t/242037)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [May 22, 2015, 3:35pm UTC](https://www.ruby-forum.com/t/cancel-ongoing-ngx-http-request-t/242037 "2015-05-22T15:35:05Z")

</div>

So I’m continuing to work on my simple timeout module: Now, when timer elapses, I want to cancel ongoing http request, here’s my timer handler: static void simple\_timeout\_handler(ngx\_event\_t\* timeout\_event) { ngx\_…

---

## [Best place for metrics module](https://www.ruby-forum.com/t/best-place-for-metrics-module/242033)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [May 21, 2015, 3:02pm UTC](https://www.ruby-forum.com/t/best-place-for-metrics-module/242033 "2015-05-21T15:02:54Z")

</div>

I want to write my custom nginx module for measuring request processing time for every HTTP request received. I need to start counting request processing time as early as nginx receives first byte of a request and fi…

---

## [Simple timeout module](https://www.ruby-forum.com/t/simple-timeout-module/242020)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [May 21, 2015, 10:41am UTC](https://www.ruby-forum.com/t/simple-timeout-module/242020 "2015-05-21T10:41:46Z")

</div>

I’m trying to build a simple timeout module using nginx timers. At the beginning of a request I’m firing up a timer and after time interval elapses I want to check if request has already completed, and if not, finaliz…

---

## [Stable Ubuntu PPA](https://www.ruby-forum.com/t/stable-ubuntu-ppa/242036)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [May 21, 2015, 10:21am UTC](https://www.ruby-forum.com/t/stable-ubuntu-ppa/242036 "2015-05-21T10:21:54Z")

</div>

Hi I have recently upgraded our fleet of Ubuntu servers to nginx 1.8.0 via the nginx/stable PPA1. After the upgrade we are seeing two - probably related - problems. They are: When the log files are rotated by logro…

---

## [Is it possible to use multiple sub\_filter in one location?](https://www.ruby-forum.com/t/is-it-possible-to-use-multiple-sub-filter-in-one-location/242023)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [May 21, 2015, 3:52am UTC](https://www.ruby-forum.com/t/is-it-possible-to-use-multiple-sub-filter-in-one-location/242023 "2015-05-21T03:52:13Z")

</div>

Trying to do this: location /whatever/ { proxy\_buffering off; proxy\_pass http://11.22.33.44:5555; sub\_filter ‘“df”:“https://df-foo”’ ‘“df”:“https://df-bar”’; sub\_filter ‘“pr”:“https://pr-foo”’ ‘“pr”:“https://pr-bar”…

---

## [Satistfy any not working as expected](https://www.ruby-forum.com/t/satistfy-any-not-working-as-expected/241977)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 6\
**Last updated:** [May 20, 2015, 8:44pm UTC](https://www.ruby-forum.com/t/satistfy-any-not-working-as-expected/241977 "2015-05-20T20:44:36Z")

</div>

Hi, I’m facing an issue using the “satisfy any” directive. What I’m trying to achieve is quite simple: have an auth\_request directive protecting the entire website (hence set at the server level in the config file…

---

## [Allow all Access-Control-Allow-Headers](https://www.ruby-forum.com/t/allow-all-access-control-allow-headers/242013)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [May 20, 2015, 10:42am UTC](https://www.ruby-forum.com/t/allow-all-access-control-allow-headers/242013 "2015-05-20T10:42:52Z")

</div>

Hi, I have a nginx in front of many differrents web applications. At this time a have a generic configuration for all applications. Now I need to allow all Access-Control-Allow-Headers but I did not find how to do …

---

## [Using diameter aaa protocol with nginx](https://www.ruby-forum.com/t/using-diameter-aaa-protocol-with-nginx/242011)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [May 20, 2015, 8:47am UTC](https://www.ruby-forum.com/t/using-diameter-aaa-protocol-with-nginx/242011 "2015-05-20T08:47:12Z")

</div>

Hi, I want to set up a AAA layer over the nginx server (for approxiamtely 2000 users at a time). I saw the available options, and found diameter and tacacs+ to be the best. I found there’s a PAM module/library for i…

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

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