# Server

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

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

---

## [Optimizing NGINX TLS Time To First Byte (TTTFB)](https://www.ruby-forum.com/t/optimizing-nginx-tls-time-to-first-byte-tttfb/238095)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 14\
**Last updated:** [December 20, 2013, 1:22am UTC](https://www.ruby-forum.com/t/optimizing-nginx-tls-time-to-first-byte-tttfb/238095 "2013-12-20T01:22:20Z")

</div>

FYI: We started with a ~1800ms overhead for our TLS connection (nearly 5 extra RTTs); eliminated the extra certificate roundtrip after a nginx upgrade; cut another RTT by forcing a smaller record size; dropped an ex…

---

## [Nginx misbehaviour in conjunction with non-ASCII characters](https://www.ruby-forum.com/t/nginx-misbehaviour-in-conjunction-with-non-ascii-characters/238135)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [December 19, 2013, 3:19pm UTC](https://www.ruby-forum.com/t/nginx-misbehaviour-in-conjunction-with-non-ascii-characters/238135 "2013-12-19T15:19:46Z")

</div>

Found a bug in implementation of MOVE and COPY (webdav) methods. It happens if destination header contains non-ASCII characters (that need to be escaped with “%”). An example: Rename (=MOVE) file “/TheCore.ogm” to …

---

## [Force linking to static archives during make?](https://www.ruby-forum.com/t/force-linking-to-static-archives-during-make/238116)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 4\
**Last updated:** [December 18, 2013, 11:13pm UTC](https://www.ruby-forum.com/t/force-linking-to-static-archives-during-make/238116 "2013-12-18T23:13:51Z")

</div>

This should be my last build question. $ ./auto/configure --with-http\_ssl\_module … –with-cc-opt="-I/usr/local/ssl/include" –with-ld-opt="-L/usr/local/ssl/lib /usr/local/ssl/lib/libssl.a /usr/local/ssl/lib/libcrypto.a…

---

## [Windows nginx 1.5.8.3 Caterpillar](https://www.ruby-forum.com/t/windows-nginx-1-5-8-3-caterpillar/238131)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [December 18, 2013, 9:24pm UTC](https://www.ruby-forum.com/t/windows-nginx-1-5-8-3-caterpillar/238131 "2013-12-18T21:24:01Z")

</div>

19:46 18-12-2013: nginx 1.5.8.3 Caterpillar Based on nginx 1.5.8 (release) with; prove.zip (onsite), a Windows Test\_Suite way to show/prove it all really works with at the moment a limited amount of tests which wil…

---

## [Override index.php for a subdirectory](https://www.ruby-forum.com/t/override-index-php-for-a-subdirectory/238101)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [December 18, 2013, 4:06pm UTC](https://www.ruby-forum.com/t/override-index-php-for-a-subdirectory/238101 "2013-12-18T16:06:09Z")

</div>

Hi. I need to override default index file for a subdirectory only. My actual config (pretty much ubuntu’s default): server { listen 80 default\_server; root /var/www; index index.php index.html index.htm; server\_na…

---

## [Proxy\_pass remote nginx server](https://www.ruby-forum.com/t/proxy-pass-remote-nginx-server/238108)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [December 17, 2013, 9:35pm UTC](https://www.ruby-forum.com/t/proxy-pass-remote-nginx-server/238108 "2013-12-17T21:35:45Z")

</div>

Hi, i have 2 nginx server, one with my main site(www.site.com) and other nginx server with my blog(www.site2.com). My nginx server 1 have this configurarion: on location /blog/ i have a (proxy\_pass) to blog on nginx…

---

## [Gzip proxy query](https://www.ruby-forum.com/t/gzip-proxy-query/238104)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [December 17, 2013, 2:13pm UTC](https://www.ruby-forum.com/t/gzip-proxy-query/238104 "2013-12-17T14:13:26Z")

</div>

Hi If ‘gzip off;’ on front-end but a proxy\_pass to backend gives a gzipped response, will the front-end decompress it before proxy to client? Cheers Richard

---

## [Checking for OpenSSL library not found](https://www.ruby-forum.com/t/checking-for-openssl-library-not-found/238092)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 11\
**Last updated:** [December 17, 2013, 2:08pm UTC](https://www.ruby-forum.com/t/checking-for-openssl-library-not-found/238092 "2013-12-17T14:08:45Z")

</div>

checking for OpenSSL library ... not found ./auto/configure: error: SSL modules require the OpenSSL library. You can either do not enable the modules, or install the OpenSSL library into the system, or build the OpenS…

---

## [SSL OCSP stapling won't enable](https://www.ruby-forum.com/t/ssl-ocsp-stapling-wont-enable/238056)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 6\
**Last updated:** [December 16, 2013, 8:27pm UTC](https://www.ruby-forum.com/t/ssl-ocsp-stapling-wont-enable/238056 "2013-12-16T20:27:25Z")

</div>

According to ssllabs.com SSL OCSP stapling is not enabled, even though I have the following in my http block: ssl\_stapling on; ssl\_stapling\_verify on; ssl\_trusted\_certificate /etc/pki/tls/certs/ca-bundle.trust.crt; …

---

## [sent\_http\_HEADER Volatile under Nginx 1.2.4](https://www.ruby-forum.com/t/sent-http-header-volatile-under-nginx-1-2-4/238033)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 7\
**Last updated:** [December 16, 2013, 1:45pm UTC](https://www.ruby-forum.com/t/sent-http-header-volatile-under-nginx-1-2-4/238033 "2013-12-16T13:45:52Z")

</div>

Im in the process of making some amends to an environment, where my upstream servers are sending a custom header (X-No-Cache), which I need to detect and alter caching rules within the configuration. The custom header…

---

## [Ngx\_conf\_t args count](https://www.ruby-forum.com/t/ngx-conf-t-args-count/238076)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [December 16, 2013, 8:28am UTC](https://www.ruby-forum.com/t/ngx-conf-t-args-count/238076 "2013-12-16T08:28:01Z")

</div>

From Miller’s Emiller’s Guide to Nginx Module Development – Evan Miller, section 5.2: ngx\_http\_upstream\_hash(ngx\_conf\_t \*cf, ngx\_command\_t \*cmd, void \*conf) { ngx\_http\_upstream\_srv\_conf\_t \*uscf; ngx\_http\_script\_com…

---

## [Hello](https://www.ruby-forum.com/t/hello/238069)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [December 15, 2013, 4:26pm UTC](https://www.ruby-forum.com/t/hello/238069 "2013-12-15T16:26:19Z")

</div>

Hello, I have a nginx server is enabled. And I have a file called htaccess The file should cause to allowing accessed only from Israel. But the file does not work, I realized that it is related to nginx only. What c…

---

## [Ngx\_openresty mainline version 1.4.3.7 released](https://www.ruby-forum.com/t/ngx-openresty-mainline-version-1-4-3-7-released/238065)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [December 15, 2013, 7:48am UTC](https://www.ruby-forum.com/t/ngx-openresty-mainline-version-1-4-3-7-released/238065 "2013-12-15T07:48:15Z")

</div>

Hello folks! I am happy to announce that the new mainline version of ngx\_openresty, 1.4.3.7, is now released: http://openresty.org/#Download Thanks all our contributors for making this happen! The highlights of this…

---

## [Proxy Pass Redirect Problem](https://www.ruby-forum.com/t/proxy-pass-redirect-problem/238043)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [December 15, 2013, 2:02am UTC](https://www.ruby-forum.com/t/proxy-pass-redirect-problem/238043 "2013-12-15T02:02:23Z")

</div>

Not sure if this is my configuration causing this symptom or openresty. Here is whats happening. If I try to access the store “admin” via: http://mysite.com/admin I am getting proxy redirects sent to my browser and s…

---

## [New ngx\_resolver changes breaks modules](https://www.ruby-forum.com/t/new-ngx-resolver-changes-breaks-modules/238060)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [December 14, 2013, 9:36pm UTC](https://www.ruby-forum.com/t/new-ngx-resolver-changes-breaks-modules/238060 "2013-12-14T21:36:37Z")

</div>

While back porting ngx\_resolver changes by Ruslan E. I get these errors: error C2039: ‘type’ : is not a member of ‘ngx\_resolver\_ctx\_s’ error C2440: ‘=’ : cannot convert from ‘ngx\_addr\_t’ to ‘ULONG’ Has this been inte…

---

## [Re: alias](https://www.ruby-forum.com/t/re-alias/238014)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [December 14, 2013, 2:05am UTC](https://www.ruby-forum.com/t/re-alias/238014 "2013-12-14T02:05:48Z")

</div>

On Tue, Dec 10, 2013 at 10:17:25PM +0000, Matthew Ngaha wrote: just after the server\_name line and reloading nginx. If “curl -i http://localhost/test/” does not show you “This is a test”, then that’s your problem. …

---

## [Google Analytics with nginx reverse proxy](https://www.ruby-forum.com/t/google-analytics-with-nginx-reverse-proxy/238027)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [December 12, 2013, 6:23pm UTC](https://www.ruby-forum.com/t/google-analytics-with-nginx-reverse-proxy/238027 "2013-12-12T18:23:41Z")

</div>

I am using NGINX as reverse proxy and forward the traffic to Apache server where Google Analytics is configured. I have configured proxy\_set\_header and from Apache server I can view users IP address. But in Googel An…

---

## [Problem with TLS handshake in some browsers when OCSP stapling enabled](https://www.ruby-forum.com/t/problem-with-tls-handshake-in-some-browsers-when-ocsp-stapling-enabled/238018)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [December 12, 2013, 4:25pm UTC](https://www.ruby-forum.com/t/problem-with-tls-handshake-in-some-browsers-when-ocsp-stapling-enabled/238018 "2013-12-12T16:25:41Z")

</div>

Hi, we got a problem with OCSP stapling. During the handshake some browsers send TLS extension “certificate status” with more than 5 bytes in it. In Nginx error\_log it looks like: \[crit\] 8721#0: \*35 SSL\_do\_handshak…

---

## [Location configuration?](https://www.ruby-forum.com/t/location-configuration/238031)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [December 12, 2013, 3:44pm UTC](https://www.ruby-forum.com/t/location-configuration/238031 "2013-12-12T15:44:45Z")

</div>

I’m reading through the nginx architecture document at Redirecting…. The location configuration is called out in a few places. For example: Phase handlers typically do four things: get the location configuration, gene…

---

## [Nginx Deployments in Practice](https://www.ruby-forum.com/t/nginx-deployments-in-practice/238000)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 5\
**Last updated:** [December 12, 2013, 2:55am UTC](https://www.ruby-forum.com/t/nginx-deployments-in-practice/238000 "2013-12-12T02:55:54Z")

</div>

My nginx needs are (1) stable nginx, (2) patched nginx, and (3) something I can modify. The last is what concerns me - I want to ensure I don’t lose my changes and enhancements while pursuing (1) and (2). What are fo…

---

## [Imap proxy](https://www.ruby-forum.com/t/imap-proxy/237908)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 5\
**Last updated:** [December 11, 2013, 9:30pm UTC](https://www.ruby-forum.com/t/imap-proxy/237908 "2013-12-11T21:30:52Z")

</div>

Hello Everyone, Is mail imap proxy supports SSL or STARTTLS for connections to backend server ? Slava. Posted at Nginx Forum:

---

## [Possible mutex starvation issue affects all nginx Linux versions](https://www.ruby-forum.com/t/possible-mutex-starvation-issue-affects-all-nginx-linux-versions/237817)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [December 11, 2013, 6:11pm UTC](https://www.ruby-forum.com/t/possible-mutex-starvation-issue-affects-all-nginx-linux-versions/237817 "2013-12-11T18:11:38Z")

</div>

Here is a patch for a possible mutex starvation issue which affects all nginx Linux versions. Already solved for Windows since nginx 1.5.7.1 Caterpillar. Can be reproduced when nginx reloads the config & worker holdin…

---

## [Hg checkout missing config and friends](https://www.ruby-forum.com/t/hg-checkout-missing-config-and-friends/238011)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [December 11, 2013, 5:18pm UTC](https://www.ruby-forum.com/t/hg-checkout-missing-config-and-friends/238011 "2013-12-11T17:18:28Z")

</div>

I performed a checkout to the latest stable: $ hg clone http://hg.nginx.org/nginx -u “release-1.4.4” I tried to run config, and it appears to be missing: $ ./config -bash: ./config: No such file or directory $ nginx…

---

## [OpenSSL Locks](https://www.ruby-forum.com/t/openssl-locks/238007)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [December 11, 2013, 4:42pm UTC](https://www.ruby-forum.com/t/openssl-locks/238007 "2013-12-11T16:42:50Z")

</div>

I need to do some additional processing with OpenSSL in a custom module. I noticed ngingx does not set any locks in ngx\_ssl\_init (from ngx\_event\_openssl.c). A few questions: Should lock installation be guarded on N…

---

## [$\_SERVERplus-signs and whitespace](https://www.ruby-forum.com/t/serverplus-signs-and-whitespace/238006)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [December 11, 2013, 12:56pm UTC](https://www.ruby-forum.com/t/serverplus-signs-and-whitespace/238006 "2013-12-11T12:56:44Z")

</div>

Hello, I have the following Problem with Nginx 1.2.1-2.2 running on 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2 x86\_64 GNU/Linux A String like $\_SERVER\[‘QUERY\_STRING’\] = test=1+2 will get $\_GET\[‘test’\] = 1 2 I have found t…

---

## [Upstrea/ Keepalive strange behaviour](https://www.ruby-forum.com/t/upstrea-keepalive-strange-behaviour/237975)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [December 11, 2013, 9:59am UTC](https://www.ruby-forum.com/t/upstrea-keepalive-strange-behaviour/237975 "2013-12-11T09:59:06Z")

</div>

Hello all, I have a strange behavior when using upstream/keepalive and it could be fine if someone can give me some feedback regarding this setup. I have multiple locations with proxy\_pass directive, i use proxy\_http…

---

## [Re: alias](https://www.ruby-forum.com/t/re-alias/237997)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [December 10, 2013, 11:41pm UTC](https://www.ruby-forum.com/t/re-alias/237997 "2013-12-10T23:41:40Z")

</div>

On Mon, Dec 09, 2013 at 05:03:55PM +0000, Matthew Ngaha wrote: Where does the example come from? It may be worth asking the author to fix it. Hi Francis It was from nginx http server If you ask for http://localh…

---

## [Nginx "Segementation Fault" - dont know where to start](https://www.ruby-forum.com/t/nginx-segementation-fault-dont-know-where-to-start/237988)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [December 10, 2013, 4:15pm UTC](https://www.ruby-forum.com/t/nginx-segementation-fault-dont-know-where-to-start/237988 "2013-12-10T16:15:46Z")

</div>

Hi all, I am trying to compile version 1.4.4 with a couple of modules, and I have a clean compile that runs on the test system just fine. However when I run it on the production server it crashes with “Segmentation F…

---

## [Stalled cache updating - what does it mean?](https://www.ruby-forum.com/t/stalled-cache-updating-what-does-it-mean/237986)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [December 10, 2013, 11:58am UTC](https://www.ruby-forum.com/t/stalled-cache-updating-what-does-it-mean/237986 "2013-12-10T11:58:42Z")

</div>

Hello, I have a pretty basic PHP / fastcgi setup with a fastcgi cache as follows: fastcgi\_cache\_key “$scheme$request\_method$host$request\_uri”; fastcgi\_cache\_lock on; fastcgi\_cache\_bypass $skip\_cache; fastcgi\_no\_cac…

---

## [Alias](https://www.ruby-forum.com/t/alias/237977)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [December 9, 2013, 7:33pm UTC](https://www.ruby-forum.com/t/alias/237977 "2013-12-09T19:33:50Z")

</div>

hi all, i just had a quick question about this example. http { server { server\_name localhost; root /var/www/website.com/html; location /admin/ { alias /var/www/locked/; } } } When a request for http://localho…

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

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