# NGINX

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

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

---

## [Slow performance when sending a large file upload request via proxy\_pass](https://www.ruby-forum.com/t/slow-performance-when-sending-a-large-file-upload-request-via-proxy-pass/244958)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [July 17, 2016, 4:19pm UTC](https://www.ruby-forum.com/t/slow-performance-when-sending-a-large-file-upload-request-via-proxy-pass/244958 "2016-07-17T16:19:23Z")

</div>

I’m trying to diagnose some strange behavior in my web app, and at the moment it seems like nginx may be at fault, though I’d be happy to learn otherwise. On the client side, I’m using flow.js (GitHub - flowjs/flow.j…

---

## [Images loaded but not displaying](https://www.ruby-forum.com/t/images-loaded-but-not-displaying/244950)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 3\
**Last updated:** [July 16, 2016, 11:57am UTC](https://www.ruby-forum.com/t/images-loaded-but-not-displaying/244950 "2016-07-16T11:57:10Z")

</div>

Hi, i have installed nginx/1.2.1 on a debian 7 server, the image seems to have been loaded but shows broken & are not displayed on my index.html page here is what did, html\> Welcome to nginx! Welcome to nginx…

---

## [Weird problem with redirects](https://www.ruby-forum.com/t/weird-problem-with-redirects/244948)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [July 16, 2016, 9:48am UTC](https://www.ruby-forum.com/t/weird-problem-with-redirects/244948 "2016-07-16T09:48:04Z")

</div>

Hello, I have a weird problem that suddenly appeared on a client’s website yesterday. We have a redirection from non www to www and sometimes the redirection sends somewhere else: \[root@genious33 nginx-1.11.2\]# curl …

---

## ["502 Bad Gateway" on first request in a setup with Apache 2.4-servers as upstreams](https://www.ruby-forum.com/t/502-bad-gateway-on-first-request-in-a-setup-with-apache-2-4-servers-as-upstreams/244947)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [July 15, 2016, 7:22pm UTC](https://www.ruby-forum.com/t/502-bad-gateway-on-first-request-in-a-setup-with-apache-2-4-servers-as-upstreams/244947 "2016-07-15T19:22:57Z")

</div>

The error I am getting in the logs: “upstream prematurely closed connection while reading response header from upstream” After the first request it works for 10-15 seconds without any problem. According to tcpdump i…

---

## [Issue with HTTP/2 and async file upload from Safari on iOS](https://www.ruby-forum.com/t/issue-with-http-2-and-async-file-upload-from-safari-on-ios/244730)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 12\
**Last updated:** [July 15, 2016, 2:09pm UTC](https://www.ruby-forum.com/t/issue-with-http-2-and-async-file-upload-from-safari-on-ios/244730 "2016-07-15T14:09:15Z")

</div>

Hi guys, I’m at my first deploy of Nginx with php-fpm after 10+ years of love with Apache and mod\_php. So far so (very) good. I just have a peculiar issue with Safari on iOS. As you can read here , my webapp allows…

---

## [Issue playing back multiple RTMP live streams](https://www.ruby-forum.com/t/issue-playing-back-multiple-rtmp-live-streams/244946)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [July 15, 2016, 12:00pm UTC](https://www.ruby-forum.com/t/issue-playing-back-multiple-rtmp-live-streams/244946 "2016-07-15T12:00:09Z")

</div>

Server: Linux CentOS 6.(x) NGINX with RTMP module enabled (compiled myself using an online tutorial) I use FFmpeg to stream to this server, and one stream works perfectly. Example of perfectly working stream from IP…

---

## [Getting realpath for a request](https://www.ruby-forum.com/t/getting-realpath-for-a-request/244943)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [July 15, 2016, 7:05am UTC](https://www.ruby-forum.com/t/getting-realpath-for-a-request/244943 "2016-07-15T07:05:44Z")

</div>

Hi, I am creating a nginx proxy handler to talk to a backend server. In that handler, I would like to get the physical path of the file to be served by a request. The file can be present in the docroot of nginx or any …

---

## [Limit\_req\_zone key cache lifetime](https://www.ruby-forum.com/t/limit-req-zone-key-cache-lifetime/244940)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [July 14, 2016, 10:31pm UTC](https://www.ruby-forum.com/t/limit-req-zone-key-cache-lifetime/244940 "2016-07-14T22:31:05Z")

</div>

I’m looking for documentation or explanation for how keys expire in the limit\_req\_zone. I have the basic documenations here: A client IP address serves as a key. Note that instead of $remote\_addr, the $binary\_remote\_a…

---

## [Forced 404 without a location display?](https://www.ruby-forum.com/t/forced-404-without-a-location-display/244930)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 3\
**Last updated:** [July 13, 2016, 12:46am UTC](https://www.ruby-forum.com/t/forced-404-without-a-location-display/244930 "2016-07-13T00:46:08Z")

</div>

I have some servers where I use an old method of gating a path by using a file check. this allows staff to turn off certain locations during migrations/updates without having root privileges (needed to restart nginx) …

---

## [Insert Variable Values when loading a Cloud Config?](https://www.ruby-forum.com/t/insert-variable-values-when-loading-a-cloud-config/244924)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [July 12, 2016, 10:16pm UTC](https://www.ruby-forum.com/t/insert-variable-values-when-loading-a-cloud-config/244924 "2016-07-12T22:16:00Z")

</div>

I asked a question on another site (Does bare-metal coreos etcd2 support the templating feature of coreos-cloudinit? - Stack Overflow) about loading a cloud config from nginx onto a bare-metal core-os machine. The qu…

---

## [Nginx not using root from location](https://www.ruby-forum.com/t/nginx-not-using-root-from-location/244934)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 4\
**Last updated:** [July 12, 2016, 10:11pm UTC](https://www.ruby-forum.com/t/nginx-not-using-root-from-location/244934 "2016-07-12T22:11:19Z")

</div>

Hello. I’m obviously missing something but I’m not quite sure what. Here’s one of my vhosts. server { listen 80; server\_name test.local; access\_log /var/log/nginx/access.log; root /data/www/htdocs/web; l…

---

## [One goal. 2 settings. Which one would you recommend?](https://www.ruby-forum.com/t/one-goal-2-settings-which-one-would-you-recommend/244926)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [July 11, 2016, 6:34pm UTC](https://www.ruby-forum.com/t/one-goal-2-settings-which-one-would-you-recommend/244926 "2016-07-11T18:34:39Z")

</div>

Hi I am debating what is a better setting between the 2 settings below. Setting#1 and Setting#2 attempt to do the same task (flow control by controlling the IP sources). Setting#1 uses one machine and Setting#2 uses …

---

## [Set up reverse proxy and loadbalancing without hostname](https://www.ruby-forum.com/t/set-up-reverse-proxy-and-loadbalancing-without-hostname/244921)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 4\
**Last updated:** [July 9, 2016, 7:53pm UTC](https://www.ruby-forum.com/t/set-up-reverse-proxy-and-loadbalancing-without-hostname/244921 "2016-07-09T19:53:04Z")

</div>

Hi Gurus My lab environment is Nginx IP: 192.168.16.206 Four Web Server: 192.168.16.201-204 My nginx.conf is http { upstream myapp1 { server 192.168.16.201; server 192.168.16.202; server 192.168.16.203; server …

---

## [Optimization flags](https://www.ruby-forum.com/t/optimization-flags/244919)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 4\
**Last updated:** [July 8, 2016, 3:22pm UTC](https://www.ruby-forum.com/t/optimization-flags/244919 "2016-07-08T15:22:45Z")

</div>

The default --with-cc-opt flags for Nginx are these: \*–with-cc-opt=’-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D\_FORTIFY\_SOURCE=2’\* However I added more optimizations, which are against th…

---

## [Rewrite Rules from apache](https://www.ruby-forum.com/t/rewrite-rules-from-apache/244915)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [July 8, 2016, 9:39am UTC](https://www.ruby-forum.com/t/rewrite-rules-from-apache/244915 "2016-07-08T09:39:16Z")

</div>

Hi Everyone, i try to convert some rules from apache htaccess to nginx. This is my htaccess Rule: RewriteCond %{DOCUMENT\_ROOT}/$3 -f RewriteRule ^(.?)/(.?)/(.\*)$ /$3 I tried these options but it seems not working: i…

---

## [Nginx as the proxy that provides client certificate and faced connection attempt failed talk to upst](https://www.ruby-forum.com/t/nginx-as-the-proxy-that-provides-client-certificate-and-faced-connection-attempt-failed-talk-to-upst/244920)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [July 7, 2016, 10:09pm UTC](https://www.ruby-forum.com/t/nginx-as-the-proxy-that-provides-client-certificate-and-faced-connection-attempt-failed-talk-to-upst/244920 "2016-07-07T22:09:22Z")

</div>

Hey, I’m using nginx for windows as a reverse proxy to upstream server. The upstream server requires client certificate and thus in the nginx config, I put the following: location / { proxy\_ssl\_certificate\_key cert.…

---

## [Order of execution of nginx filters](https://www.ruby-forum.com/t/order-of-execution-of-nginx-filters/244897)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 4\
**Last updated:** [July 7, 2016, 2:43pm UTC](https://www.ruby-forum.com/t/order-of-execution-of-nginx-filters/244897 "2016-07-07T14:43:39Z")

</div>

Hi, I have the following three directives: location = /hello { hello\_world; hola\_mundo on; bonjour\_monde on; } hello\_world is an nginx handler module that provides content “hello world” hola\_mundo and bonjour\_mo…

---

## [SNI support for nginx](https://www.ruby-forum.com/t/sni-support-for-nginx/244891)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 4\
**Last updated:** [July 7, 2016, 7:55am UTC](https://www.ruby-forum.com/t/sni-support-for-nginx/244891 "2016-07-07T07:55:39Z")

</div>

Hi, I am relatively new to nginx. I would like to setup multiple domains on the same port. Nginx has SNI support enabled. Do i have to still point to the right ssl certificate and ssl private in each of server block…

---

## [Nginx static file serving - Some files are 404, some not](https://www.ruby-forum.com/t/nginx-static-file-serving-some-files-are-404-some-not/244912)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 3\
**Last updated:** [July 6, 2016, 7:02pm UTC](https://www.ruby-forum.com/t/nginx-static-file-serving-some-files-are-404-some-not/244912 "2016-07-06T19:02:49Z")

</div>

I have the following server configuration block: ^/(fonts/|gallery/|images/|javascripts/|stylesheets/|ajax\_info.txt|apple-touch-icon.png|browserconfig.xml|crossdomain.xml|favicon.ico|robots.txt|tile-wide.png|tile.png) …

---

## [Setting ssl\_ecdh\_curve to secp384r1 does not work](https://www.ruby-forum.com/t/setting-ssl-ecdh-curve-to-secp384r1-does-not-work/244901)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 8\
**Last updated:** [July 6, 2016, 6:08pm UTC](https://www.ruby-forum.com/t/setting-ssl-ecdh-curve-to-secp384r1-does-not-work/244901 "2016-07-06T18:08:30Z")

</div>

Hi all, I was running nginx 1.9.12 on Ubuntu 14.04 built from the source tarball with these options: --with-ipv6 --with-http\_ssl\_module –with-http\_v2\_module --with-openssl=/openssl-1.0.2g While switching to a new ser…

---

## [Nginx-1.11.2](https://www.ruby-forum.com/t/nginx-1-11-2/244904)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [July 6, 2016, 1:04pm UTC](https://www.ruby-forum.com/t/nginx-1-11-2/244904 "2016-07-06T13:04:44Z")

</div>

Changes with nginx 1.11.2 05 Jul 2016 \*) Change: now nginx always uses internal MD5 and SHA1 implementations; the --with-md5 and --with-sha1 configure options were canceled. \*…

---

## [Basic nginx setup help as load balancer](https://www.ruby-forum.com/t/basic-nginx-setup-help-as-load-balancer/244903)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 5\
**Last updated:** [July 6, 2016, 12:56pm UTC](https://www.ruby-forum.com/t/basic-nginx-setup-help-as-load-balancer/244903 "2016-07-06T12:56:33Z")

</div>

I was getting a host not found problem while trying to start nginx. nginx: \[emerg\] host not found in upstream “backendservers.com” in /etc/nginx/conf.d/default.conf:37 I am fairly certain that this is because there is…

---

## [Erro 499 help](https://www.ruby-forum.com/t/erro-499-help/244907)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [July 6, 2016, 12:35pm UTC](https://www.ruby-forum.com/t/erro-499-help/244907 "2016-07-06T12:35:31Z")

</div>

My web architecture is: nginx(reverse proxy) → nginx + php-fpm It’s normal when i curl it on pc(linux shell and pc Browser). This’s nginx(reverse proxy) access.log: 117.136.40.0 - - \[06/Jul/2016:17:38:31 +0800\] “GE…

---

## [Does nginx forward requests to backend servers using http or https?](https://www.ruby-forum.com/t/does-nginx-forward-requests-to-backend-servers-using-http-or-https/244900)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 5\
**Last updated:** [July 5, 2016, 9:55pm UTC](https://www.ruby-forum.com/t/does-nginx-forward-requests-to-backend-servers-using-http-or-https/244900 "2016-07-05T21:55:04Z")

</div>

I am using the free version of nginx on RHEL 6.7. The version is : nginx-1.10.1-1.el6.ngx.x86\_64 When using nginx as a load balancer I would like to know if nginx forwards requests to backend servers using http or htt…

---

## [Cache calculating erroneous size](https://www.ruby-forum.com/t/cache-calculating-erroneous-size/244908)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [July 5, 2016, 9:44pm UTC](https://www.ruby-forum.com/t/cache-calculating-erroneous-size/244908 "2016-07-05T21:44:33Z")

</div>

Hello, I’ve been experiencing a rather strange situation regarding the cache size occupation (calculated by nginx’s cache manager and reported in debug logs) versus the real occupied size as reported by df. Just exe…

---

## [Very simple question about cache](https://www.ruby-forum.com/t/very-simple-question-about-cache/244905)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [July 5, 2016, 9:23pm UTC](https://www.ruby-forum.com/t/very-simple-question-about-cache/244905 "2016-07-05T21:23:31Z")

</div>

Hi,I set simply reverse proxy (backend is an Apache web server): upstream backend { ip\_hash; server 127.0.0.1:8080; } server { listen x.y.w.z:80; # IP goes here. server\_name somedomain.com;…

---

## [Cache issue with cms](https://www.ruby-forum.com/t/cache-issue-with-cms/244906)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [July 5, 2016, 6:25pm UTC](https://www.ruby-forum.com/t/cache-issue-with-cms/244906 "2016-07-05T18:25:56Z")

</div>

Hi, I am using nginx version 1.10.1 with reverse proxy function toward Apache 2.2.15 I noticed that if I change something inside backend (eg. modify some text on some article), that changes appear on frontend, but I …

---

## [Issue with KeepAlive](https://www.ruby-forum.com/t/issue-with-keepalive/244894)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [July 4, 2016, 7:29pm UTC](https://www.ruby-forum.com/t/issue-with-keepalive/244894 "2016-07-04T19:29:04Z")

</div>

Hi all, I need help on managing KeepAlive on my nginx webservice. Seeing error logs seems that many keepalive HTTP request are discarded by Nginx. On client side this behaviour seems to be a timeout. This is my code…

---

## [Nginx not removing stream socket](https://www.ruby-forum.com/t/nginx-not-removing-stream-socket/244892)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [July 4, 2016, 3:53pm UTC](https://www.ruby-forum.com/t/nginx-not-removing-stream-socket/244892 "2016-07-04T15:53:31Z")

</div>

Hi, On CentOS7 . nginx is not removing the stream socket on shutdown causing restarts to fail unless the socket file is manually removed. nginx process itself exit .But becase of the file not being removed nginx is u…

---

## [WebRTC and NGINX Reverse Proxy](https://www.ruby-forum.com/t/webrtc-and-nginx-reverse-proxy/244883)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [July 4, 2016, 1:29pm UTC](https://www.ruby-forum.com/t/webrtc-and-nginx-reverse-proxy/244883 "2016-07-04T13:29:47Z")

</div>

Hi, I have a PBX that has a webRTC feature (i.e. you login to PBX website and you have a virtual handset with all the features). Is it feasible or possible to use NGINX as a reverse proxy to handle webRTC ? A basic …

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

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