# Server

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

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

---

## [Limit proxy\_next\_upstream](https://www.ruby-forum.com/t/limit-proxy-next-upstream/227981)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [January 14, 2014, 10:55pm UTC](https://www.ruby-forum.com/t/limit-proxy-next-upstream/227981 "2014-01-14T22:55:59Z")

</div>

Is it possible to limit the amount of upstreams asked? I have four upstreams defined and it makes no sense to ask all of them. If two of them timeout or error there is possible something wrong with the request and as…

---

## [Nginx port for socket.io](https://www.ruby-forum.com/t/nginx-port-for-socket-io/238473)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [January 13, 2014, 5:05am UTC](https://www.ruby-forum.com/t/nginx-port-for-socket-io/238473 "2014-01-13T05:05:51Z")

</div>

I have a node application that uses websockets. I’m using a custom config file like this. However, when I post to the application, the post isn’t appearing in the client side of the application. Since it’s using web…

---

## [Connection reset by peer and other problems](https://www.ruby-forum.com/t/connection-reset-by-peer-and-other-problems/235595)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [January 12, 2014, 2:58pm UTC](https://www.ruby-forum.com/t/connection-reset-by-peer-and-other-problems/235595 "2014-01-12T14:58:19Z")

</div>

Hi guys, I’m getting a lot of errors on logs right now and we’ve already tried everything to solve the problem without success. Everything was running just fine until last week. We use nginx and php-fpm. nginx versi…

---

## [403 error for one of my server blocks](https://www.ruby-forum.com/t/403-error-for-one-of-my-server-blocks/238466)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [January 12, 2014, 10:44am UTC](https://www.ruby-forum.com/t/403-error-for-one-of-my-server-blocks/238466 "2014-01-12T10:44:49Z")

</div>

Hi, I installed nginx on an ubuntu server and then followed this tutorial (which I’ll quote from) to setup server blocks .(I don’t do any of the WordPress config in that article). It uses a common.conf that the ser…

---

## [Fastcgi\_cache and 304 response](https://www.ruby-forum.com/t/fastcgi-cache-and-304-response/238465)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [January 11, 2014, 10:46pm UTC](https://www.ruby-forum.com/t/fastcgi-cache-and-304-response/238465 "2014-01-11T22:46:25Z")

</div>

Hi, I use nginx + php-fpm (via fcgi) and needed responses from php-server are putting into cache. I have one thought, could be better send cached pages to clients from cache with 304 code instead 200. So we must know…

---

## [Ngx\_openresty mainline version 1.5.8.1 released](https://www.ruby-forum.com/t/ngx-openresty-mainline-version-1-5-8-1-released/238454)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [January 11, 2014, 6:44am UTC](https://www.ruby-forum.com/t/ngx-openresty-mainline-version-1-5-8-1-released/238454 "2014-01-11T06:44:57Z")

</div>

Hello folks! I am happy to announce that the new mainline version of ngx\_openresty, 1.5.8.1, is now released: http://openresty.org/#Download This is the first openresty release with the latest nginx 1.5.8 core bundl…

---

## [Monitoring cache statistics](https://www.ruby-forum.com/t/monitoring-cache-statistics/169210)

<div class="topic-metadata">

**Author:** [@Nime](https://www.ruby-forum.com/u/Nime)\
**Replies:** 7\
**Last updated:** [January 11, 2014, 4:48am UTC](https://www.ruby-forum.com/t/monitoring-cache-statistics/169210 "2014-01-11T04:48:08Z")

</div>

is it possible to somehow monitor nginx proxy\_cache efficiency? For example by having a variable that can be logged in the access log to see if the request has been cached, Posted at Nginx Forum:

---

## [Perl regex to extract "domain" and "extension" into variables from 'server\_name'](https://www.ruby-forum.com/t/perl-regex-to-extract-domain-and-extension-into-variables-from-server-name/238451)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [January 10, 2014, 11:33pm UTC](https://www.ruby-forum.com/t/perl-regex-to-extract-domain-and-extension-into-variables-from-server-name/238451 "2014-01-10T23:33:07Z")

</div>

I want to extract just the “domain” and “extension” parts from an nginx server\_name for use as variables later in nginx conf. For example, server\_name \<some PERL regex … ? … ? …\>; … location = /test.html { alias /…

---

## [Windows nginx 1.5.9.1 Cheshire](https://www.ruby-forum.com/t/windows-nginx-1-5-9-1-cheshire/238450)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [January 10, 2014, 9:23pm UTC](https://www.ruby-forum.com/t/windows-nginx-1-5-9-1-cheshire/238450 "2014-01-10T21:23:25Z")

</div>

14:05 10-1-2014: nginx 1.5.9.1 Cheshire When she sleeps she gently purrs, you hardly know she’s there, but when she wakes you’re gonna hear her roar. nginx Cheshire release is here ! This native build runs on Window…

---

## [Proxy\_cache incorrectly returning 304 Not Modified](https://www.ruby-forum.com/t/proxy-cache-incorrectly-returning-304-not-modified/238404)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 5\
**Last updated:** [January 10, 2014, 5:37pm UTC](https://www.ruby-forum.com/t/proxy-cache-incorrectly-returning-304-not-modified/238404 "2014-01-10T17:37:54Z")

</div>

Hi there, I work on a site which has nginx in front of a Rails application, and we use proxy\_cache. For the home page, our application returns a “max-age=600, public” Cache-Control header, and we have nginx configure…

---

## [Geoip\_country\_code header is deleted when I set another custom header](https://www.ruby-forum.com/t/geoip-country-code-header-is-deleted-when-i-set-another-custom-header/238445)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [January 10, 2014, 11:57am UTC](https://www.ruby-forum.com/t/geoip-country-code-header-is-deleted-when-i-set-another-custom-header/238445 "2014-01-10T11:57:51Z")

</div>

Hello everybody. I have a nginx (version: nginx/0.7.67) running as a loadbalancer for two tomcat7 servers with the geoip module. It was working correctly until I changed the configuration file placed in available-loca…

---

## ["Primary script unknown" wp-login.php](https://www.ruby-forum.com/t/primary-script-unknown-wp-login-php/238416)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 4\
**Last updated:** [January 10, 2014, 11:12am UTC](https://www.ruby-forum.com/t/primary-script-unknown-wp-login-php/238416 "2014-01-10T11:12:17Z")

</div>

As subject says: I cannot access wp-admin due to above \[error\]. Otherwise, site functions as it should. See error log: 2014/01/09 04:31:23 \[error\] 35759#0: \*5254 FastCGI sent in stderr: “Primary script unknown” while…

---

## [Customized error pages for 500](https://www.ruby-forum.com/t/customized-error-pages-for-500/191965)

<div class="topic-metadata">

**Author:** [@schand](https://www.ruby-forum.com/u/schand)\
**Replies:** 5\
**Last updated:** [January 10, 2014, 1:19am UTC](https://www.ruby-forum.com/t/customized-error-pages-for-500/191965 "2014-01-10T01:19:11Z")

</div>

Hi, I am a newbie to nginx. I need to have a customized error pages for the http response codes 50x. I am running on nginx with passenger and ruby on rails. I have problem with nginx.conf. I am not able to get my cust…

---

## [How to combine try\_files with multiple proxy destinations](https://www.ruby-forum.com/t/how-to-combine-try-files-with-multiple-proxy-destinations/238395)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [January 9, 2014, 10:45pm UTC](https://www.ruby-forum.com/t/how-to-combine-try-files-with-multiple-proxy-destinations/238395 "2014-01-09T22:45:47Z")

</div>

I have the folllowing requirement: if /usr/share/nginx/html/maintenance.html exists, then always show this file to browser. if this is the static file which located in the sub-directories of /usr/share/nginx/html/, …

---

## [Dynamic ssl certificate (wildcard+ multiple different certs)](https://www.ruby-forum.com/t/dynamic-ssl-certificate-wildcard-multiple-different-certs/238431)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 6\
**Last updated:** [January 9, 2014, 8:51pm UTC](https://www.ruby-forum.com/t/dynamic-ssl-certificate-wildcard-multiple-different-certs/238431 "2014-01-09T20:51:16Z")

</div>

Hello, Here is my current conf server { listen 443; server\_name ~^(.\*)\\.sub\\.domain\\.com$ ssl on; ssl\_certificate $cookie\_ident/$1.crt; ssl\_certificate\_key $cookie\_ident/$1.key; server\_tokens off; ssl\_pr…

---

## [Config issue](https://www.ruby-forum.com/t/config-issue/238433)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [January 9, 2014, 8:30pm UTC](https://www.ruby-forum.com/t/config-issue/238433 "2014-01-09T20:30:14Z")

</div>

Im trying to set up nginx with django. This is the instruction given: Symlink to this file from /etc/nginx/sites-enabled so nginx can see it: sudo ln -s ~/path/to/your/mysite/mysite\_nginx.conf /etc/nginx/sites-enable…

---

## [Nginx, Lua and blocking libraries](https://www.ruby-forum.com/t/nginx-lua-and-blocking-libraries/238425)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [January 9, 2014, 7:23pm UTC](https://www.ruby-forum.com/t/nginx-lua-and-blocking-libraries/238425 "2014-01-09T19:23:02Z")

</div>

Hello I’m considering the possibility of implementing a project using Nginx and the Lua module. One of the requirements of the project is that the code must use an embedded database such as SQLite. However, as known, …

---

## [Nginx as reverse Proxy, remove X-Frame-Options header](https://www.ruby-forum.com/t/nginx-as-reverse-proxy-remove-x-frame-options-header/238421)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 12\
**Last updated:** [January 9, 2014, 6:47pm UTC](https://www.ruby-forum.com/t/nginx-as-reverse-proxy-remove-x-frame-options-header/238421 "2014-01-09T18:47:24Z")

</div>

Hello, I have a closed-source Webapp that run on an IIS-Webserver and send a “X-Frame-Options: SAMEORIGIN” header. I also have to implement this Webapp in my own, Frame based Application. So I try to use nginx as a r…

---

## [Time out errors using uwsgi with ngnix on debian 7 (wheezy)](https://www.ruby-forum.com/t/time-out-errors-using-uwsgi-with-ngnix-on-debian-7-wheezy/238412)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [January 9, 2014, 6:08pm UTC](https://www.ruby-forum.com/t/time-out-errors-using-uwsgi-with-ngnix-on-debian-7-wheezy/238412 "2014-01-09T18:08:49Z")

</div>

I’ve installed nginx via apt, using the nginx stable pkg as described here: http://nginx.org/en/linux\_packages.html#stable It works perfectly for serving static files using the default configuration. Next, I install…

---

## [CSS 404 Error](https://www.ruby-forum.com/t/css-404-error/222336)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [January 9, 2014, 2:18pm UTC](https://www.ruby-forum.com/t/css-404-error/222336 "2014-01-09T14:18:35Z")

</div>

HI, Ngix giving ‘404 Not Found’ error when I am trying to access the below url: http://mysite.com/skin/frontend/tester/default/css/styles-ie.css’ but at the same time I can access php file from the same locaiton: ht…

---

## [OT: OpenSSL 1.0.1f](https://www.ruby-forum.com/t/ot-openssl-1-0-1f/238363)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 9\
**Last updated:** [January 9, 2014, 9:52am UTC](https://www.ruby-forum.com/t/ot-openssl-1-0-1f/238363 "2014-01-09T09:52:05Z")

</div>

OpenSSL 1.0.1f was released today. It might be a good time to rebuild all the versions of nginx using static versions of OpenSSL. There are three CVE remediations included in the release: CVE-2013-4353, CVE-2013-6449,…

---

## [How do i get the request body?](https://www.ruby-forum.com/t/how-do-i-get-the-request-body/238297)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [January 9, 2014, 6:52am UTC](https://www.ruby-forum.com/t/how-do-i-get-the-request-body/238297 "2014-01-09T06:52:44Z")

</div>

Hello guys, I'm developing a nginx module, the intent is to get the request body, then write some response depends on what request body is. I’ve called the method ngx\_http\_read\_client\_request\_body (r, ngx\_http\_my…

---

## [Tengine-2.0.0 is released](https://www.ruby-forum.com/t/tengine-2-0-0-is-released/238401)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [January 8, 2014, 3:50pm UTC](https://www.ruby-forum.com/t/tengine-2-0-0-is-released/238401 "2014-01-08T15:50:01Z")

</div>

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

---

## [Empty error log](https://www.ruby-forum.com/t/empty-error-log/238394)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [January 8, 2014, 10:33am UTC](https://www.ruby-forum.com/t/empty-error-log/238394 "2014-01-08T10:33:55Z")

</div>

I have installed Nginx for a small web server with static content. It works fine but the site error log file is always empty. All errors such as 404 are written to the access log only. File grants are the same for acc…

---

## [Problem trying to rewrite a URL](https://www.ruby-forum.com/t/problem-trying-to-rewrite-a-url/238352)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [January 8, 2014, 9:12am UTC](https://www.ruby-forum.com/t/problem-trying-to-rewrite-a-url/238352 "2014-01-08T09:12:07Z")

</div>

Hi all, I have a problem trying to rewrite a URL. It should be pretty straightforward but it has been taking me hours searching. Google indexed urls containing “;”, which gets escaped to %3b: (the original url tha…

---

## [Proxy\_pass check if 404, and return 404](https://www.ruby-forum.com/t/proxy-pass-check-if-404-and-return-404/238381)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [January 8, 2014, 5:21am UTC](https://www.ruby-forum.com/t/proxy-pass-check-if-404-and-return-404/238381 "2014-01-08T05:21:59Z")

</div>

I am using proxy\_pass to a dynamic subdomain: proxy\_pass https://$remote\_user.mydomain.io Is it possible to have the proxy\_pass check if the response of https://$remote\_user.mydomain.io is 404, if so, simply do: retu…

---

## [Request body in a module](https://www.ruby-forum.com/t/request-body-in-a-module/238374)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [January 7, 2014, 4:07pm UTC](https://www.ruby-forum.com/t/request-body-in-a-module/238374 "2014-01-07T16:07:17Z")

</div>

Hi, have been trying to read the request body in my module, using the information I have gotten from this forum and some blogs and basically came up with the following functions as can be seen in this post Reading re…

---

## [How to submit my open source nginx module to nginx thrid party modules](https://www.ruby-forum.com/t/how-to-submit-my-open-source-nginx-module-to-nginx-thrid-party-modules/238372)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [January 7, 2014, 3:05pm UTC](https://www.ruby-forum.com/t/how-to-submit-my-open-source-nginx-module-to-nginx-thrid-party-modules/238372 "2014-01-07T15:05:21Z")

</div>

i want to submit my open souce nginx module to NGINX 3rd Party Modules | NGINX, how can i do ?

---

## [Very slow dns lookup using proxy\_pass](https://www.ruby-forum.com/t/very-slow-dns-lookup-using-proxy-pass/238332)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 4\
**Last updated:** [January 6, 2014, 10:07pm UTC](https://www.ruby-forum.com/t/very-slow-dns-lookup-using-proxy-pass/238332 "2014-01-06T22:07:20Z")

</div>

I am seeing very slow DNS lookup times ( \> 2 seconds ) using proxy\_pass, even though dig response times on the server are quick. Here is the nginx configuration block: location ~ ^/v1/(?.\*) { resolver 8.8.4.4 4.4.4…

---

## [Agentzh's encrypted session module](https://www.ruby-forum.com/t/agentzhs-encrypted-session-module/238342)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [January 6, 2014, 8:45pm UTC](https://www.ruby-forum.com/t/agentzhs-encrypted-session-module/238342 "2014-01-06T20:45:32Z")

</div>

I’ve been studying agentzh’s encrypted session module from https://github.com/agentzh/encrypted-session-nginx-module/tree/master/src. There are essentially two methods: one to encrypt values, and a second to decrypt m…

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

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