# NGINX

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

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

---

## [File '/usr/sbin/nginx' seems to be deleted](https://www.ruby-forum.com/t/file-usr-sbin-nginx-seems-to-be-deleted/232945)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 5\
**Last updated:** [November 16, 2014, 1:07pm UTC](https://www.ruby-forum.com/t/file-usr-sbin-nginx-seems-to-be-deleted/232945 "2014-11-16T13:07:58Z")

</div>

I am seeing a lot of these entries in my logs Nov 6 04:29:13 sv1 kernel: nginx\[62598\]: segfault at 0 ip 0000000000438f38 sp 0 0007fffa5a934c0 error 4 in nginx (deleted)\[400000+e2000\] Nov 6 04:29:13 sv1 ab…

---

## [Configurations strangeness - mistake or bug?](https://www.ruby-forum.com/t/configurations-strangeness-mistake-or-bug/233077)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [November 16, 2014, 12:06pm UTC](https://www.ruby-forum.com/t/configurations-strangeness-mistake-or-bug/233077 "2014-11-16T12:06:16Z")

</div>

Hi, I’m facing a strange issue configuring virtual hosts on a server. I don’t see any misconfiguration yet it does not work as I expect it. I’d like to ask for your help in debugging this. If the configuration is inc…

---

## [Rate-limiting across connections](https://www.ruby-forum.com/t/rate-limiting-across-connections/233064)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [November 14, 2014, 10:44pm UTC](https://www.ruby-forum.com/t/rate-limiting-across-connections/233064 "2014-11-14T22:44:29Z")

</div>

Hello, The limit\_rate http://nginx.org/en/docs/http/ngx\_http\_core\_module.html#limit\_rate directive documentation clearly states that it is applied on a per-request basis. How would one rate-limit a client over N co…

---

## [HttpLuaModule create asynchronous subrequests](https://www.ruby-forum.com/t/httpluamodule-create-asynchronous-subrequests/233037)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [November 14, 2014, 10:40pm UTC](https://www.ruby-forum.com/t/httpluamodule-create-asynchronous-subrequests/233037 "2014-11-14T22:40:54Z")

</div>

Hi, With the help of HttpLuaModule I’m trying to duplicate every request into two upstreams. Here is my configuration: site.conf upstream prod\_upstream { server 127.0.0.1:5000; server 127.0.0.1:5001; } upstream d…

---

## [How to access query parameter names with '-' in it](https://www.ruby-forum.com/t/how-to-access-query-parameter-names-with-in-it/233026)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [November 13, 2014, 3:53pm UTC](https://www.ruby-forum.com/t/how-to-access-query-parameter-names-with-in-it/233026 "2014-11-13T15:53:13Z")

</div>

If query parameters in the request looks like this /something.cgi?param\_name=1&param-name=2 I can access ‘param\_name’ as $arg\_param\_name. How do I access ‘param-name’ though? $arg\_param-name will not work since as fa…

---

## [Ngx.shared.dict - locking mechanism?](https://www.ruby-forum.com/t/ngx-shared-dict-locking-mechanism/233038)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [November 13, 2014, 1:04am UTC](https://www.ruby-forum.com/t/ngx-shared-dict-locking-mechanism/233038 "2014-11-13T01:04:12Z")

</div>

Hi guys, I was wondering what happens when multiple workers access the ngx.shared.dict in the http lua module ? Are there conflicts/locking that could potentially impact performance of nginx? We are talking about 32 …

---

## [Load balancer question](https://www.ruby-forum.com/t/load-balancer-question/233017)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [November 12, 2014, 11:52pm UTC](https://www.ruby-forum.com/t/load-balancer-question/233017 "2014-11-12T23:52:01Z")

</div>

Hi everyone, I am starting to work with nginx to use it as a load balancer for a web service. Basically, what I am try to configure is something like: $ cat nginx.conf … http { upstream load\_balancer { …

---

## [Handling redirects among upstream servers](https://www.ruby-forum.com/t/handling-redirects-among-upstream-servers/232966)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 6\
**Last updated:** [November 11, 2014, 9:40am UTC](https://www.ruby-forum.com/t/handling-redirects-among-upstream-servers/232966 "2014-11-11T09:40:39Z")

</div>

Hello, I’m trying to configure Nginx to access a cluster of application servers using a simple proxy with multiple application servers in the upstream. The application servers use a REST api for object storage and re…

---

## [Cannot run ASP.NET Web API with Nginx and Mono on Ubuntu](https://www.ruby-forum.com/t/cannot-run-asp-net-web-api-with-nginx-and-mono-on-ubuntu/232996)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [November 10, 2014, 7:59pm UTC](https://www.ruby-forum.com/t/cannot-run-asp-net-web-api-with-nginx-and-mono-on-ubuntu/232996 "2014-11-10T19:59:58Z")

</div>

Good day, first of all I am new to Linux OS and mono. I am tryiing to run my ASP.NET Web API on Ubuntu with Nginx and Mono. Here is what I’ve done so far: I have installed mono, nginx, fastcgi-server4 and all succes…

---

## [How to follow request path within the config?](https://www.ruby-forum.com/t/how-to-follow-request-path-within-the-config/232973)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [November 10, 2014, 7:53pm UTC](https://www.ruby-forum.com/t/how-to-follow-request-path-within-the-config/232973 "2014-11-10T19:53:25Z")

</div>

Hello, I’m hitting my head against a wall since a couple days ago. Last paragraph has the big question, the rest is context. I run a fairly big Wordpress blog, with a somewhat convoluted configuration rewriting legac…

---

## [Nginx uwsgi connection timeout](https://www.ruby-forum.com/t/nginx-uwsgi-connection-timeout/232971)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [November 10, 2014, 6:45pm UTC](https://www.ruby-forum.com/t/nginx-uwsgi-connection-timeout/232971 "2014-11-10T18:45:23Z")

</div>

Hello, I have nginx 1.6.1 setup in front of uwsgi 2.0.7 using uwsgi\_pass, which has been working very well for me except for one request. When I make the failing request uwsgi processes the request and returns the r…

---

## [Cache manager worker\_connections not enough](https://www.ruby-forum.com/t/cache-manager-worker-connections-not-enough/232926)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [November 10, 2014, 4:59pm UTC](https://www.ruby-forum.com/t/cache-manager-worker-connections-not-enough/232926 "2014-11-10T16:59:09Z")

</div>

I am using proxy\_cache as a cache server, about 20-30k requests /s. It sometimes gets slow,and I find lots of such messages: 2014/11/05 17:01:32 \[alert\] 22169#0: 512 worker\_connections are not enough 2014/11/05 17:01…

---

## [Nginx with PHP on Windows](https://www.ruby-forum.com/t/nginx-with-php-on-windows/232992)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 6\
**Last updated:** [November 10, 2014, 9:33am UTC](https://www.ruby-forum.com/t/nginx-with-php-on-windows/232992 "2014-11-10T09:33:13Z")

</div>

So i am curious on the security impacts on a windows server running nginx and php And if you have the following php.ini settings disabled. “cgi.force\_redirect = 0” I saw itpp2012 posted the following \[PATH=s:/webro…

---

## [URI rewriting based on arguments](https://www.ruby-forum.com/t/uri-rewriting-based-on-arguments/232976)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [November 8, 2014, 4:42pm UTC](https://www.ruby-forum.com/t/uri-rewriting-based-on-arguments/232976 "2014-11-08T16:42:49Z")

</div>

Hello, Trying to rewrite an URI based on an argument, I cannot match it otherwise than by using rewrite. The problem is I fail to achieve a working recipe rewriting example.com/watch?v=123456 to example.com/watch?…

---

## [Mail proxy with SNI](https://www.ruby-forum.com/t/mail-proxy-with-sni/227831)

<div class="topic-metadata">

**Author:** [@lblankers](https://www.ruby-forum.com/u/lblankers)\
**Replies:** 9\
**Last updated:** [November 8, 2014, 2:00am UTC](https://www.ruby-forum.com/t/mail-proxy-with-sni/227831 "2014-11-08T02:00:53Z")

</div>

Hi, I would like to use nginx 1.2.1 with TLS SNI support to proxy SMTP submission for several different domains over SSL. I would expect that if I configure multiple servers with different server names that a TLS v1 …

---

## [Map\_hash\_bucket\_size, map\_hash\_max\_size, and memory usage](https://www.ruby-forum.com/t/map-hash-bucket-size-map-hash-max-size-and-memory-usage/232915)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [November 7, 2014, 4:54pm UTC](https://www.ruby-forum.com/t/map-hash-bucket-size-map-hash-max-size-and-memory-usage/232915 "2014-11-07T16:54:26Z")

</div>

I was hoping someone could clarify how exactly map\_hash\_bucket\_size and map\_hash\_max\_size should be set and the impact it has on memory. For map\_hash\_bucket\_size, it says it should be a multiple of the processor’s li…

---

## [Nginx as pop3/imap proxy](https://www.ruby-forum.com/t/nginx-as-pop3-imap-proxy/232968)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [November 7, 2014, 4:02pm UTC](https://www.ruby-forum.com/t/nginx-as-pop3-imap-proxy/232968 "2014-11-07T16:02:32Z")

</div>

Hello, I’m using with satisfaction nginx as pop3 and imap proxy of 4/5 mailservers. I have just one problem: when one server is down, nginx can’t authenticate the user and the user mail client request the password a…

---

## [SPDY inflate errors in nginx 1.7.4](https://www.ruby-forum.com/t/spdy-inflate-errors-in-nginx-1-7-4/232886)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 14\
**Last updated:** [November 7, 2014, 2:50pm UTC](https://www.ruby-forum.com/t/spdy-inflate-errors-in-nginx-1-7-4/232886 "2014-11-07T14:50:20Z")

</div>

i am seeing many error log messages relating to SPDY on an HTTPS only website here. this appears to also be triggering (or at least related to) database timing problems, which is causing dbase failures. the error log…

---

## [Ssl\_protocols per server?](https://www.ruby-forum.com/t/ssl-protocols-per-server/232557)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 11\
**Last updated:** [November 7, 2014, 2:39pm UTC](https://www.ruby-forum.com/t/ssl-protocols-per-server/232557 "2014-11-07T14:39:35Z")

</div>

From the docs: Syntax: ssl\_protocols \[SSLv2\] \[SSLv3\] \[TLSv1\] \[TLSv1.1\] \[TLSv1.2\]; Default: ssl\_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2; Context: http, server however I’m trying to have onde server with: ssl\_protocols…

---

## [Autoindex - Filter by filename?](https://www.ruby-forum.com/t/autoindex-filter-by-filename/232958)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [November 7, 2014, 9:23am UTC](https://www.ruby-forum.com/t/autoindex-filter-by-filename/232958 "2014-11-07T09:23:56Z")

</div>

Is there a way to have autoindex only display certain files? If I only want to display a file named “the\_nginx\_mailing\_list\_guys\_are\_genuises\*” - can I do that? Posted at Nginx Forum:

---

## [Require a password for everything except one folder?](https://www.ruby-forum.com/t/require-a-password-for-everything-except-one-folder/232944)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 8\
**Last updated:** [November 7, 2014, 1:29am UTC](https://www.ruby-forum.com/t/require-a-password-for-everything-except-one-folder/232944 "2014-11-07T01:29:31Z")

</div>

I’m trying to deny access to all locations on the server, unless the user has a specific IP address or enteres a password. This part is working. I’m also trying to add an exception, where any path starting with /Publ…

---

## [Connection close on 500, 503, 502](https://www.ruby-forum.com/t/connection-close-on-500-503-502/232898)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 7\
**Last updated:** [November 6, 2014, 5:57pm UTC](https://www.ruby-forum.com/t/connection-close-on-500-503-502/232898 "2014-11-06T17:57:53Z")

</div>

Hi There, I want to send a connection\_close to the client whenever the HTTP status is any of the 50X codes. How could i accomplish this? Thanks for your response. Posted at Nginx Forum:

---

## [Problem with 'Host' http header when using ssl](https://www.ruby-forum.com/t/problem-with-host-http-header-when-using-ssl/232936)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [November 5, 2014, 10:58pm UTC](https://www.ruby-forum.com/t/problem-with-host-http-header-when-using-ssl/232936 "2014-11-05T22:58:00Z")

</div>

I’m using Nginx as reverse proxy with SSL termination. The J2EE application that is behind it sometimes uses host information to create URLs for popup windows. Right now it inserts name of my upstream into URL and po…

---

## [Can response code be 444 in error\_page](https://www.ruby-forum.com/t/can-response-code-be-444-in-error-page/232925)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [November 5, 2014, 5:07pm UTC](https://www.ruby-forum.com/t/can-response-code-be-444-in-error-page/232925 "2014-11-05T17:07:38Z")

</div>

Hello. I want to reject a connection when some errors (400, 403, …) occur, so I used error code 444 in error\_page like this: error\_page 400 =444 @reject\_conn; location @reject\_conn { return 444; } When I tested i…

---

## [Realip - protocol support](https://www.ruby-forum.com/t/realip-protocol-support/232922)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [November 5, 2014, 3:12am UTC](https://www.ruby-forum.com/t/realip-protocol-support/232922 "2014-11-05T03:12:33Z")

</div>

Hi all, I’m successfully using the realip module to validate proxies and set $remote\_addr to the external IP for a request, but I’m trying to do the same for HTTP vs HTTPS where the proxy (Amazon ELB, CDN, etc) is te…

---

## ['location' as an alias for 'server'?](https://www.ruby-forum.com/t/location-as-an-alias-for-server/232908)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [November 4, 2014, 1:52pm UTC](https://www.ruby-forum.com/t/location-as-an-alias-for-server/232908 "2014-11-04T13:52:20Z")

</div>

I have nginx set up with several servers in /etc/nginx/sites-enabled However, I want to convert my setup to one domain myserver.com , so typing in a browser "lalala.com" will no longer get me to the appropriate /usr…

---

## [Regex positional capture in map](https://www.ruby-forum.com/t/regex-positional-capture-in-map/232901)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 6\
**Last updated:** [November 4, 2014, 1:23am UTC](https://www.ruby-forum.com/t/regex-positional-capture-in-map/232901 "2014-11-04T01:23:15Z")

</div>

map’s documentation http://nginx.org/en/docs/http/ngx\_http\_map\_module.html#map states: A regular expression can contain named and positional captures that can later be used in other directives along with the resulting…

---

## [Using variables in nginx.conf with 'set'](https://www.ruby-forum.com/t/using-variables-in-nginx-conf-with-set/197909)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 4\
**Last updated:** [November 3, 2014, 8:32am UTC](https://www.ruby-forum.com/t/using-variables-in-nginx-conf-with-set/197909 "2014-11-03T08:32:36Z")

</div>

It seems like the set command was designed for use in a narrow set of circumstances. But I think it would be a lot more useful if the variables it defines could be used globally with any directive. I am trying to us…

---

## [CentOS 6.6, SELinux breaks Nginx 1.6.0](https://www.ruby-forum.com/t/centos-6-6-selinux-breaks-nginx-1-6-0/232835)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 11\
**Last updated:** [November 2, 2014, 7:36pm UTC](https://www.ruby-forum.com/t/centos-6-6-selinux-breaks-nginx-1-6-0/232835 "2014-11-02T19:36:55Z")

</div>

We have been successfully running Nginx installed from the official Nginx CentOS repositories for ages. Last night I upgraded two of my Nginx 1.6.0 servers from CentOS 6.5 to CentOS 6.6 and SELinux immediately broke …

---

## [Proxied request header names in SPDY are always lowercase](https://www.ruby-forum.com/t/proxied-request-header-names-in-spdy-are-always-lowercase/232873)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [November 1, 2014, 4:27pm UTC](https://www.ruby-forum.com/t/proxied-request-header-names-in-spdy-are-always-lowercase/232873 "2014-11-01T16:27:48Z")

</div>

Hello! I have a question about the behavior of proxing SPDY to HTTP with nginx. First, there is a configuration like the following. upstream app { server 127.0.0.1:80; keepalive 32; } server { listen 443 …

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

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