# Server

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

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

---

## [Increase either types\_hash\_max\_size: 1024 or types\_hash\_bucket\_size: 32](https://www.ruby-forum.com/t/increase-either-types-hash-max-size-1024-or-types-hash-bucket-size-32/239439)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [February 26, 2014, 11:57am UTC](https://www.ruby-forum.com/t/increase-either-types-hash-max-size-1024-or-types-hash-bucket-size-32/239439 "2014-02-26T11:57:28Z")

</div>

Hello, I got below error after updating Nginx from nginx-1.4.4-1 to nginx-1.5.10-1. nginx: \[emerg\] could not build the types\_hash, you should increase either types\_hash\_max\_size: 1024 or types\_hash\_bucket\_size: 32 …

---

## [Gzip cause white screen of death (wsod)](https://www.ruby-forum.com/t/gzip-cause-white-screen-of-death-wsod/239435)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [February 26, 2014, 9:25am UTC](https://www.ruby-forum.com/t/gzip-cause-white-screen-of-death-wsod/239435 "2014-02-26T09:25:30Z")

</div>

Hi Guys, I have a problem here. My website, www.tokopedia.com use nginx 1.5.10 with gzip activated. Some of our users got white screen of death (wsod). It turns out that it is because of gzip. These are what I found : …

---

## [NGINX SSL Session Ticket Key](https://www.ruby-forum.com/t/nginx-ssl-session-ticket-key/239421)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [February 25, 2014, 7:24pm UTC](https://www.ruby-forum.com/t/nginx-ssl-session-ticket-key/239421 "2014-02-25T19:24:39Z")

</div>

Hi! Recently nginx implemented support for ssl\_session\_ticket\_key allowing to setup key(s) for SSL tickets encryption explicitly. This is usefull when multiple nginx servers must share the same set of keys in order f…

---

## [NGINX proxy, 502 error while SSL handshaking to upstream](https://www.ruby-forum.com/t/nginx-proxy-502-error-while-ssl-handshaking-to-upstream/239418)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [February 25, 2014, 6:04pm UTC](https://www.ruby-forum.com/t/nginx-proxy-502-error-while-ssl-handshaking-to-upstream/239418 "2014-02-25T18:04:00Z")

</div>

Hello everyone, I’m new here and this my first post in this mailing list, Maybe this is a frequently answered question but I could’t find a solution. Maybe is a “layer 8” issue. Right now, I have a Nginx(1.0.8) prox…

---

## [Http header doesn't pass throw nginx to php-fpm](https://www.ruby-forum.com/t/http-header-doesnt-pass-throw-nginx-to-php-fpm/239414)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [February 25, 2014, 5:26pm UTC](https://www.ruby-forum.com/t/http-header-doesnt-pass-throw-nginx-to-php-fpm/239414 "2014-02-25T17:26:17Z")

</div>

I use http{ underscores\_in\_headers on; ignore\_invalid\_headers off; and all works fine. php code can see HTTP\_RANGE in $\_SERVER array. but when I use fastcgi cache. location / { if ($request\_method != GET) { break;…

---

## [Reverse and Forward proxy?](https://www.ruby-forum.com/t/reverse-and-forward-proxy/239420)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [February 25, 2014, 5:23pm UTC](https://www.ruby-forum.com/t/reverse-and-forward-proxy/239420 "2014-02-25T17:23:20Z")

</div>

Hi, Can nginx run as a forward and revers proxy in the same host? I am looking for a solution to the below Forward Proxy App Server \> Proxy Server \> Internet \> Source IP My App server will need to use a Proxy to fe…

---

## [Rewrite https to http expect one location](https://www.ruby-forum.com/t/rewrite-https-to-http-expect-one-location/239387)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [February 25, 2014, 10:21am UTC](https://www.ruby-forum.com/t/rewrite-https-to-http-expect-one-location/239387 "2014-02-25T10:21:53Z")

</div>

Hello, I have a config like: server { … do not rewrite this location /mailadmin/(.\*..php)$ { # some stuff } location / { # some other stuff rewrite ^ http://$server\_name$request\_uri? permanent; } location ~…

---

## [Include order and variables definition in configuration](https://www.ruby-forum.com/t/include-order-and-variables-definition-in-configuration/239397)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 5\
**Last updated:** [February 25, 2014, 9:46am UTC](https://www.ruby-forum.com/t/include-order-and-variables-definition-in-configuration/239397 "2014-02-25T09:46:34Z")

</div>

Hello, I am considering the following configuration: server { include fastcgi.conf # Default configuration coming with a Debian package which contains a definition of the SCRIPT\_FILENAME FastCGI variable with $docu…

---

## [How to combine text and variables in fastcgi\_param?](https://www.ruby-forum.com/t/how-to-combine-text-and-variables-in-fastcgi-param/239365)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [February 25, 2014, 1:01am UTC](https://www.ruby-forum.com/t/how-to-combine-text-and-variables-in-fastcgi-param/239365 "2014-02-25T01:01:46Z")

</div>

Hello there dear nginx people, I am a beginner in nginx and also to mailing lists. :slight\_smile: Once read the docs I can’t say I am sure I remember all the important parts so please excuse me if I am asking somethin…

---

## [Configuring nginx as mail proxy](https://www.ruby-forum.com/t/configuring-nginx-as-mail-proxy/223950)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 11\
**Last updated:** [February 24, 2014, 8:11pm UTC](https://www.ruby-forum.com/t/configuring-nginx-as-mail-proxy/223950 "2014-02-24T20:11:43Z")

</div>

I need to use nginx as a mail proxy. I am completely new to nginx and need some help with the configuration. Here is what I did: First I built a service that mocks the authentication services described here: http://w…

---

## [Rewrite all https to http except one location](https://www.ruby-forum.com/t/rewrite-all-https-to-http-except-one-location/239384)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [February 24, 2014, 7:46pm UTC](https://www.ruby-forum.com/t/rewrite-all-https-to-http-except-one-location/239384 "2014-02-24T19:46:59Z")

</div>

Hello, I have a SSL config like server { server\_name …; do not rewrite this location /mailadmin/(.\*..php)${ … some stuff } location / { … rewrite ^ http://$server\_name$request\_uri? permanent; } location ~ .p…

---

## [Upstream sent invalid chunked response](https://www.ruby-forum.com/t/upstream-sent-invalid-chunked-response/239376)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [February 24, 2014, 4:41pm UTC](https://www.ruby-forum.com/t/upstream-sent-invalid-chunked-response/239376 "2014-02-24T16:41:34Z")

</div>

Hi, We are using nginx as a reverse proxy before JBoss and Apache. Certain POST requests are failing when passing through nginx. /var/log/nginx/error.log showed errors like this: 2014/02/24 10:05:05 \[error\] 3409#0:…

---

## [Weird bad gateway issues](https://www.ruby-forum.com/t/weird-bad-gateway-issues/239389)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [February 24, 2014, 4:38pm UTC](https://www.ruby-forum.com/t/weird-bad-gateway-issues/239389 "2014-02-24T16:38:38Z")

</div>

I am using nginx/1.1.19 (Ubuntu 12.04.3). I have 3 reverse proxies setup, like so: server { listen 80; server\_name ebatch.example.com; client\_max\_body\_size 20m; location / { proxy\_pass http://127.0.0.1:8000/; …

---

## [Resend - worker\_connections are not enough while requesting certificate status](https://www.ruby-forum.com/t/resend-worker-connections-are-not-enough-while-requesting-certificate-status/239386)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [February 24, 2014, 3:14pm UTC](https://www.ruby-forum.com/t/resend-worker-connections-are-not-enough-while-requesting-certificate-status/239386 "2014-02-24T15:14:26Z")

</div>

I have seen errors in my logs: worker\_connections are not enough while requesting certificate status I believe the main problem was that the worker\_connections was set too low, and I’ve fixed that. However after loo…

---

## [Sticky-nginx-module forked and extended](https://www.ruby-forum.com/t/sticky-nginx-module-forked-and-extended/239373)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [February 24, 2014, 7:48am UTC](https://www.ruby-forum.com/t/sticky-nginx-module-forked-and-extended/239373 "2014-02-24T07:48:46Z")

</div>

Hi List, i’m proud to announce the comeback of the nginx-sticky-module. i included a patch by markus linnala to mark route-cookies httponly/secure and put the modified version online: https://bitbucket.org/nginx-good…

---

## [Newbie help - unknown directive memc\_pass](https://www.ruby-forum.com/t/newbie-help-unknown-directive-memc-pass/239368)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [February 24, 2014, 12:27am UTC](https://www.ruby-forum.com/t/newbie-help-unknown-directive-memc-pass/239368 "2014-02-24T00:27:43Z")

</div>

I’m a newbie to unix and nginx so please be gentle :slight\_smile: I’m starting to pull my hair out a bit now so figured I’d ask for some pointers. Im trying to build a nginx version which includes memc functionality b…

---

## [Fastcgi caching](https://www.ruby-forum.com/t/fastcgi-caching/239323)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [February 23, 2014, 3:07pm UTC](https://www.ruby-forum.com/t/fastcgi-caching/239323 "2014-02-23T15:07:36Z")

</div>

I’m using the following config to cache only /piwik/piwik.php: fastcgi\_cache\_path /var/cache/php-fpm levels=1:2 keys\_zone=piwik:10m; fastcgi\_cache\_key “$scheme$request\_method$host$request\_uri”; location /piwik/piwik.p…

---

## [Rpm packaging a web application software to run on nginx](https://www.ruby-forum.com/t/rpm-packaging-a-web-application-software-to-run-on-nginx/239349)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [February 22, 2014, 4:26pm UTC](https://www.ruby-forum.com/t/rpm-packaging-a-web-application-software-to-run-on-nginx/239349 "2014-02-22T16:26:17Z")

</div>

Hi, I’m trying to add Nginx support to the LDAP Account Manager RPM package. In Apache, the package adds a /etc/httpd/conf.d/lam.apache.conf that has a simple Alias directive: Alias /lam /usr/share/ldap-account-mana…

---

## [WordPress + Code Igniter Config not working](https://www.ruby-forum.com/t/wordpress-code-igniter-config-not-working/239328)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [February 22, 2014, 9:42am UTC](https://www.ruby-forum.com/t/wordpress-code-igniter-config-not-working/239328 "2014-02-22T09:42:04Z")

</div>

Could someone look over my configuration? It appears I am missing something that is causing it not to work. I have a Code Igniter application that runs from the root WordPress folder fine with Apache, but it is not w…

---

## [Serve \*only\* from cache for particular user-agents](https://www.ruby-forum.com/t/serve-only-from-cache-for-particular-user-agents/239315)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 6\
**Last updated:** [February 21, 2014, 11:15pm UTC](https://www.ruby-forum.com/t/serve-only-from-cache-for-particular-user-agents/239315 "2014-02-21T23:15:40Z")

</div>

I havne’t found any ideas for this and thought I might ask here. We have a fairly straightforward proxy\_cache setup with a proxy\_pass backend. We cache documents for different lengths of time or go the backend for …

---

## [Translating apache config to nginx](https://www.ruby-forum.com/t/translating-apache-config-to-nginx/239261)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 8\
**Last updated:** [February 21, 2014, 10:52pm UTC](https://www.ruby-forum.com/t/translating-apache-config-to-nginx/239261 "2014-02-21T22:52:08Z")

</div>

Roundcube uses some apache config to deny access to certain locations and I’m trying to translate them to nginx. The following seems to work fine: location ~ ^/?(.git|.tx|SQL|bin|config|logs|temp|tests|program/(incl…

---

## [Join Us! Nginx User Summit 2/25 in San Francisco](https://www.ruby-forum.com/t/join-us-nginx-user-summit-2-25-in-san-francisco/239324)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [February 21, 2014, 10:08pm UTC](https://www.ruby-forum.com/t/join-us-nginx-user-summit-2-25-in-san-francisco/239324 "2014-02-21T22:08:36Z")

</div>

The Users Have Spoken. So, dont forget the inaugural NGINX User Summit! Please join us February 25 in San Francisco to learn what’s coming up with NGINX, and to collaborate with the larger NGINX community. We’re eage…

---

## [Service restart testing nginx.conf](https://www.ruby-forum.com/t/service-restart-testing-nginx-conf/239322)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [February 21, 2014, 7:45pm UTC](https://www.ruby-forum.com/t/service-restart-testing-nginx-conf/239322 "2014-02-21T19:45:22Z")

</div>

It seems like way back in the olden days, when I restarted nginx (‘sudo service nginx restart’), if there was a configuration issue in nginx.conf, I would get a warning telling me such and, IIRC, nginx would boot usin…

---

## [Virtual or physical?](https://www.ruby-forum.com/t/virtual-or-physical/239305)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [February 21, 2014, 10:53am UTC](https://www.ruby-forum.com/t/virtual-or-physical/239305 "2014-02-21T10:53:12Z")

</div>

Hi! If I have one host, am I going to get better performances if I run only one nginx on the physical host, or would it be more beneficial to run 4 virtual machines each running a different nginx? Thanks!

---

## [Combining nginx with a library that manages it's own threads?](https://www.ruby-forum.com/t/combining-nginx-with-a-library-that-manages-its-own-threads/239294)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [February 21, 2014, 7:11am UTC](https://www.ruby-forum.com/t/combining-nginx-with-a-library-that-manages-its-own-threads/239294 "2014-02-21T07:11:24Z")

</div>

Hi, I would like to connect nginx to the Cassandra NoSQL database. There is a C++ library\[1\] that I could wrap to C to use with nginx. However, the library does it’s own connection pooling and thread management and I…

---

## [Incorrect IP Address Deducted by Nginx version: nginx/1.2.1](https://www.ruby-forum.com/t/incorrect-ip-address-deducted-by-nginx-version-nginx-1-2-1/239262)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 9\
**Last updated:** [February 21, 2014, 4:29am UTC](https://www.ruby-forum.com/t/incorrect-ip-address-deducted-by-nginx-version-nginx-1-2-1/239262 "2014-02-21T04:29:38Z")

</div>

Hi, We have strange issue on our swiss based on server. Issue: Incorrect IP Address value in REMOTE\_ADDR Header Nginx Version : 1.2.1 Server OS : Debian 7.1 Modules : nginx -V ngi…

---

## [Check if the file exists](https://www.ruby-forum.com/t/check-if-the-file-exists/239296)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [February 20, 2014, 11:11pm UTC](https://www.ruby-forum.com/t/check-if-the-file-exists/239296 "2014-02-20T23:11:29Z")

</div>

I’m trying to check if the file exists before passing it to fastcgi but I have not found as. This is what I’m doing: #if (!-f $document\_root$fastcgi\_script\_name) if (!-f $request\_filename) { return 404; } I’ve tr…

---

## [Post\_action for specific requests only](https://www.ruby-forum.com/t/post-action-for-specific-requests-only/239295)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [February 20, 2014, 9:33pm UTC](https://www.ruby-forum.com/t/post-action-for-specific-requests-only/239295 "2014-02-20T21:33:12Z")

</div>

Hi, i’m using post\_action for remote logging. Logging all requests works great and efficient (4k req/s) but when I try to log only certain requests ngix becomes unstable (some connections hang and some weird errors o…

---

## [Nginx.exe has encountered a problem and needs to close. (SSL)](https://www.ruby-forum.com/t/nginx-exe-has-encountered-a-problem-and-needs-to-close-ssl/239288)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 4\
**Last updated:** [February 20, 2014, 9:15pm UTC](https://www.ruby-forum.com/t/nginx-exe-has-encountered-a-problem-and-needs-to-close-ssl/239288 "2014-02-20T21:15:32Z")

</div>

I have configured the server to accept SSL connections and after two or three requests always gives the error: nginx.exe has encountered a problem and needs to close. Restart server does not work, the first request fa…

---

## [Worker\_connections are not enough while requesting certificate status](https://www.ruby-forum.com/t/worker-connections-are-not-enough-while-requesting-certificate-status/239287)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [February 20, 2014, 3:43pm UTC](https://www.ruby-forum.com/t/worker-connections-are-not-enough-while-requesting-certificate-status/239287 "2014-02-20T15:43:02Z")

</div>

I have seen errors in my logs: worker\_connections are not enough while requesting certificate status I believe the main problem was that the worker\_connections was set too low, and I’ve fixed that. However after loo…

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

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