# NGINX

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

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

---

## [(52) Empty reply from server](https://www.ruby-forum.com/t/52-empty-reply-from-server/244459)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 25\
**Last updated:** [May 10, 2016, 10:47pm UTC](https://www.ruby-forum.com/t/52-empty-reply-from-server/244459 "2016-05-10T22:47:22Z")

</div>

Hi All, i am trying to set value in header with the help of below code snippet . ngx\_table\_elt\_t \*h1; h1 = ngx\_list\_push(&r-\>headers\_out.headers); h1-\>hash = 1; ngx\_str\_set(&h1-\>key, “http\_user\_agent”); ngx\_str\_set…

---

## [Nginx as reverse proxy scalability](https://www.ruby-forum.com/t/nginx-as-reverse-proxy-scalability/244601)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 7\
**Last updated:** [May 10, 2016, 5:49pm UTC](https://www.ruby-forum.com/t/nginx-as-reverse-proxy-scalability/244601 "2016-05-10T17:49:26Z")

</div>

Hello, I’m currently working on nginx limits as a reverse proxy on a Debian box. My current setup is a nginx configured as a http/https web server (for static content) and a reverse proxy for node.js processes on the…

---

## [So\_bindtodevice](https://www.ruby-forum.com/t/so-bindtodevice/244596)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [May 10, 2016, 5:17pm UTC](https://www.ruby-forum.com/t/so-bindtodevice/244596 "2016-05-10T17:17:18Z")

</div>

My device has multiple interfaces and supports dynamic ips. SO\_BINDTODEVICE looks like it would be used to specify a device in the listen statement instead of having to update every IP change. I see someone submitted …

---

## [Global denial for certain IPs or agents?](https://www.ruby-forum.com/t/global-denial-for-certain-ips-or-agents/244595)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 5\
**Last updated:** [May 10, 2016, 4:44pm UTC](https://www.ruby-forum.com/t/global-denial-for-certain-ips-or-agents/244595 "2016-05-10T16:44:35Z")

</div>

Hi all, I’ve got Nginx on a Debian server, hosting two sites (two subdomains of my work’s website). I want to limit both, and any future subdomains, to only intranet addresses. I also saw access logs this morning fr…

---

## [HTTP2 window update and priority](https://www.ruby-forum.com/t/http2-window-update-and-priority/244591)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 4\
**Last updated:** [May 10, 2016, 4:34pm UTC](https://www.ruby-forum.com/t/http2-window-update-and-priority/244591 "2016-05-10T16:34:03Z")

</div>

Hi According to my view on the source code of Nginx 1.9.15, I noticed some observation below: when there is no enough window, nginx won’t send back the response frame, though according to the log, nginx said it has …

---

## [Php5-fpm gives unknown script error](https://www.ruby-forum.com/t/php5-fpm-gives-unknown-script-error/244594)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [May 10, 2016, 3:22pm UTC](https://www.ruby-forum.com/t/php5-fpm-gives-unknown-script-error/244594 "2016-05-10T15:22:47Z")

</div>

Hello list, I’m pretty new to Nginx, but I wanted to give it a shot. I like how it is configured–it makes more sense to me than Apache. However, I’m having a hard time with getting php. I’m running on Debian 8, and N…

---

## [Nginx 1.11.0: client sent stream with data before settings were acknowledged while processing HTTP/2](https://www.ruby-forum.com/t/nginx-1-11-0-client-sent-stream-with-data-before-settings-were-acknowledged-while-processing-http-2/244544)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 9\
**Last updated:** [May 10, 2016, 2:50pm UTC](https://www.ruby-forum.com/t/nginx-1-11-0-client-sent-stream-with-data-before-settings-were-acknowledged-while-processing-http-2/244544 "2016-05-10T14:50:04Z")

</div>

Hello, As of recently, shortly after updating nginx to version 1.11.0, we started getting the following errors in the error log for our sites configured with HTTP/2 and SSL: 2016/04/29 14:54:12 \[info\] 22321#22321: …

---

## [Server setup consultant](https://www.ruby-forum.com/t/server-setup-consultant/244497)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [May 9, 2016, 1:53pm UTC](https://www.ruby-forum.com/t/server-setup-consultant/244497 "2016-05-09T13:53:49Z")

</div>

Hello Sorry if it’s not the good channel but could not find another. I need to setup my web server for production, now we have a test server configured in a amateur way just for development. This lacks security and g…

---

## [Поддерживает ли Nginx прозрачный прокси?](https://www.ruby-forum.com/t/nginx/244592)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [May 9, 2016, 11:51am UTC](https://www.ruby-forum.com/t/nginx/244592 "2016-05-09T11:51:44Z")

</div>

Поддерживает ли Nginx прозрачный прокси? Имеется ввиду такая схема: Запрашивается ресурс по HTTP протоколу, например адрес сайта/ Nginx пропускает через себя этот запрос Возвращает запрашиваемый ресурс(веб-сайт) Спаси…

---

## [Nginx always searches index.php in the wrong directory](https://www.ruby-forum.com/t/nginx-always-searches-index-php-in-the-wrong-directory/244583)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [May 7, 2016, 11:05am UTC](https://www.ruby-forum.com/t/nginx-always-searches-index-php-in-the-wrong-directory/244583 "2016-05-07T11:05:08Z")

</div>

Hello! I have a web root directory pointing to /var/www/html. I have several subfolders in /var/www/html where I host different projects. Example: /var/www/html/chatserver When I try to access http:// MYSERVER.net/c…

---

## [Rewrite before regex location](https://www.ruby-forum.com/t/rewrite-before-regex-location/244569)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 12\
**Last updated:** [May 7, 2016, 12:29am UTC](https://www.ruby-forum.com/t/rewrite-before-regex-location/244569 "2016-05-07T00:29:31Z")

</div>

I am trying to migrate to Nginx + PHP-FPM from Apache + mod\_php. I am currently using mod\_rewrite to rewrite some virtual URIs ending in .php to actual PHP scripts. This works perfectly when using mod\_php. But with w…

---

## [A strange log](https://www.ruby-forum.com/t/a-strange-log/244580)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [May 6, 2016, 3:11pm UTC](https://www.ruby-forum.com/t/a-strange-log/244580 "2016-05-06T15:11:03Z")

</div>

Hi, I have a strange log from 169.229.3.91 (University of California at Berkeley ISTDATA (NET-169-229-0-0-2) 169.229.0.0 - 169.229.255.255). \[06/May/2016:13:03:10 +0200\] … 5\\xF5\\x13\\xED\\xCA upstream\_response\_time - m…

---

## [Openshift-nginx docker image running as non-root](https://www.ruby-forum.com/t/openshift-nginx-docker-image-running-as-non-root/244565)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 4\
**Last updated:** [May 6, 2016, 2:10pm UTC](https://www.ruby-forum.com/t/openshift-nginx-docker-image-running-as-non-root/244565 "2016-05-06T14:10:53Z")

</div>

Hi, I have been playing around with the https://github.com/nginxinc/openshift-nginx dockerfile and trying to find a way to run run nginx as non-root with openshift/k8/docker. I am currently getting the error: ngin…

---

## [Nginx wrong with systemd](https://www.ruby-forum.com/t/nginx-wrong-with-systemd/244573)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [May 6, 2016, 5:02am UTC](https://www.ruby-forum.com/t/nginx-wrong-with-systemd/244573 "2016-05-06T05:02:56Z")

</div>

default.conf location / { #root /usr/share/nginx/html; root /sdd/; #index index.html index.htm; autoindex on; \[root@centos /\]# /usr/sbin/nginx -c /etc/nginx/nginx.conf I can read the files \[root@centos /\]syste…

---

## [Proxy cache + pseudo-streaming for mp4/flv](https://www.ruby-forum.com/t/proxy-cache-pseudo-streaming-for-mp4-flv/244579)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [May 6, 2016, 4:38am UTC](https://www.ruby-forum.com/t/proxy-cache-pseudo-streaming-for-mp4-flv/244579 "2016-05-06T04:38:24Z")

</div>

Hi guys! In order to make the proxy cache and pseudo-streaming for mp4/flv work together, I do a rough hacking on nginx 1.9.12 (there is my patch: https://pastebin.mozilla.org/8869689). It works well apparently, but …

---

## [HTTP2 Multiplexing](https://www.ruby-forum.com/t/http2-multiplexing/244562)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 4\
**Last updated:** [May 5, 2016, 7:58pm UTC](https://www.ruby-forum.com/t/http2-multiplexing/244562 "2016-05-05T19:58:30Z")

</div>

Hi Different from HTTP1.1 pipeline, HTTP2 allows multiple request and response messages to be in flight at the same time. I was wondering what the strategy Nginx adopt to implement this main feature. Is every singl…

---

## [Shared Memory Structure?](https://www.ruby-forum.com/t/shared-memory-structure/244558)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [May 4, 2016, 3:41pm UTC](https://www.ruby-forum.com/t/shared-memory-structure/244558 "2016-05-04T15:41:31Z")

</div>

I am storing things in a shared memory zone allocated with ngx\_shared\_memory\_add and allocating each slab with ngx\_slab\_alloc\_locked (as these items don’t need to be locked particularly). The problem I’m having is th…

---

## [Trailing Slash redirection poblem](https://www.ruby-forum.com/t/trailing-slash-redirection-poblem/244546)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 8\
**Last updated:** [May 4, 2016, 2:53pm UTC](https://www.ruby-forum.com/t/trailing-slash-redirection-poblem/244546 "2016-05-04T14:53:01Z")

</div>

Dear All, Need some help to remove trailing Slash. I have been trying to remove the trailing slash with this redirection rule. rewrite ^/(.\*)/$ /$1 permanent; however it is creating a loop. curl -I https://xxxx.com…

---

## [How to turn off DNS caching](https://www.ruby-forum.com/t/how-to-turn-off-dns-caching/244568)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [May 4, 2016, 1:48pm UTC](https://www.ruby-forum.com/t/how-to-turn-off-dns-caching/244568 "2016-05-04T13:48:46Z")

</div>

Hi, I am trying to connect to my AWS RDS (mysql) instance using the AWS supplied DNS endpoint. The problem is, the IP of the instance changes periodically. It appears that nginx does not resolve the DNS name every t…

---

## [Location.nested location.which one is better?](https://www.ruby-forum.com/t/location-nested-location-which-one-is-better/244563)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [May 4, 2016, 6:18am UTC](https://www.ruby-forum.com/t/location-nested-location-which-one-is-better/244563 "2016-05-04T06:18:22Z")

</div>

Hi all, I’m running a website which is based on php. And I’m trying to use naxsi for my website. But it seems to enable naxsi, we need to put below line within a location: include /etc/nginx/naxsi.rules; A…

---

## [Binary cgi script download instead of executing](https://www.ruby-forum.com/t/binary-cgi-script-download-instead-of-executing/244551)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [May 3, 2016, 7:37am UTC](https://www.ruby-forum.com/t/binary-cgi-script-download-instead-of-executing/244551 "2016-05-03T07:37:16Z")

</div>

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

---

## [Origin/Edge Questions](https://www.ruby-forum.com/t/origin-edge-questions/244553)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [May 2, 2016, 12:10pm UTC](https://www.ruby-forum.com/t/origin-edge-questions/244553 "2016-05-02T12:10:05Z")

</div>

Hi folks. Today, we have several NGINX systems deployed … most of it is for caching frontend to websites via anycasted instance. A couple of our systems though involve video - streaming of realtime linear encrypted…

---

## [Nginx.conf 2016: CFP Closing Soon, Submit Your Talk Today](https://www.ruby-forum.com/t/nginx-conf-2016-cfp-closing-soon-submit-your-talk-today/244549)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [May 2, 2016, 4:39am UTC](https://www.ruby-forum.com/t/nginx-conf-2016-cfp-closing-soon-submit-your-talk-today/244549 "2016-05-02T04:39:37Z")

</div>

Hello folks, The deadline to submit a proposal to nginx.conf 2016 https://www.nginx.com/nginxconf/ is quickly approaching. Share your NGINX stories with us: https://nginxconf16.busyconf.com/proposals/new/ Deadline to…

---

## [Nginx servers on both \*:80 and \<ip\>:80? also duplicate listen parameters error when binding by just](https://www.ruby-forum.com/t/nginx-servers-on-both-80-and-ip-80-also-duplicate-listen-parameters-error-when-binding-by-just/244388)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 4\
**Last updated:** [April 30, 2016, 10:27am UTC](https://www.ruby-forum.com/t/nginx-servers-on-both-80-and-ip-80-also-duplicate-listen-parameters-error-when-binding-by-just/244388 "2016-04-30T10:27:21Z")

</div>

I would like to have an Nginx setup where I have specific logic depending on which interface (ip) the request arrived on. I was able to make this work by having a server stanza for each ip on the server, but was’t a…

---

## [Permanent Redirect on nginx](https://www.ruby-forum.com/t/permanent-redirect-on-nginx/244536)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [April 30, 2016, 9:37am UTC](https://www.ruby-forum.com/t/permanent-redirect-on-nginx/244536 "2016-04-30T09:37:07Z")

</div>

Dear Nginx Community My org has changed domain from unam.na to unam.edu.na. I intend to effect a permanent redirect on Nginx. I have tried the lines in bold below but browsers are complaining of too many redirects. A…

---

## [Video & Slides for our first Bay Area OpenResty Meetup](https://www.ruby-forum.com/t/video-slides-for-our-first-bay-area-openresty-meetup/244539)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [April 30, 2016, 12:08am UTC](https://www.ruby-forum.com/t/video-slides-for-our-first-bay-area-openresty-meetup/244539 "2016-04-30T00:08:45Z")

</div>

Hi folks We had a good time at our first bay area OpenResty meetup \[1\] last month. Now I’d like to share with you the video recordings and slides for our presentations: Presentation “adobe.io” from Adobe’s Dragos D…

---

## [Please help rewrite proper parameter](https://www.ruby-forum.com/t/please-help-rewrite-proper-parameter/244311)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [April 29, 2016, 8:11pm UTC](https://www.ruby-forum.com/t/please-help-rewrite-proper-parameter/244311 "2016-04-29T20:11:00Z")

</div>

Hi, Sometimes, bots are notorious for doing that, arguments are over urlencoded. If someone knew a way to rewrite them back to their normal state, that would be awesome. e.g. Normal URL: Custom Application Develop…

---

## [Nginx is too greedy with urls](https://www.ruby-forum.com/t/nginx-is-too-greedy-with-urls/244543)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [April 29, 2016, 8:03pm UTC](https://www.ruby-forum.com/t/nginx-is-too-greedy-with-urls/244543 "2016-04-29T20:03:59Z")

</div>

Hi, I have a case where a redirect for word-hyphen should take precendence over a proxy\_pass with word only both are inside location {} directives. location ~ ^/word-hyphen{ return 301 https://bla/one/two/word-hy…

---

## [Protect site with username and password](https://www.ruby-forum.com/t/protect-site-with-username-and-password/244527)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [April 29, 2016, 2:09pm UTC](https://www.ruby-forum.com/t/protect-site-with-username-and-password/244527 "2016-04-29T14:09:59Z")

</div>

Hello! I have NGINX installed on Windows 7. How NGINX is configured to protect the web site using login and password? Regards, Ricardo

---

## [Remove whitespaces from $args](https://www.ruby-forum.com/t/remove-whitespaces-from-args/244534)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [April 29, 2016, 8:17am UTC](https://www.ruby-forum.com/t/remove-whitespaces-from-args/244534 "2016-04-29T08:17:45Z")

</div>

Hi, Tell me please, how can I remove all spaces from $args ? I create solution, it remove up to 5 spaces. But it not best way i think. if ($args ~ (.\*)\\s(.\*)$) { set $args $1$2; } if ($args ~ (.\*)\\s(.…

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

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