# NGINX

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

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

---

## [Understanding locations (multiple locations that do different things)](https://www.ruby-forum.com/t/understanding-locations-multiple-locations-that-do-different-things/241463)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [April 8, 2015, 8:17am UTC](https://www.ruby-forum.com/t/understanding-locations-multiple-locations-that-do-different-things/241463 "2015-04-08T08:17:56Z")

</div>

Hello, I’m new to Nginx, coming from Apache. Now I’m struggling with how to apply multiple configs and rules to different location (request tyeps). Easy example, a server/site has PHP support for all of its requests …

---

## [SSL protected page giving segfaults on load](https://www.ruby-forum.com/t/ssl-protected-page-giving-segfaults-on-load/241460)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [April 8, 2015, 4:43am UTC](https://www.ruby-forum.com/t/ssl-protected-page-giving-segfaults-on-load/241460 "2015-04-08T04:43:03Z")

</div>

Hi!, anybody has seen core dumps caused by just loading a landing page?: This is the trace I’m seeing, this is in CentOS 6 with nginx-1.6.2-1.el6.ngx.x86\_64: Core was generated by \`nginx: worker process …

---

## [Nginx-1.7.12](https://www.ruby-forum.com/t/nginx-1-7-12/241453)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [April 7, 2015, 6:23pm UTC](https://www.ruby-forum.com/t/nginx-1-7-12/241453 "2015-04-07T18:23:56Z")

</div>

Changes with nginx 1.7.12 07 Apr 2015 \*) Feature: now the "tcp\_nodelay" directive works with backend SSL connections. \*) Feature: now thread pools can be used to read cache fi…

---

## [200ms Delay With SPDY - Nginx 1.6.x?](https://www.ruby-forum.com/t/200ms-delay-with-spdy-nginx-1-6-x/234234)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 9\
**Last updated:** [April 7, 2015, 5:40pm UTC](https://www.ruby-forum.com/t/200ms-delay-with-spdy-nginx-1-6-x/234234 "2015-04-07T17:40:51Z")

</div>

Dear, While searching for Nginx optimize patches: https://josephscott.org/archives/2014/12/nginx-1-7-8-fixes-200ms-delay-with-spdy/ Came to my attention. Can anyone confirm if the ‘200ms Delay With SPDY’ problem also…

---

## [Load Balancer many different site](https://www.ruby-forum.com/t/load-balancer-many-different-site/241447)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [April 7, 2015, 5:20pm UTC](https://www.ruby-forum.com/t/load-balancer-many-different-site/241447 "2015-04-07T17:20:02Z")

</div>

Hello, I need to use only one nginx server to configure the load balancing for 3 differents plateforme. When I add the 3 config files under /etc/ngix/conf.d, the nginx take only the first configuration on the list. …

---

## [SSL cert issues with mobile devices](https://www.ruby-forum.com/t/ssl-cert-issues-with-mobile-devices/241421)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [April 6, 2015, 10:39pm UTC](https://www.ruby-forum.com/t/ssl-cert-issues-with-mobile-devices/241421 "2015-04-06T22:39:07Z")

</div>

I have an issue with my SSL certificate on some mobile devices, e.g. Safari on iPhone and Firefox on Android. Everything seems to be fine with desktop browsers as well as some mobile browsers (works fine on Chrome on…

---

## [How often ssl\_stapling\_file picks up an updated file?](https://www.ruby-forum.com/t/how-often-ssl-stapling-file-picks-up-an-updated-file/241409)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [April 5, 2015, 9:18pm UTC](https://www.ruby-forum.com/t/how-often-ssl-stapling-file-picks-up-an-updated-file/241409 "2015-04-05T21:18:55Z")

</div>

Hey all. Before I file a bugreport I’d like to consult with community to make sure whether I get the whole thing right. I use ssl\_stapling\_file and update that file daily. Today I discovered that one of my SSL websi…

---

## [1.7 major caching change?](https://www.ruby-forum.com/t/1-7-major-caching-change/241403)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [April 4, 2015, 12:25am UTC](https://www.ruby-forum.com/t/1-7-major-caching-change/241403 "2015-04-04T00:25:50Z")

</div>

Hello! Until version 1.6.2 we had a configuration which was working fine to force people to hit the cache: proxy\_set\_header Cookie “”; proxy\_hide\_header Set-Cookie; proxy\_ignore\_headers Expires Cache-Control Set-Co…

---

## [Undefined symbol: ldap\_init\_fd](https://www.ruby-forum.com/t/undefined-symbol-ldap-init-fd/240404)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [April 2, 2015, 10:48pm UTC](https://www.ruby-forum.com/t/undefined-symbol-ldap-init-fd/240404 "2015-04-02T22:48:45Z")

</div>

I successfully compile Nginx with Nginx-auth-ldap and when I start Nginx , the worker process turn defunct and I see - nginx: worker process: symbol lookup error: nginx: worker process: undefined symbol: ldap\_init\_…

---

## [Callback hitting hard](https://www.ruby-forum.com/t/callback-hitting-hard/241390)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [April 2, 2015, 2:34pm UTC](https://www.ruby-forum.com/t/callback-hitting-hard/241390 "2015-04-02T14:34:40Z")

</div>

Hello, I am facing a problem on a website which has been using AJAX callbacks to report JS errors. It seems there has been sth wrong going on and a tremendous number of errors are being reported through the callback…

---

## [About proxy\_request\_buffering](https://www.ruby-forum.com/t/about-proxy-request-buffering/234772)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 7\
**Last updated:** [April 2, 2015, 1:40pm UTC](https://www.ruby-forum.com/t/about-proxy-request-buffering/234772 "2015-04-02T13:40:13Z")

</div>

Hello. Though I’m trying to apply ‘proxy\_request\_buffering off;’ for unbuffered uploading, The buffering still seems to be enabled from error.log. nginx.conf server { listen 443 ssl spdy; server\_name example.com; …

---

## [2 maps for one 1 variable?](https://www.ruby-forum.com/t/2-maps-for-one-1-variable/241375)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 9\
**Last updated:** [April 2, 2015, 1:23pm UTC](https://www.ruby-forum.com/t/2-maps-for-one-1-variable/241375 "2015-04-02T13:23:16Z")

</div>

Hello, Is it possible to use more than one map directive with a single variable? I tried but it seems the second map over writes any value set by the 1st map even if there is no match in the 2nd map. I tried leaving …

---

## [$skip\_cache define home page](https://www.ruby-forum.com/t/skip-cache-define-home-page/234688)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [April 2, 2015, 12:14pm UTC](https://www.ruby-forum.com/t/skip-cache-define-home-page/234688 "2015-04-02T12:14:42Z")

</div>

I understand how to skip cache on cookies, POST, query strings, urls containing string etc But how do you define the home page itself in $skip\_cache please? Posted at Nginx Forum:

---

## [Set a PHP parameter for only one location](https://www.ruby-forum.com/t/set-a-php-parameter-for-only-one-location/241379)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [April 2, 2015, 10:41am UTC](https://www.ruby-forum.com/t/set-a-php-parameter-for-only-one-location/241379 "2015-04-02T10:41:57Z")

</div>

I have a “standard” location block for my php directives… Pass all .php files onto a php-fpm/php-fcgi server. location ~ .php$ { try\_files $uri =404; fastcgi\_split\_path\_info ^(.+.php)(/.+)$; include fastcgi\_params; …

---

## [Preferred method for location blocks](https://www.ruby-forum.com/t/preferred-method-for-location-blocks/241377)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [April 2, 2015, 12:40am UTC](https://www.ruby-forum.com/t/preferred-method-for-location-blocks/241377 "2015-04-02T00:40:24Z")

</div>

What is the difference between: location /admin { } vs. location ~ /admin(/.\*) { } The first seems cleaner, and I assume runs faster - but do they process differently? – Daniel

---

## [Allow access to certain client addresses or use auth\_basic](https://www.ruby-forum.com/t/allow-access-to-certain-client-addresses-or-use-auth-basic/241330)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [April 1, 2015, 9:07am UTC](https://www.ruby-forum.com/t/allow-access-to-certain-client-addresses-or-use-auth-basic/241330 "2015-04-01T09:07:37Z")

</div>

Hello Mailing list, is there a way to do following in nginx server or location config. allow access to certain client addresses if the ip is not in the list, allow access by ngx\_http\_auth\_basic\_module Thanks for any…

---

## [Google dumps SPDY in favour of HTTP/2, any plans for nginx?](https://www.ruby-forum.com/t/google-dumps-spdy-in-favour-of-http-2-any-plans-for-nginx/234155)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 18\
**Last updated:** [April 1, 2015, 8:40am UTC](https://www.ruby-forum.com/t/google-dumps-spdy-in-favour-of-http-2-any-plans-for-nginx/234155 "2015-04-01T08:40:54Z")

</div>

Google dumps SPDY in favour of HTTP/2, any plans ore roadmap for HTTP/2 in nginx? see https://blog.chromium.org/2015/02/hello-http2-goodbye-spdy-http-is\_9.html "HTTP is the fundamental networking protocol that power…

---

## ["gzip on" duplicates Content-Encoding header if an empty one already exists](https://www.ruby-forum.com/t/gzip-on-duplicates-content-encoding-header-if-an-empty-one-already-exists/234736)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [March 31, 2015, 12:20pm UTC](https://www.ruby-forum.com/t/gzip-on-duplicates-content-encoding-header-if-an-empty-one-already-exists/234736 "2015-03-31T12:20:25Z")

</div>

Hi, I have a (probably dodgy) application that is sending out uncompressed XML with the following header. That is, an empty Content-Encoding header. Content-Encoding: This works fine, until I enable gzip on Nginx 1.…

---

## [Try\_files is broken with geoip?](https://www.ruby-forum.com/t/try-files-is-broken-with-geoip/241341)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 5\
**Last updated:** [March 30, 2015, 11:12pm UTC](https://www.ruby-forum.com/t/try-files-is-broken-with-geoip/241341 "2015-03-30T23:12:55Z")

</div>

Hi! We experience problem: if inside location we use geoip variable try\_files is not working and only root location is looked up for files. So problem is reproducible with the following virtual server configuration …

---

## [NGINX gateway problem](https://www.ruby-forum.com/t/nginx-gateway-problem/241339)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [March 30, 2015, 7:40pm UTC](https://www.ruby-forum.com/t/nginx-gateway-problem/241339 "2015-03-30T19:40:07Z")

</div>

Hey! i got problem with my ruby site http://www.asysteo.pl it was working amazing and today i made PHP update i got this error. I double checked all 9000 port connections but its still active. any smart ideas from gur…

---

## [Experimental build of Nginx with HTTP/2](https://www.ruby-forum.com/t/experimental-build-of-nginx-with-http-2/241335)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [March 30, 2015, 4:40pm UTC](https://www.ruby-forum.com/t/experimental-build-of-nginx-with-http-2/241335 "2015-03-30T16:40:34Z")

</div>

Hello SarahNovotny, As George in Nginx Forum message, see Re: Google dumps SPDY in favour of HTTP/2, any plans for nginx?, i’m excited about HTTP/2 and i’m interested to experimental build too. May i have access to i…

---

## [Nginx - fastcgi / life](https://www.ruby-forum.com/t/nginx-fastcgi-life/234752)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [March 30, 2015, 9:15am UTC](https://www.ruby-forum.com/t/nginx-fastcgi-life/234752 "2015-03-30T09:15:26Z")

</div>

Hi, FASTCGI is ‘built in’ NGINX. Can someone from the NGINX organization confirm that there is no plan to retire the FASTCGI support in NGINX? Thank you! Posted at Nginx Forum:

---

## [502 Gateway Timeout with error exited on signal 7 (SIGBUS) after clearing cache (nginx with php5-fpm](https://www.ruby-forum.com/t/502-gateway-timeout-with-error-exited-on-signal-7-sigbus-after-clearing-cache-nginx-with-php5-fpm/241322)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 4\
**Last updated:** [March 29, 2015, 3:30pm UTC](https://www.ruby-forum.com/t/502-gateway-timeout-with-error-exited-on-signal-7-sigbus-after-clearing-cache-nginx-with-php5-fpm/241322 "2015-03-29T15:30:43Z")

</div>

Hello, i’ve got the problem when i load a page multiple times (i.E. 10 Tabs with autoreload) only some of the pages load others get 502. it doesn’t depend on the content of the page. when i open the same page in all…

---

## [Passenger logging agent error in deployment with passenger+nginx](https://www.ruby-forum.com/t/passenger-logging-agent-error-in-deployment-with-passenger-nginx/234767)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [March 28, 2015, 9:22am UTC](https://www.ruby-forum.com/t/passenger-logging-agent-error-in-deployment-with-passenger-nginx/234767 "2015-03-28T09:22:47Z")

</div>

I install passenger+nginx on centos 6.5 by: gem install passenger passenger-install-nginx-module everything is ok during the installation, then I run: sudo ~/nginx/sbin/nginx and get the error message： nginx: \[aler…

---

## [Rewrites needed](https://www.ruby-forum.com/t/rewrites-needed/234766)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [March 28, 2015, 1:41am UTC](https://www.ruby-forum.com/t/rewrites-needed/234766 "2015-03-28T01:41:07Z")

</div>

Hi - I need some rewrite help please. Website Hosting - Mysite.com to http://mysite.com/page/2/ and Website Hosting - Mysite.com to http://mysite.com/page/2/?s=searchterm Thanks. Posted at Nginx Forum:

---

## [Nginx - SMTP no authentication](https://www.ruby-forum.com/t/nginx-smtp-no-authentication/177030)

<div class="topic-metadata">

**Author:** [@Anto\_Binish\_K](https://www.ruby-forum.com/u/Anto_Binish_K)\
**Replies:** 3\
**Last updated:** [March 28, 2015, 1:39am UTC](https://www.ruby-forum.com/t/nginx-smtp-no-authentication/177030 "2015-03-28T01:39:24Z")

</div>

Hi friends, Please help me to configure SMTP without authentication on ngnix. I have even applied the patch, which is given in this url Mail proxy module - http auth - BUG : bad Auth-Method returned - NGINX - Ruby-For…

---

## [Internal Server Error!](https://www.ruby-forum.com/t/internal-server-error/234700)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [March 27, 2015, 10:45am UTC](https://www.ruby-forum.com/t/internal-server-error/234700 "2015-03-27T10:45:54Z")

</div>

Hi, Nginx logging mp4 related error intermittently. Following is the log : 2015/03/23 19:01:53 \[crit\] 8671#0: \*782950 pread() “/tunefiles/storage17/files/videos/2014/05/07/13994800482e2b0-360.mp4” failed (22: Inval…

---

## [Using naxsi as a "circuit breaker"](https://www.ruby-forum.com/t/using-naxsi-as-a-circuit-breaker/234755)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [March 27, 2015, 9:04am UTC](https://www.ruby-forum.com/t/using-naxsi-as-a-circuit-breaker/234755 "2015-03-27T09:04:52Z")

</div>

I only know the basics of naxsi, but bare with me. I want to automatically have virtual hosts blocked when they are getting too many new requests. I can’t find information on solving this particular problem with it. I…

---

## [Nginx with Mailman](https://www.ruby-forum.com/t/nginx-with-mailman/234746)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 5\
**Last updated:** [March 26, 2015, 8:36pm UTC](https://www.ruby-forum.com/t/nginx-with-mailman/234746 "2015-03-26T20:36:13Z")

</div>

Hello, i try to run mailman on nginx over fcgiwrap. The sock is present on system and has correct rights, but log say me can not find. server { listen 80; listen \[::\]:80; server\_name lists; root /usr/lib64/mailman/…

---

## [Request\_time is always 0.000](https://www.ruby-forum.com/t/request-time-is-always-0-000/234748)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [March 26, 2015, 3:24pm UTC](https://www.ruby-forum.com/t/request-time-is-always-0-000/234748 "2015-03-26T15:24:49Z")

</div>

Hello, I need to log transaction time, so I simply add $request\_time to my log\_format directive. Anyway the value in the access.log in always 0.000 even if the server is under heavy load (siege show transaction time u…

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

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