# NGINX

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

[Latest](https://www.ruby-forum.com/latest.md) · [Categories](https://www.ruby-forum.com/categories.md) · [Tags](https://www.ruby-forum.com/tags.md)

---

## [Superb Umrah package or similar](https://www.ruby-forum.com/t/superb-umrah-package-or-similar/225813)

<div class="topic-metadata">

**Author:** [@SSkonishi\_takurou\_S](https://www.ruby-forum.com/u/SSkonishi_takurou_S)\
**Replies:** 2\
**Last updated:** [October 20, 2023, 9:44am UTC](https://www.ruby-forum.com/t/superb-umrah-package-or-similar/225813 "2023-10-20T09:44:25Z")

</div>

Islam mandates that all Muslims who are financially and physically capable perform a pilgrimage to Mecca (Hajj). Our Prophet (SAW) advised to financially prepare for it, and delineated the specific way in which each …

---

## [Disable HTTP 304 response](https://www.ruby-forum.com/t/disable-http-304-response/177563)

<div class="topic-metadata">

**Author:** [@demoversion](https://www.ruby-forum.com/u/demoversion)\
**Replies:** 6\
**Last updated:** [October 2, 2022, 5:19pm UTC](https://www.ruby-forum.com/t/disable-http-304-response/177563 "2022-10-02T17:19:33Z")

</div>

Hello! I want to disable nginx returning a 304 response to the client, as I am interested in a higher amount of bandwidth coming through my site. In Apache i did that by removing the if-modified-since request header, …

---

## [Trouble with stream directive](https://www.ruby-forum.com/t/trouble-with-stream-directive/242368)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [August 10, 2021, 12:44am UTC](https://www.ruby-forum.com/t/trouble-with-stream-directive/242368 "2021-08-10T00:44:01Z")

</div>

I’m trying to test the TCP load balancing function in 1.9.2, but am having some problems getting a very basic configuration working. TIA ubuntu@dev:~$ cat /etc/nginx/stream.d/test.conf stream { server { listen …

---

## [HTTP status code 499 from long running requests](https://www.ruby-forum.com/t/http-status-code-499-from-long-running-requests/235138)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 6\
**Last updated:** [May 31, 2021, 7:43am UTC](https://www.ruby-forum.com/t/http-status-code-499-from-long-running-requests/235138 "2021-05-31T07:43:16Z")

</div>

Hello, I have long running requests upwards of five minutes that are called via ajax (jQuery) (XHR), and hitting a backend PHP script. I am seeing very strange behavior, intermittently calling the script twice, even…

---

## [Radius and TACACS+ based authentication](https://www.ruby-forum.com/t/radius-and-tacacs-based-authentication/240124)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [September 29, 2020, 6:01am UTC](https://www.ruby-forum.com/t/radius-and-tacacs-based-authentication/240124 "2020-09-29T06:01:09Z")

</div>

Hi Everyone, Currently I am using nginx (version 1.2.7) and would like to have authentication support using external security servers such as Radius and TACACS+. Are there are any extensions/plugins available to sup…

---

## [Nginx 1.11.3 released](https://www.ruby-forum.com/t/nginx-1-11-3-released/245008)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [June 18, 2020, 12:55pm UTC](https://www.ruby-forum.com/t/nginx-1-11-3-released/245008 "2020-06-18T12:55:55Z")

</div>

Changes with nginx 1.11.3 26 Jul 2016 \*) Change: now the "accept\_mutex" directive is turned off by default. \*) Feature: now nginx uses EPOLLEXCLUSIVE on Linux. \*) Feature: the …

---

## [Nginx Slow download over 1Gbps load!](https://www.ruby-forum.com/t/nginx-slow-download-over-1gbps-load/243977)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 9\
**Last updated:** [April 30, 2020, 4:57pm UTC](https://www.ruby-forum.com/t/nginx-slow-download-over-1gbps-load/243977 "2020-04-30T16:57:06Z")

</div>

Hi, We’ve recently shifted to FreeBSD-10 due to its robust asynchronous performance for big storage based on .mp4 files. Here is the server specs : 2 x Intel Xeon X5690 96GB DDR3 Memory 12 x 3TB SATA Raid-10 (HBA L…

---

## [Map is not matching correctly against upstream custom header](https://www.ruby-forum.com/t/map-is-not-matching-correctly-against-upstream-custom-header/244718)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 3\
**Last updated:** [April 1, 2020, 9:14pm UTC](https://www.ruby-forum.com/t/map-is-not-matching-correctly-against-upstream-custom-header/244718 "2020-04-01T21:14:51Z")

</div>

Hi, I’m trying to configure my proxy cache settings based in a response custom header, using proxy\_no\_cache and proxy\_cache\_bypass directives. First question: is it possible at all? Second question: If it is, why this…

---

## [How to map Nginx http response header?](https://www.ruby-forum.com/t/how-to-map-nginx-http-response-header/259083)

<div class="topic-metadata">

**Author:** [@rdn](https://www.ruby-forum.com/u/rdn)\
**Replies:** 0\
**Last updated:** [March 30, 2020, 10:56pm UTC](https://www.ruby-forum.com/t/how-to-map-nginx-http-response-header/259083 "2020-03-30T22:56:51Z")

</div>

I tried several configs but seems to not work, like… Code: map $http\_x\_litespeed\_cache\_control $nocacheheader { default 0; no-cache 1; } Code: map $upstream\_http\_x\_litespeed\_cache\_control $nocacheh…

---

## [Connect() failed (111: Connection refused) while connecting to upstream](https://www.ruby-forum.com/t/connect-failed-111-connection-refused-while-connecting-to-upstream/224936)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 15\
**Last updated:** [November 12, 2019, 7:25am UTC](https://www.ruby-forum.com/t/connect-failed-111-connection-refused-while-connecting-to-upstream/224936 "2019-11-12T07:25:13Z")

</div>

Can’t figure out why I keep getting 502 bad gateway nginx error. Here is the error from nginx error log. 2012/12/03 19:30:21 \[error\] 20650#0: \*939328 connect() failed (111: Connection refused) while connecting to ups…

---

## [How to perform if condition for string with REGEX in nginx conf](https://www.ruby-forum.com/t/how-to-perform-if-condition-for-string-with-regex-in-nginx-conf/253116)

<div class="topic-metadata">

**Author:** [@amey1809](https://www.ruby-forum.com/u/amey1809)\
**Replies:** 0\
**Last updated:** [September 30, 2019, 8:45pm UTC](https://www.ruby-forum.com/t/how-to-perform-if-condition-for-string-with-regex-in-nginx-conf/253116 "2019-09-30T20:45:20Z")

</div>

Hi, I was trying to achieve for following url using nginx. https://localhost/xyz/d/\_0uzUTWZZw/message?orgId=1 if such url requested contains string orgId then set some value to variable. https://localhost/xyz/d/\_0uzU…

---

## [Nginx not logging errors](https://www.ruby-forum.com/t/nginx-not-logging-errors/159389)

<div class="topic-metadata">

**Author:** [@x3sphere](https://www.ruby-forum.com/u/x3sphere)\
**Replies:** 9\
**Last updated:** [February 4, 2009, 9:05pm UTC](https://www.ruby-forum.com/t/nginx-not-logging-errors/159389 "2009-02-04T21:05:06Z")

</div>

For some reason Nginx has stopped logging PHP errors. Access logs still work fine, but any PHP errors are no longer logged. Any reason why this would happen? Really stumped here… it was working fine a couple days ago. …

---

## [Is there any way to set req\_limit per hour or day like r/s and r/m in nginx?](https://www.ruby-forum.com/t/is-there-any-way-to-set-req-limit-per-hour-or-day-like-r-s-and-r-m-in-nginx/252706)

<div class="topic-metadata">

**Author:** [@aggholamyy](https://www.ruby-forum.com/u/aggholamyy)\
**Replies:** 0\
**Last updated:** [July 14, 2019, 7:36am UTC](https://www.ruby-forum.com/t/is-there-any-way-to-set-req-limit-per-hour-or-day-like-r-s-and-r-m-in-nginx/252706 "2019-07-14T07:36:55Z")

</div>

Is there any way to set req\_limit per hour or day like r/s and r/m in nginx? I’m trying to set limits in nginx.conf for different zones by different threshold. in document just said r/s and r/m.

---

## [How Can I create wordpresss rss in nginx?](https://www.ruby-forum.com/t/how-can-i-create-wordpresss-rss-in-nginx/252695)

<div class="topic-metadata">

**Author:** [@Murodali](https://www.ruby-forum.com/u/Murodali)\
**Replies:** 0\
**Last updated:** [July 12, 2019, 5:56am UTC](https://www.ruby-forum.com/t/how-can-i-create-wordpresss-rss-in-nginx/252695 "2019-07-12T05:56:35Z")

</div>

I have recently installed \* \[Yandex.News Feed by Teplitsa\] plugin to generate turbo rss to use yandex Turbo pages. WP basic RSS function without parameters returns pages to feed. The problem is when I access rss feed, it…

---

## [How to build an API Gateway for GraphQL Microservices with Nginx](https://www.ruby-forum.com/t/how-to-build-an-api-gateway-for-graphql-microservices-with-nginx/252080)

<div class="topic-metadata">

**Author:** [@Jacobcullen](https://www.ruby-forum.com/u/Jacobcullen)\
**Replies:** 0\
**Last updated:** [March 13, 2019, 8:07pm UTC](https://www.ruby-forum.com/t/how-to-build-an-api-gateway-for-graphql-microservices-with-nginx/252080 "2019-03-13T20:07:34Z")

</div>

Following are the things I’m expecting my API Gateway to do: Provide a single link at the Frontend for making request The Typed Language feature of GraphQL should be present at the API Gateway Can anyone help me with …

---

## [Problem using Magento with nginx](https://www.ruby-forum.com/t/problem-using-magento-with-nginx/159657)

<div class="topic-metadata">

**Author:** [@stefans](https://www.ruby-forum.com/u/stefans)\
**Replies:** 6\
**Last updated:** [February 7, 2009, 7:19pm UTC](https://www.ruby-forum.com/t/problem-using-magento-with-nginx/159657 "2009-02-07T19:19:12Z")

</div>

Hello - I have installed nginx + PHP-FPM and it is working perfectly for my Drupal sites (nginx 0.6.33, PHP 5.2.6, FPM 0.5.9, Drupal 6.6, Debian Etch). Now I am trying to use Magento (1.2.1) with nginx, and I am gett…

---

## [Nginx-rtmp-compile-for-windows error help](https://www.ruby-forum.com/t/nginx-rtmp-compile-for-windows-error-help/242143)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [October 22, 2018, 10:19pm UTC](https://www.ruby-forum.com/t/nginx-rtmp-compile-for-windows-error-help/242143 "2018-10-22T22:19:27Z")

</div>

Im experiencing issues with compiling Nginx on Windows 7, every thing goes good until nmake -f objs/Makefile. I get the following error Assembling: tmp32\\sha1-586.asm tmp32\\sha1-586.asm(1432) : error A2070:invalid i…

---

## [Connect() failed (111: Connection refused) while connecting to upstream](https://www.ruby-forum.com/t/connect-failed-111-connection-refused-while-connecting-to-upstream/245284)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [March 11, 2017, 6:10pm UTC](https://www.ruby-forum.com/t/connect-failed-111-connection-refused-while-connecting-to-upstream/245284 "2017-03-11T18:10:31Z")

</div>

I’m getting this error on my home page : http://www.dealslama.com An error occurred. Sorry, the page you are looking for is currently unavailable. Please try again later. If you are the system administrator of this r…

---

## [Echo-nginx-module and HTTP2](https://www.ruby-forum.com/t/echo-nginx-module-and-http2/243957)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 6\
**Last updated:** [February 17, 2017, 6:25pm UTC](https://www.ruby-forum.com/t/echo-nginx-module-and-http2/243957 "2017-02-17T18:25:28Z")

</div>

Hello, The echo module (GitHub - openresty/echo-nginx-module: An Nginx module for bringing the power of "echo", "sleep", "time" and more to Nginx's config file / v0.58) produce segfaults while accessing the following l…

---

## [X-accel-redirect enables caching for POST requests](https://www.ruby-forum.com/t/x-accel-redirect-enables-caching-for-post-requests/243705)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 10\
**Last updated:** [February 9, 2017, 5:00pm UTC](https://www.ruby-forum.com/t/x-accel-redirect-enables-caching-for-post-requests/243705 "2017-02-09T17:00:20Z")

</div>

Hi, If location /a/ redirects a POST request to location /b/ using X-Accel-Redirect then result of the POST request is cached. Tested this and reproduced with nginx 1.6.3 and 1.9.7. Setup: Logs from hitting /a/: \[…

---

## [Building nginx from Source on Windows](https://www.ruby-forum.com/t/building-nginx-from-source-on-windows/243725)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 5\
**Last updated:** [December 3, 2016, 7:31pm UTC](https://www.ruby-forum.com/t/building-nginx-from-source-on-windows/243725 "2016-12-03T19:31:52Z")

</div>

Hi, I posted a question at – copied below: I’m trying to build nginx from source on Windows. I got the following done: Installed mingw, gcc, and msys Downloaded the nginx source code Ran the following in th…

---

## [So\_keepalive option for outbound sockets](https://www.ruby-forum.com/t/so-keepalive-option-for-outbound-sockets/244978)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [July 22, 2016, 6:55pm UTC](https://www.ruby-forum.com/t/so-keepalive-option-for-outbound-sockets/244978 "2016-07-22T18:55:16Z")

</div>

Hello, I’ve configured the so\_keepalive option for a server (this is also my default server). I do have other server configs listening to the same port. listen 9822 default\_server so\_keepalive=on; listen 29822 ssl ht…

---

## [How i can use third party library while building own nginx module](https://www.ruby-forum.com/t/how-i-can-use-third-party-library-while-building-own-nginx-module/244979)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [July 22, 2016, 9:01am UTC](https://www.ruby-forum.com/t/how-i-can-use-third-party-library-while-building-own-nginx-module/244979 "2016-07-22T09:01:10Z")

</div>

Hi, how i can use third party library while building own nginx module as i am using third party libraries. Thanks, Pankaj

---

## [Using variables on configuration (map?) for regex](https://www.ruby-forum.com/t/using-variables-on-configuration-map-for-regex/244980)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [July 22, 2016, 8:22am UTC](https://www.ruby-forum.com/t/using-variables-on-configuration-map-for-regex/244980 "2016-07-22T08:22:37Z")

</div>

Hi I’m trying to /clean/ up a config file and I’m having a headache trying to do it. Consider the following scenario: Users from group gfoo must be allowed to GET URL foo, while adminfoo must be able to POST Users …

---

## [Fwd: Updated README to reflect changes in HTTP and Stream modules](https://www.ruby-forum.com/t/fwd-updated-readme-to-reflect-changes-in-http-and-stream-modules/244974)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [July 21, 2016, 9:26am UTC](https://www.ruby-forum.com/t/fwd-updated-readme-to-reflect-changes-in-http-and-stream-modules/244974 "2016-07-21T09:26:56Z")

</div>

Hello, For those who doesn’t follow njs project closely: Roman and Igor just added njs support to the stream module and moved js scripting to separate files. More details in the project README file you can find here: …

---

## [Nginx $upstream\_cache\_status not available when used in rate limiting](https://www.ruby-forum.com/t/nginx-upstream-cache-status-not-available-when-used-in-rate-limiting/244959)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 6\
**Last updated:** [July 20, 2016, 11:55pm UTC](https://www.ruby-forum.com/t/nginx-upstream-cache-status-not-available-when-used-in-rate-limiting/244959 "2016-07-20T23:55:37Z")

</div>

Hi, I use Nginx as reverse proxy, and I would like to rate limit the requests to origin server, but only limit the requests with cache status EXPIRED. I just tested with a map “cache\_key”, and the rate limiting does…

---

## [Error while building own nginx module](https://www.ruby-forum.com/t/error-while-building-own-nginx-module/244970)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [July 20, 2016, 4:13pm UTC](https://www.ruby-forum.com/t/error-while-building-own-nginx-module/244970 "2016-07-20T16:13:33Z")

</div>

Hi i have written own nginx module and i have many header ,src and makefiles files . my nginx module folder structure look like below /product/src/nginx/ngx\_http\_auth\_module.cpp /product/src/nginx/Makefile /produ…

---

## [While building own nginx module error to find user defined header file](https://www.ruby-forum.com/t/while-building-own-nginx-module-error-to-find-user-defined-header-file/244952)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [July 20, 2016, 2:30pm UTC](https://www.ruby-forum.com/t/while-building-own-nginx-module-error-to-find-user-defined-header-file/244952 "2016-07-20T14:30:09Z")

</div>

Hi All, I have written my own nginx module and i have my user defined header files but while building i am getting error header file not found. my module will act as a filter. Please help me. Regards, Pankaj

---

## [Error nginx: dlopen() "/usr/local/nginx/modules/ds\_http\_module.so" failed (/usr/local/nginx/modules/](https://www.ruby-forum.com/t/error-nginx-dlopen-usr-local-nginx-modules-ds-http-module-so-failed-usr-local-nginx-modules/244967)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [July 20, 2016, 11:03am UTC](https://www.ruby-forum.com/t/error-nginx-dlopen-usr-local-nginx-modules-ds-http-module-so-failed-usr-local-nginx-modules/244967 "2016-07-20T11:03:57Z")

</div>

Hi All, I am getting error below error for own written module ds\_http\_module. nginx: \[emerg\] dlopen() “/usr/local/nginx/modules/ds\_http\_module.so” failed (/usr/local/nginx/modules/ds\_http\_module.so: undefined symbol: …

---

## [Fix ngx\_reset\_pool](https://www.ruby-forum.com/t/fix-ngx-reset-pool/244957)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [July 18, 2016, 8:50pm UTC](https://www.ruby-forum.com/t/fix-ngx-reset-pool/244957 "2016-07-18T20:50:57Z")

</div>

HG changeset patch User Liang S. removed\_email\_address@domain.invalid Date 1468859189 -28800 Tue Jul 19 00:26:29 2016 +0800 Node ID 45ef1e0a48a82b2a81db6bc447aaeb16a10056f9 Parent 6acaa638fa074dada02ad4544a299584…

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