# NGINX

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

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

---

## [Nginx-Clojure v0.4.2](https://www.ruby-forum.com/t/nginx-clojure-v0-4-2/243200)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [September 1, 2015, 8:27am UTC](https://www.ruby-forum.com/t/nginx-clojure-v0-4-2/243200 "2015-09-01T08:27:21Z")

</div>

Nginx-Clojure 0.4.2 (2015-08-31) New Feature: Support Sente (issue #87, see this PR (add nginx-clojure support by xfeep · Pull Request #160 · taoensso/sente · GitHub)) ) New Feature: Per-message Compression Extensions…

---

## [New book about Nginx](https://www.ruby-forum.com/t/new-book-about-nginx/243160)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 9\
**Last updated:** [August 31, 2015, 11:47pm UTC](https://www.ruby-forum.com/t/new-book-about-nginx/243160 "2015-08-31T23:47:25Z")

</div>

Hi everyone! I would like to announce that a new book about nginx called ‘Nginx Essentials’ that I was working on the last 6 months has been published and is now available in E-stores worldwide, e.g.: http://www.amaz…

---

## [DocumentRoot should end up on specific file!](https://www.ruby-forum.com/t/documentroot-should-end-up-on-specific-file/243190)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [August 31, 2015, 5:04pm UTC](https://www.ruby-forum.com/t/documentroot-should-end-up-on-specific-file/243190 "2015-08-31T17:04:19Z")

</div>

Hi, We want nginx vhost to access the file audo\_portal.php without specifying it,i.e instead of using URL http://domain.com/audio\_portal.php , can we access it with http://domain.com ? So it’ll directly access audi…

---

## [Raw socket answer (non-http request reply)](https://www.ruby-forum.com/t/raw-socket-answer-non-http-request-reply/243168)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [August 28, 2015, 1:41pm UTC](https://www.ruby-forum.com/t/raw-socket-answer-non-http-request-reply/243168 "2015-08-28T13:41:42Z")

</div>

i have to handle raw socket connections in simple manner: any connection to specific port should be served with predefined data (text string), without http headers, wrappings, etc. Is it possible to do with nginx? May…

---

## [Nginx dockerfile](https://www.ruby-forum.com/t/nginx-dockerfile/243159)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [August 28, 2015, 11:27am UTC](https://www.ruby-forum.com/t/nginx-dockerfile/243159 "2015-08-28T11:27:56Z")

</div>

Hi, I checked nginx code repository as well as Internet to see if I can get a Dockerfile to build nginx. I got a few references (like GitHub - dockerfile/nginx: Nginx Dockerfile for trusted automated Docker builds.) b…

---

## [What cause the error for this http/https wordpress configuration file?](https://www.ruby-forum.com/t/what-cause-the-error-for-this-http-https-wordpress-configuration-file/243162)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 3\
**Last updated:** [August 28, 2015, 2:26am UTC](https://www.ruby-forum.com/t/what-cause-the-error-for-this-http-https-wordpress-configuration-file/243162 "2015-08-28T02:26:53Z")

</div>

I can not open any link except http://example.com/readme.txt with following server block. Any tips? server { listen 80 default\_server; ## listen for ipv4; this line is default and implied listen \[::\]:80 default\_s…

---

## [Php server side events](https://www.ruby-forum.com/t/php-server-side-events/243157)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [August 27, 2015, 1:54am UTC](https://www.ruby-forum.com/t/php-server-side-events/243157 "2015-08-27T01:54:12Z")

</div>

I have several virtual servers operating with php-fpm perfectly fine. Buffering/caching with Wordpress is great. But now… I’m trying to implement a new site that uses php for server-side events to stream live updates…

---

## [Persistent connections timeout (keepalive on upstream)](https://www.ruby-forum.com/t/persistent-connections-timeout-keepalive-on-upstream/243155)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 5\
**Last updated:** [August 26, 2015, 10:08pm UTC](https://www.ruby-forum.com/t/persistent-connections-timeout-keepalive-on-upstream/243155 "2015-08-26T22:08:43Z")

</div>

The short question is how can be set the timeout for an upstream for persistent connections (using keepalive) - looks like they never timeout. Details: I have a configuration where i need to setup a reverse proxy for…

---

## [Disable 301 redirect for directory / use relative redirect / change scheme](https://www.ruby-forum.com/t/disable-301-redirect-for-directory-use-relative-redirect-change-scheme/243152)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 6\
**Last updated:** [August 26, 2015, 7:00pm UTC](https://www.ruby-forum.com/t/disable-301-redirect-for-directory-use-relative-redirect-change-scheme/243152 "2015-08-26T19:00:00Z")

</div>

Hi, I have this setup browser → ssl proxy → nginx browser to ssl proxy is https only ssl proxy to nginx is http only now i browse to “exemple.com”, where aaa is a directory, so nginx send back a 301 redirect with “…

---

## [Outstanding fastcgi connections](https://www.ruby-forum.com/t/outstanding-fastcgi-connections/243146)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [August 26, 2015, 1:46am UTC](https://www.ruby-forum.com/t/outstanding-fastcgi-connections/243146 "2015-08-26T01:46:00Z")

</div>

Hi, I have a FASTCGI server listening over UDS to HTTP request from NGINX. For some reason, the requests stopped reaching the FASTCGI server. netstats -nap shows one socket connection in LISTENING state (as expected)…

---

## [Internal marked 503 error page returns default 404](https://www.ruby-forum.com/t/internal-marked-503-error-page-returns-default-404/243108)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 4\
**Last updated:** [August 26, 2015, 12:09am UTC](https://www.ruby-forum.com/t/internal-marked-503-error-page-returns-default-404/243108 "2015-08-26T00:09:37Z")

</div>

Hi, I have the following configuration: server { location = /unavailable.html { internal; } try\_files $uri =503; error\_page 503 /unavailable.html; } My goal is to have all existing files with…

---

## [Client specified server port](https://www.ruby-forum.com/t/client-specified-server-port/243134)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [August 26, 2015, 12:03am UTC](https://www.ruby-forum.com/t/client-specified-server-port/243134 "2015-08-26T00:03:11Z")

</div>

Hi, The return directive allows the use of URLs relative to the server, in which case the scheme, server name and port are automatically prepended by Nginx. The port is, however, the port on which the request was rec…

---

## [Nginx makes mysqld die all the time](https://www.ruby-forum.com/t/nginx-makes-mysqld-die-all-the-time/243051)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 7\
**Last updated:** [August 25, 2015, 10:39pm UTC](https://www.ruby-forum.com/t/nginx-makes-mysqld-die-all-the-time/243051 "2015-08-25T22:39:39Z")

</div>

Greetings, I just migrated to nginx + php-fpm from apache a few websites, on a centos 6.6 virtual server. The sites are up but… now mysqld (MariaDB, actually) dies every 10/20 minutes with status: mysqld dead but sub…

---

## [Nginx RFC21266 Compliance - 'Proxy-Connection'](https://www.ruby-forum.com/t/nginx-rfc21266-compliance-proxy-connection/243143)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [August 25, 2015, 10:21pm UTC](https://www.ruby-forum.com/t/nginx-rfc21266-compliance-proxy-connection/243143 "2015-08-25T22:21:33Z")

</div>

Hi, I’ve posted this question on the IRC before but had no luck. I have the following problem: I’d like to disable the ‘Proxy-Connection’ Response Header. I know, that the “Connection” Header is hard coded in ngx\_ht…

---

## [Proxy http to https with client certificate authentication](https://www.ruby-forum.com/t/proxy-http-to-https-with-client-certificate-authentication/243145)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [August 25, 2015, 10:12pm UTC](https://www.ruby-forum.com/t/proxy-http-to-https-with-client-certificate-authentication/243145 "2015-08-25T22:12:12Z")

</div>

Hello everyone, I posted this to stack-exchange, but this is probably the better place to get a real answer. Long story short, I think we’re hitting the SSL renegotiation problem described here: proxy\_ssl\_certificat…

---

## [Client sent too short userid cookie](https://www.ruby-forum.com/t/client-sent-too-short-userid-cookie/243142)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [August 25, 2015, 9:28pm UTC](https://www.ruby-forum.com/t/client-sent-too-short-userid-cookie/243142 "2015-08-25T21:28:23Z")

</div>

Hi I’m getting a lot of “client sent too short userid cookie” errors in error.log. What I see is the following: client sent too short userid cookie “odsp=; odsp=rB4An1Xcv3sLIBgDBjypAg==” And, of course, the uid modu…

---

## [Fastcgi\_max\_temp\_file\_size 0 vs fastcgi\_buffering off](https://www.ruby-forum.com/t/fastcgi-max-temp-file-size-0-vs-fastcgi-buffering-off/243140)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [August 25, 2015, 4:04pm UTC](https://www.ruby-forum.com/t/fastcgi-max-temp-file-size-0-vs-fastcgi-buffering-off/243140 "2015-08-25T16:04:09Z")

</div>

Is fastcgi\_max\_temp\_file\_size 0; and fastcgi\_buffering off; the same ? If no what is the difference between those two Posted at Nginx Forum:

---

## [Gzip vs. sendfile](https://www.ruby-forum.com/t/gzip-vs-sendfile/243133)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [August 25, 2015, 2:40pm UTC](https://www.ruby-forum.com/t/gzip-vs-sendfile/243133 "2015-08-25T14:40:01Z")

</div>

Hi, From https://www.nginx.com/blog/tuning-nginx/: Note, however, that because the data never touches user space it’s not subject to the filters in the regular NGINX processing chain. As a result, filters that chang…

---

## ["Dereferencing Pointer To Incomplete Type" on ARM](https://www.ruby-forum.com/t/dereferencing-pointer-to-incomplete-type-on-arm/243068)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 4\
**Last updated:** [August 25, 2015, 4:40am UTC](https://www.ruby-forum.com/t/dereferencing-pointer-to-incomplete-type-on-arm/243068 "2015-08-25T04:40:37Z")

</div>

I swear I had built the hg default version on my AMD64 just fine, but now I’m doing it on my ARM device running Ubuntu 15.04 with kernel 4.2. I used the default system openssl, but also tried with the master git vers…

---

## [Cache structs 1.6.x vs 1.8.x](https://www.ruby-forum.com/t/cache-structs-1-6-x-vs-1-8-x/243091)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [August 24, 2015, 7:01pm UTC](https://www.ruby-forum.com/t/cache-structs-1-6-x-vs-1-8-x/243091 "2015-08-24T19:01:38Z")

</div>

Hey Guys, We have been testing Nginx 1.8.x, and We realize that the cache structure for Nginx 1.8.x is not compatible for Nginx 1.6.x. In other words, by updating Nginx 1.6.x to 1.8.x, all the cache objects will be …

---

## [Broarcast](https://www.ruby-forum.com/t/broarcast/243124)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [August 24, 2015, 3:33pm UTC](https://www.ruby-forum.com/t/broarcast/243124 "2015-08-24T15:33:39Z")

</div>

Hi, Is there any possibility to broadcast the request to all servers configured in upstream pls.? Best regards, Maddy Posted at Nginx Forum:

---

## [Tengine-2.1.1 released](https://www.ruby-forum.com/t/tengine-2-1-1-released/243117)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [August 24, 2015, 4:49am UTC](https://www.ruby-forum.com/t/tengine-2-1-1-released/243117 "2015-08-24T04:49:48Z")

</div>

Hi folks, We are very excited to announce that Tengine-2.1.1 (stable version) has been released. You can either checkout the source code from GitHub: GitHub - alibaba/tengine: A distribution of Nginx with some advance…

---

## [Ocsp stapling](https://www.ruby-forum.com/t/ocsp-stapling/243107)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 5\
**Last updated:** [August 23, 2015, 3:56pm UTC](https://www.ruby-forum.com/t/ocsp-stapling/243107 "2015-08-23T15:56:21Z")

</div>

I have my nginx virtual host set to enable ocsp stapling but it doesn’t actually do it. Ssllabs testing reports no. OpenSSL cli testing reports nothing. Nginx v1.8.0 Centos 6.7 64bit OpenSSL 1.0.1e I only have the …

---

## [Windows nginx 1.9.4.1 Lizard](https://www.ruby-forum.com/t/windows-nginx-1-9-4-1-lizard/243113)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [August 22, 2015, 1:49pm UTC](https://www.ruby-forum.com/t/windows-nginx-1-9-4-1-lizard/243113 "2015-08-22T13:49:02Z")

</div>

13:03 22-8-2015 nginx 1.9.4.1 Lizard Based on nginx 1.9.4 (18-8-2015) with; headers-more-nginx-module v0.26 (upgraded 19-8-2015) Openssl-1.0.2d “Proxy-Authenticate” header for the 407 response lua-nginx-module v0.9.16…

---

## [Preventing requests with unknown host names](https://www.ruby-forum.com/t/preventing-requests-with-unknown-host-names/243094)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 8\
**Last updated:** [August 21, 2015, 8:14pm UTC](https://www.ruby-forum.com/t/preventing-requests-with-unknown-host-names/243094 "2015-08-21T20:14:02Z")

</div>

I want to disable processing of all requests that do not have a valid hostname I’m tried to follow the advice on: http://nginx.org/en/docs/http/request\_processing.html#how\_to\_prevent\_undefined\_server\_names so I have …

---

## [Auto/configure doesn't look for MINGW64 (on MSYS2)](https://www.ruby-forum.com/t/auto-configure-doesnt-look-for-mingw64-on-msys2/243105)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [August 21, 2015, 7:31pm UTC](https://www.ruby-forum.com/t/auto-configure-doesnt-look-for-mingw64-on-msys2/243105 "2015-08-21T19:31:23Z")

</div>

Hi there, On MSYS2, with x64 compilers, the “auto/configure” file is not able to find the right environment. $ uname -s MINGW64\_NT-10.0 But nginx is only looking for MINGW32. Regards, Billy Posted at Nginx Forum…

---

## [CORS headers not being set for a 401 response from upstream](https://www.ruby-forum.com/t/cors-headers-not-being-set-for-a-401-response-from-upstream/230295)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 4\
**Last updated:** [August 21, 2015, 7:30pm UTC](https://www.ruby-forum.com/t/cors-headers-not-being-set-for-a-401-response-from-upstream/230295 "2015-08-21T19:30:48Z")

</div>

Hi, I am trying to setup CORS headers in my nginx config. My config is here : http://pastie.org/private/eevpeyy6uwu25rl5qsgzyq The upstream is defined separately. It responds fine to OPTIONS request. It also adds th…

---

## [Large\_client\_header\_buffers does not work in in server context](https://www.ruby-forum.com/t/large-client-header-buffers-does-not-work-in-in-server-context/243093)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [August 21, 2015, 5:25pm UTC](https://www.ruby-forum.com/t/large-client-header-buffers-does-not-work-in-in-server-context/243093 "2015-08-21T17:25:12Z")

</div>

Hello, large\_client\_header\_buffers does not seem to work in server context, however it works fine in http context. Documentation says it should work for both \[1\] and looking at the application code it seems like it sh…

---

## [Server 1 redirects, Server 2 does not](https://www.ruby-forum.com/t/server-1-redirects-server-2-does-not/243101)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [August 21, 2015, 5:10am UTC](https://www.ruby-forum.com/t/server-1-redirects-server-2-does-not/243101 "2015-08-21T05:10:16Z")

</div>

This problem may have been around before I updated to nginx version 1.9.4 but I’m not sure. I have one VPS with two IP addresses. Server 1 redirects port 80 www and non-www to port 443 requests along with www request…

---

## [Longer upstream request time after upgrade to Nginx \> 1.4](https://www.ruby-forum.com/t/longer-upstream-request-time-after-upgrade-to-nginx-1-4/243089)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [August 20, 2015, 5:50pm UTC](https://www.ruby-forum.com/t/longer-upstream-request-time-after-upgrade-to-nginx-1-4/243089 "2015-08-20T17:50:47Z")

</div>

Hi, first, the setup: I have 2 identical maschines running latest CentOS 6.6 and uWSGI 2.0.10, both machines had nginx-1.4.7-1.el6.ngx.x86\_64 installed. I saw almost identical values for $request\_time in the Nginx lo…

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

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