# NGINX

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

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

---

## [Proxy\_pass to specific location](https://www.ruby-forum.com/t/proxy-pass-to-specific-location/241582)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [April 16, 2015, 6:42pm UTC](https://www.ruby-forum.com/t/proxy-pass-to-specific-location/241582 "2015-04-16T18:42:49Z")

</div>

Hello everyone! I have next configuration of my nginx: first backend upstream first { server 192.168.1.12:8080; server 192.168.1.13:8080; sticky; } second backend upstream second { server 192.168.1.14:8080; } …

---

## [Prevent caching of 301 redirects](https://www.ruby-forum.com/t/prevent-caching-of-301-redirects/241578)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [April 16, 2015, 1:06pm UTC](https://www.ruby-forum.com/t/prevent-caching-of-301-redirects/241578 "2015-04-16T13:06:05Z")

</div>

Hi I’m running nginx as a reverse proxy for a website, and we have an occasional problem where one of the back end servers occasionally sends an errant 301 with caching headers as the home page for the site. nginx …

---

## [Nginx on Windows how to know the correct MP4 buffer sizes?](https://www.ruby-forum.com/t/nginx-on-windows-how-to-know-the-correct-mp4-buffer-sizes/241576)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [April 16, 2015, 8:50am UTC](https://www.ruby-forum.com/t/nginx-on-windows-how-to-know-the-correct-mp4-buffer-sizes/241576 "2015-04-16T08:50:58Z")

</div>

So i do video streaming of large videos 2GB+ in size how do i know what buffer sizes to use in my nginx config or should i leave it at default ? http://nginx.org/en/docs/http/ngx\_http\_mp4\_module.html location ~ .mp4…

---

## [Nginx config for wordpress in subfolder with rewrites for main folder](https://www.ruby-forum.com/t/nginx-config-for-wordpress-in-subfolder-with-rewrites-for-main-folder/241569)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [April 15, 2015, 7:18pm UTC](https://www.ruby-forum.com/t/nginx-config-for-wordpress-in-subfolder-with-rewrites-for-main-folder/241569 "2015-04-15T19:18:55Z")

</div>

I have a vbulletin site in root and a wordpress blog in /blog/ the root nginx rewrites all work as they should utilising the dbseo plugin for vbulletin to make search engine friendly urls if i turn on permalinks in w…

---

## [Nginx reload sometimes not working(worker processes still alive)](https://www.ruby-forum.com/t/nginx-reload-sometimes-not-working-worker-processes-still-alive/241566)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [April 15, 2015, 4:21pm UTC](https://www.ruby-forum.com/t/nginx-reload-sometimes-not-working-worker-processes-still-alive/241566 "2015-04-15T16:21:20Z")

</div>

hi i’m not sure if this is an nginx or pagespeed or maybe linux problem we’re using nginx on RedHat Linux 2.6.32-504.8.1.el6.x86\_64 #1 SMP Fri Dec 19 12:09:25 EST 2014 x86\_64 x86\_64 x86\_64 GNU/Linux nginx1.6.2 wit…

---

## [Using same cookie in map for 2 independent sites](https://www.ruby-forum.com/t/using-same-cookie-in-map-for-2-independent-sites/241562)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [April 15, 2015, 11:42am UTC](https://www.ruby-forum.com/t/using-same-cookie-in-map-for-2-independent-sites/241562 "2015-04-15T11:42:16Z")

</div>

Hello! I’ve got beta and live site listening on different ip on the same server. Both sites using same ‘if’ in ‘server’ statement: server { listen 1.1.1.1:80; server\_name live; set $mage\_run\_code default; if ($cook…

---

## [Epoll\_wait() reported that client prematurely closed connection, so upstream connection is closed to](https://www.ruby-forum.com/t/epoll-wait-reported-that-client-prematurely-closed-connection-so-upstream-connection-is-closed-to/241559)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [April 15, 2015, 9:45am UTC](https://www.ruby-forum.com/t/epoll-wait-reported-that-client-prematurely-closed-connection-so-upstream-connection-is-closed-to/241559 "2015-04-15T09:45:24Z")

</div>

Hello, We have a problem with nginx in a drupal site. The images placed in the domain root are not visible in chrome, but in firefox for example, are fine. This is the error in the nginx virtual host error log: 2015…

---

## [Igor's post about nginx from this morning](https://www.ruby-forum.com/t/igors-post-about-nginx-from-this-morning/241558)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [April 14, 2015, 8:32pm UTC](https://www.ruby-forum.com/t/igors-post-about-nginx-from-this-morning/241558 "2015-04-14T20:32:48Z")

</div>

Hello All, If you haven’t seen Igor’s post from today, yet, it’s worth a read. Here’s a teaser – The next 12 months herald some major new features for NGINX Open Source. The stories about NGINX and JavaScript will b…

---

## [Windows nginx 1.7.12.1 Lizard](https://www.ruby-forum.com/t/windows-nginx-1-7-12-1-lizard/241556)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [April 14, 2015, 8:23pm UTC](https://www.ruby-forum.com/t/windows-nginx-1-7-12-1-lizard/241556 "2015-04-14T20:23:53Z")

</div>

17:02 14-4-2015 nginx 1.7.12.1 Lizard White Rabbit: We need a lazard with a liddle… a lad… can you help us? Bill: At your service, gov’nor. Dodo: Bill, my lad. Have you ever been down a chimney? Bill: Why, gov’nor, …

---

## [My site is vulnerable to the SSL FREAK attacks](https://www.ruby-forum.com/t/my-site-is-vulnerable-to-the-ssl-freak-attacks/241540)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 9\
**Last updated:** [April 14, 2015, 11:41am UTC](https://www.ruby-forum.com/t/my-site-is-vulnerable-to-the-ssl-freak-attacks/241540 "2015-04-14T11:41:06Z")

</div>

my site is vulnerable to the SSL FREAK attacks. i have a setting problem. my setting is… I want all request “http” → “https” But, some location is “https” → “http”. ALL Location : https /companyBrand.do : http only …

---

## [Using NGINX in non-fork mode](https://www.ruby-forum.com/t/using-nginx-in-non-fork-mode/241548)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [April 14, 2015, 8:35am UTC](https://www.ruby-forum.com/t/using-nginx-in-non-fork-mode/241548 "2015-04-14T08:35:28Z")

</div>

Hi, I am using a single worker process and master\_process off in nginx.conf. Now as per my understanding, the flow of operation would be something like: NGiNX master process will be created which will spawn a single …

---

## [Limit\_rate for POST targets?](https://www.ruby-forum.com/t/limit-rate-for-post-targets/241467)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 7\
**Last updated:** [April 14, 2015, 3:04am UTC](https://www.ruby-forum.com/t/limit-rate-for-post-targets/241467 "2015-04-14T03:04:11Z")

</div>

Is there a module that does throttled reading for POST and works the same way as limit\_rate does for GET (per stream, X bytes per second). I got some kind of throttle effect by putting a usleep() into the os/unix/ngx…

---

## [499s % in production traffic](https://www.ruby-forum.com/t/499s-in-production-traffic/241547)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [April 13, 2015, 11:20pm UTC](https://www.ruby-forum.com/t/499s-in-production-traffic/241547 "2015-04-13T23:20:12Z")

</div>

Hello NGINX Community, It is my understanding 499 is a client side response code indicating the remote user prematurely closed the connection without finishing the transaction. I have a production environment wh…

---

## [Core Dumps on 1.7.12 with SPDY](https://www.ruby-forum.com/t/core-dumps-on-1-7-12-with-spdy/241533)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [April 13, 2015, 11:05pm UTC](https://www.ruby-forum.com/t/core-dumps-on-1-7-12-with-spdy/241533 "2015-04-13T23:05:08Z")

</div>

Hello I’m running Nginx installed from the nginx.org repos on a Ubuntu Server 14.04. There are about a dozen different sites running on this server, mostly using PHP-FPM backend. Since the update to 1.7.12 I had fr…

---

## [Handling different two way ssl-request via a proxy system](https://www.ruby-forum.com/t/handling-different-two-way-ssl-request-via-a-proxy-system/241538)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [April 13, 2015, 9:27pm UTC](https://www.ruby-forum.com/t/handling-different-two-way-ssl-request-via-a-proxy-system/241538 "2015-04-13T21:27:39Z")

</div>

Hello, Currently we’ve got the following situation in our production environment: Clients —HTTP—\> Apache —HTTPS TWO-WAY SSL VIA PROXY —\> HTTPS SERVERS Just to be clear, the following services are used during this flo…

---

## [Setting max active connection](https://www.ruby-forum.com/t/setting-max-active-connection/245799)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 5\
**Last updated:** [April 13, 2015, 6:22pm UTC](https://www.ruby-forum.com/t/setting-max-active-connection/245799 "2015-04-13T18:22:31Z")

</div>

How to increase max active connection limits from default 520. System configuration CentOS release 5.8 (Final) with whm. nginx conf file is user nginx root; worker\_processes 16; worker\_rlimit\_nofile 200000; worker\_…

---

## [Auth\_request + php-fpm + POST request](https://www.ruby-forum.com/t/auth-request-php-fpm-post-request/241520)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [April 13, 2015, 3:42pm UTC](https://www.ruby-forum.com/t/auth-request-php-fpm-post-request/241520 "2015-04-13T15:42:54Z")

</div>

Hi, I’m using the auth\_request module to enable custom (2fa) authentication to protect my whole website, no matter the various applications I host on this website. So the auth\_request directive is set at the “server…

---

## [How does Nginx handle the request of the upstream server when it is marked as \`down\`?](https://www.ruby-forum.com/t/how-does-nginx-handle-the-request-of-the-upstream-server-when-it-is-marked-as-down/241539)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [April 13, 2015, 3:08pm UTC](https://www.ruby-forum.com/t/how-does-nginx-handle-the-request-of-the-upstream-server-when-it-is-marked-as-down/241539 "2015-04-13T15:08:04Z")

</div>

For a simple Nginx configuration like this: For a simple Nginx configuration like this: upstream myservers { server 127.0.0.1:3000; server 127.0.0.1:3001; } server { listen 80; location / { proxy\_pass http…

---

## [Avoid logging specific user agents requests](https://www.ruby-forum.com/t/avoid-logging-specific-user-agents-requests/241518)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [April 11, 2015, 3:20pm UTC](https://www.ruby-forum.com/t/avoid-logging-specific-user-agents-requests/241518 "2015-04-11T15:20:44Z")

</div>

Hello, Following: http://trac.nginx.org/nginx/ticket/713 How does one avoid logging (ie set ‘access\_log off’) requests from specific user agents? Using ‘if’ would mean to use ‘return’ inside (as it is advised to do …

---

## [Alias vs root in regex location](https://www.ruby-forum.com/t/alias-vs-root-in-regex-location/241517)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [April 11, 2015, 12:07pm UTC](https://www.ruby-forum.com/t/alias-vs-root-in-regex-location/241517 "2015-04-11T12:07:20Z")

</div>

Trying to serve nagios web GUI through nginx. Part of config: … location ~ “^/nagios/(.+?.php)(/.)?$" { alias “/usr/share/nagios3/htdocs/”; try\_files $1 $uri $uri/ /nagios/index.php; #rewrite "^/nagios/(.+…

---

## [Nginx reverse proxy multi upstream (multiples sites)](https://www.ruby-forum.com/t/nginx-reverse-proxy-multi-upstream-multiples-sites/241513)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 5\
**Last updated:** [April 11, 2015, 12:31am UTC](https://www.ruby-forum.com/t/nginx-reverse-proxy-multi-upstream-multiples-sites/241513 "2015-04-11T00:31:04Z")

</div>

Hello, Here is my situation: I will have one frontend server running nginx, and multiple backends servers running apache or tomcat with different applications. I am NOT trying to do any load balancing. What I need to …

---

## [What is official way to upload nginx.conf on server](https://www.ruby-forum.com/t/what-is-official-way-to-upload-nginx-conf-on-server/241504)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [April 10, 2015, 12:10pm UTC](https://www.ruby-forum.com/t/what-is-official-way-to-upload-nginx-conf-on-server/241504 "2015-04-10T12:10:18Z")

</div>

Hi. I have running nginx on server, when I modify nginx.conf setting, I need to use sftp to upload file to server, as nginx.conf is at /usr/local/ folder, it need root privilege. So currently, I will upload file to /…

---

## [Nginx\_cache entry evicted ~ 10 min after write despite Cache-Control in the future](https://www.ruby-forum.com/t/nginx-cache-entry-evicted-10-min-after-write-despite-cache-control-in-the-future/241499)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [April 10, 2015, 12:54am UTC](https://www.ruby-forum.com/t/nginx-cache-entry-evicted-10-min-after-write-despite-cache-control-in-the-future/241499 "2015-04-10T00:54:42Z")

</div>

Using nginx 1.2.7 Trying to figure out what and why is removing cache entries about 10 min after insert (or last read - not yet sure) when the Cache-Control + Last-Modified is nearly 24 hours in the future. Are my con…

---

## [Site should not be accessed through IP](https://www.ruby-forum.com/t/site-should-not-be-accessed-through-ip/241491)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 4\
**Last updated:** [April 9, 2015, 8:39pm UTC](https://www.ruby-forum.com/t/site-should-not-be-accessed-through-ip/241491 "2015-04-09T20:39:44Z")

</div>

Hi Guys, I have my nginx box deployed as a reverse proxy serving almost more than 10 sites. But when I browse through 1 IP the first site configured gets accessed. I dont want anyone to access the sites through IP, b…

---

## [Linux package for Debian "jessie" (8.x)](https://www.ruby-forum.com/t/linux-package-for-debian-jessie-8-x/241489)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [April 9, 2015, 8:05pm UTC](https://www.ruby-forum.com/t/linux-package-for-debian-jessie-8-x/241489 "2015-04-09T20:05:23Z")

</div>

Hi, I’ve been using the mainline packages with the instructions on nginx: Linux packages for a while now, and the Debian section mentions to replace “codename” with the actual codename. On April 25th 2015, Debian wil…

---

## [Linux package for Debian "jessie" (8.x)](https://www.ruby-forum.com/t/linux-package-for-debian-jessie-8-x/241490)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [April 9, 2015, 8:04pm UTC](https://www.ruby-forum.com/t/linux-package-for-debian-jessie-8-x/241490 "2015-04-09T20:04:29Z")

</div>

Hi, I’ve been using the mainline packages with the instructions on nginx: Linux packages for a while now, and the Debian section mentions to replace “codename” with the actual codename. On April 25th 2015, Debian wil…

---

## [Combine basic auth and ip whitelisting load ip dynamicly](https://www.ruby-forum.com/t/combine-basic-auth-and-ip-whitelisting-load-ip-dynamicly/241480)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [April 9, 2015, 2:13pm UTC](https://www.ruby-forum.com/t/combine-basic-auth-and-ip-whitelisting-load-ip-dynamicly/241480 "2015-04-09T14:13:29Z")

</div>

Hello I have config to combine basic auth and ip whitelisting like that: combine basic auth and ip whitelisting satisfy any; include /etc/nginx/myips; deny all; auth\_basic “Restricted”; auth\_basic\_user\_file /etc…

---

## [Nginx-1.6.3](https://www.ruby-forum.com/t/nginx-1-6-3/241454)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [April 9, 2015, 12:02pm UTC](https://www.ruby-forum.com/t/nginx-1-6-3/241454 "2015-04-09T12:02:14Z")

</div>

Changes with nginx 1.6.3 07 Apr 2015 \*) Feature: now the "tcp\_nodelay" directive works with SPDY connections. \*) Bugfix: in error handling. Thanks to Yichun Z. and Daniil B…

---

## [League of angel](https://www.ruby-forum.com/t/league-of-angel/241470)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [April 8, 2015, 5:39pm UTC](https://www.ruby-forum.com/t/league-of-angel/241470 "2015-04-08T17:39:52Z")

</div>

need some help on my dev.acc i cant acces on with the nginx server please help thank… best regard themic

---

## [Basic HTTP auth prompting too many times](https://www.ruby-forum.com/t/basic-http-auth-prompting-too-many-times/241417)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [April 8, 2015, 8:19am UTC](https://www.ruby-forum.com/t/basic-http-auth-prompting-too-many-times/241417 "2015-04-08T08:19:46Z")

</div>

Hello, I have set up HTTP auth using the auth\_pam module (although I’m not sure that module is the problem - it might be nginx problem). All works great for a while---- After some time, browsers begin to prompt for…

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

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