# Server

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

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

---

## [Client closed prematurely connection while reading client request line](https://www.ruby-forum.com/t/client-closed-prematurely-connection-while-reading-client-request-line/213136)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [October 25, 2011, 12:34am UTC](https://www.ruby-forum.com/t/client-closed-prematurely-connection-while-reading-client-request-line/213136 "2011-10-25T00:34:04Z")

</div>

Very basic configuration, strictly for serving static files. I’ve got the error\_log setting configured to “info” to get more information as to what’s happening with connections, etc. While monitoring the error log an…

---

## [Location not called properly](https://www.ruby-forum.com/t/location-not-called-properly/213098)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [October 24, 2011, 10:13pm UTC](https://www.ruby-forum.com/t/location-not-called-properly/213098 "2011-10-24T22:13:16Z")

</div>

Hi all, I’m trying to call a location of this format: location = /somedir/file1.php { try\_files @cache =404; } location = /anotherdir/file2.php { try\_files @cache =404; } location @cache { try\_files $uri =404…

---

## [Nginx displaying blank page, doesn't error](https://www.ruby-forum.com/t/nginx-displaying-blank-page-doesnt-error/213105)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [October 24, 2011, 7:45pm UTC](https://www.ruby-forum.com/t/nginx-displaying-blank-page-doesnt-error/213105 "2011-10-24T19:45:31Z")

</div>

So I’m attempting to move my OwnCloud instance from Apache to Nginx because I heard it was better on low-spec machines (the box is basically a recycled desktop from like 2004; P4 + 1GB of RAM ) I’ve always run OwnClou…

---

## [Client certificates from multiple CAs](https://www.ruby-forum.com/t/client-certificates-from-multiple-cas/213118)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [October 24, 2011, 5:33pm UTC](https://www.ruby-forum.com/t/client-certificates-from-multiple-cas/213118 "2011-10-24T17:33:39Z")

</div>

Is it possible to configure nginx to perform client certificate validation when the client certificates are generated by different CAs? I’ve seen that it’s rather easy when the client certificates are generated by onl…

---

## [Nginx: different content to specific request method](https://www.ruby-forum.com/t/nginx-different-content-to-specific-request-method/213126)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [October 24, 2011, 5:08pm UTC](https://www.ruby-forum.com/t/nginx-different-content-to-specific-request-method/213126 "2011-10-24T17:08:55Z")

</div>

Hey Guys, I have the image in the url (my server): http://www.example.com/example.jpg If my user put this image url on his site: return the image (normal). If my user put this image url on his browser: return redirec…

---

## [NGINX SMTP Proxy](https://www.ruby-forum.com/t/nginx-smtp-proxy/213121)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [October 24, 2011, 4:16pm UTC](https://www.ruby-forum.com/t/nginx-smtp-proxy/213121 "2011-10-24T16:16:59Z")

</div>

Hi, i already googled, but unfortanly i wasnt able to find a example for nginx smtp proxy configuration. i wanted to setup as a simple smtp proxy in front of a sendmail daemon. thanks! Juergen

---

## [Highest requests per second - what is considered top performance?](https://www.ruby-forum.com/t/highest-requests-per-second-what-is-considered-top-performance/213082)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 9\
**Last updated:** [October 23, 2011, 10:07pm UTC](https://www.ruby-forum.com/t/highest-requests-per-second-what-is-considered-top-performance/213082 "2011-10-23T22:07:23Z")

</div>

We’ve been running Nginx for sometime powering a fairly high traffic website. The single box, dual CPU (dual core) has been serving us well but its time to upgrade. I’ve got a new system configured, quad CPU (quad c…

---

## [Nginx rewrite: last & break](https://www.ruby-forum.com/t/nginx-rewrite-last-break/213012)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 11\
**Last updated:** [October 23, 2011, 5:32pm UTC](https://www.ruby-forum.com/t/nginx-rewrite-last-break/213012 "2011-10-23T17:32:49Z")

</div>

Hello, According to document: Module ngx\_http\_rewrite\_module It said “break - completes processing of rewrite directives and breakes location lookup cycle by not doing any location lookup and internal jump at all” H…

---

## [Funny ngy\_lua outcome](https://www.ruby-forum.com/t/funny-ngy-lua-outcome/213096)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [October 23, 2011, 4:20pm UTC](https://www.ruby-forum.com/t/funny-ngy-lua-outcome/213096 "2011-10-23T16:20:30Z")

</div>

SETUP CONF FILE server { location @proxy { access\_by\_lua\_file ‘/etc/nginx/firewall.lua’; proxy\_cache proxy.capture360.net; proxy\_pass http://127.0.0.1:8080; include /etc/nginx/proxy.default; } location /error\_do…

---

## [Please heeeeeeeeeelp meeeee](https://www.ruby-forum.com/t/please-heeeeeeeeeelp-meeeee/213090)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [October 23, 2011, 11:31am UTC](https://www.ruby-forum.com/t/please-heeeeeeeeeelp-meeeee/213090 "2011-10-23T11:31:57Z")

</div>

hey guys i installed nginx in my VPS (plesk) via this topic: http://www.grafxsoftware.com/faq.php/HOW-TO-configure-PLESK-with-NGinx-proxy-reverse/1/1/ every thing is ok but i see only apache 404 error page: http://ww…

---

## [HELP: ngx\_http\_token\_module compile failed](https://www.ruby-forum.com/t/help-ngx-http-token-module-compile-failed/213083)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [October 23, 2011, 9:07am UTC](https://www.ruby-forum.com/t/help-ngx-http-token-module-compile-failed/213083 "2011-10-23T09:07:37Z")

</div>

gcc -c -O -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Wunused-function -Wunused-variable -Wunused-value -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/include …

---

## [Ngx\_lua post data error/bug?](https://www.ruby-forum.com/t/ngx-lua-post-data-error-bug/213058)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [October 22, 2011, 8:31am UTC](https://www.ruby-forum.com/t/ngx-lua-post-data-error-bug/213058 "2011-10-22T08:31:49Z")

</div>

This is a follow on from: http://mailman.nginx.org/pipermail/nginx/2011-October/029905.html The conditional statements take care of the basic error but what happens is that when “post” requests match any of the test r…

---

## [Suggestions regarding number of connections](https://www.ruby-forum.com/t/suggestions-regarding-number-of-connections/213053)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [October 22, 2011, 4:12am UTC](https://www.ruby-forum.com/t/suggestions-regarding-number-of-connections/213053 "2011-10-22T04:12:28Z")

</div>

Currently we have a single Nginx web sever connecting to a pool of PHP app servers. The response from the application layer (PHP / DB) is excellent, but our site load times are not great. We’ve run some analytical t…

---

## [Lua\_need\_request\_body limitations?](https://www.ruby-forum.com/t/lua-need-request-body-limitations/213046)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [October 21, 2011, 5:32pm UTC](https://www.ruby-forum.com/t/lua-need-request-body-limitations/213046 "2011-10-21T17:32:54Z")

</div>

So I managed to get my config going smoothly with “GET” requests as outlined here: http://mailman.nginx.org/pipermail/nginx/2011-October/029901.html with this correction http://mailman.nginx.org/pipermail/nginx/2011-…

---

## [Ngx\_lua location capture issue](https://www.ruby-forum.com/t/ngx-lua-location-capture-issue/212942)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 21\
**Last updated:** [October 21, 2011, 4:27pm UTC](https://www.ruby-forum.com/t/ngx-lua-location-capture-issue/212942 "2011-10-21T16:27:45Z")

</div>

I tried to create the following scenario: Request test\_page.php lua exec to @checkpoint @checkpoint does capture location to test\_loc (future phpids) test\_loc/index.php returns either 200 or 403 status @checkpoint c…

---

## [Php\_info - fastcgi\_split\_path\_info - Not does not work](https://www.ruby-forum.com/t/php-info-fastcgi-split-path-info-not-does-not-work/213042)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [October 21, 2011, 3:15pm UTC](https://www.ruby-forum.com/t/php-info-fastcgi-split-path-info-not-does-not-work/213042 "2011-10-21T15:15:17Z")

</div>

I am having trouble setting the PATH\_INFO I want accessing thus: http://www.examples.com/test.php/images/test/000001 LOGS 2011/10/20 15:54:51 \[error\] 76110#0: \*1 open() “/var/www1/examples.com/test.php/dddd/eeee” fa…

---

## [How to control access for specific IP-addresses of clients when using as mail proxy](https://www.ruby-forum.com/t/how-to-control-access-for-specific-ip-addresses-of-clients-when-using-as-mail-proxy/212958)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [October 21, 2011, 9:40am UTC](https://www.ruby-forum.com/t/how-to-control-access-for-specific-ip-addresses-of-clients-when-using-as-mail-proxy/212958 "2011-10-21T09:40:18Z")

</div>

Hi, I am running nginx 1.0.8 for mail proxy , and I would like to add access control feature(by IP address) to this proxy. For HTTP, there is http access module for this purpose, however mail module doesn’t seem to h…

---

## [Nginx with custom modules crashes in gzip crc32()](https://www.ruby-forum.com/t/nginx-with-custom-modules-crashes-in-gzip-crc32/212891)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [October 20, 2011, 1:17pm UTC](https://www.ruby-forum.com/t/nginx-with-custom-modules-crashes-in-gzip-crc32/212891 "2011-10-20T13:17:58Z")

</div>

I have nginx with my custom module, that rewrite content on some conditions. Without it everything works fine, but after enabling it, nginx start to crash approx. every 2 hours ( \> 100 req./sec) coredump shows that it…

---

## [Difference between request \_time vs upstream\_response\_time](https://www.ruby-forum.com/t/difference-between-request-time-vs-upstream-response-time/213002)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [October 20, 2011, 12:00pm UTC](https://www.ruby-forum.com/t/difference-between-request-time-vs-upstream-response-time/213002 "2011-10-20T12:00:48Z")

</div>

As per my understanding upstream\_response\_time is subset of request\_time. request\_time : This shows how long Nginx dealt with the request upstream\_response\_time: Gives us the time it took our upstream server (in this…

---

## [Nginx Connections dipped on reload](https://www.ruby-forum.com/t/nginx-connections-dipped-on-reload/213000)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [October 20, 2011, 11:48am UTC](https://www.ruby-forum.com/t/nginx-connections-dipped-on-reload/213000 "2011-10-20T11:48:55Z")

</div>

Our Setup: We are using Nginx as load balancer and using ip\_hash Two backend nodes with each can accept ‘x’ connections and Nginx connections are ‘2x’ Yesterday we had huge traffic so decided to increase backed node …

---

## [Nginx crash - possibly keepalives](https://www.ruby-forum.com/t/nginx-crash-possibly-keepalives/212731)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 8\
**Last updated:** [October 20, 2011, 12:12am UTC](https://www.ruby-forum.com/t/nginx-crash-possibly-keepalives/212731 "2011-10-20T00:12:46Z")

</div>

Hi all, After turning on keepalives, we’ve been seeing one crash pretty consistently. We’re running nginx 1.1.5 and here is the backtrace : (gdb) bt #0 ngx\_write\_chain\_to\_file (file=0x173dbd0, cl=0x0, offset=26779, …

---

## [Poor load balancer performance on rackspace and centos](https://www.ruby-forum.com/t/poor-load-balancer-performance-on-rackspace-and-centos/212981)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [October 19, 2011, 11:20pm UTC](https://www.ruby-forum.com/t/poor-load-balancer-performance-on-rackspace-and-centos/212981 "2011-10-19T23:20:23Z")

</div>

I am load testing different options for load balancing, and am getting poor results from Nginx, haproxy, and varnish. I have one 4GB instance at Rackspace, hitting 4x1GB app servers. I’m hitting a url called “/slow” w…

---

## [CentOS 5 - NGiNX - AIO](https://www.ruby-forum.com/t/centos-5-nginx-aio/178796)

<div class="topic-metadata">

**Author:** [@InterNetXSJuergen](https://www.ruby-forum.com/u/InterNetXSJuergen)\
**Replies:** 18\
**Last updated:** [October 19, 2011, 8:40pm UTC](https://www.ruby-forum.com/t/centos-5-nginx-aio/178796 "2011-10-19T20:40:06Z")

</div>

Hello Folks, is it possible to use NGINX AIO on CentOS5, or is the CentOS5 Kernel too old for this? Greetings Juergen

---

## [Having trouble understand how rewrite works](https://www.ruby-forum.com/t/having-trouble-understand-how-rewrite-works/212976)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 9\
**Last updated:** [October 19, 2011, 7:08pm UTC](https://www.ruby-forum.com/t/having-trouble-understand-how-rewrite-works/212976 "2011-10-19T19:08:25Z")

</div>

Here’s a small sample that is not working: server { # /index.cfm?PageID=1 → / location ^~ /index.cfm?PageID=1$ { rewrite ^ / permanent; } location / { try\_files $uri @django; } location @d…

---

## [Regex do not match](https://www.ruby-forum.com/t/regex-do-not-match/212977)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [October 19, 2011, 6:08pm UTC](https://www.ruby-forum.com/t/regex-do-not-match/212977 "2011-10-19T18:08:22Z")

</div>

Hello, can someone please help me and tell me why this regex location ~ /(.)/wp-content(/.) { \[…\] } does not match this URL http://www.mysite.com/mydir/wp-content/my\_image/foo.jpg ? I just have this other directive…

---

## [Gzip "stream" content?](https://www.ruby-forum.com/t/gzip-stream-content/212973)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [October 19, 2011, 5:50pm UTC](https://www.ruby-forum.com/t/gzip-stream-content/212973 "2011-10-19T17:50:25Z")

</div>

Hi there, Is it possible to apply gzip encoding to output from an upstream? How about one which is sending a stream of data? Or does it only work on static or fixed-size objects? Thanks, Igor

---

## [Nginx-1.1.6](https://www.ruby-forum.com/t/nginx-1-1-6/212907)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [October 19, 2011, 11:57am UTC](https://www.ruby-forum.com/t/nginx-1-1-6/212907 "2011-10-19T11:57:34Z")

</div>

Changes with nginx 1.1.6 17 Oct 2011 \*) Change in internal API: now module context data are cleared while internal redirect to named location. Requested by Yichun Z.. \*) C…

---

## [Passing $geoip variables ( $geoip\_city\_country\_code ) via proxy\_set\_header not working](https://www.ruby-forum.com/t/passing-geoip-variables-geoip-city-country-code-via-proxy-set-header-not-working/212924)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [October 18, 2011, 6:54pm UTC](https://www.ruby-forum.com/t/passing-geoip-variables-geoip-city-country-code-via-proxy-set-header-not-working/212924 "2011-10-18T18:54:10Z")

</div>

Hello, We’ve come across a problem with trying to pass $geoip\_city\_country\_code (and all of the other $geoip\_ variables) to an upstream via proxy\_set\_header. The geoip module is configured correctly and working. We …

---

## [Help on rewrite rule](https://www.ruby-forum.com/t/help-on-rewrite-rule/212917)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [October 17, 2011, 10:48pm UTC](https://www.ruby-forum.com/t/help-on-rewrite-rule/212917 "2011-10-17T22:48:51Z")

</div>

Hi, I’m fairly new when it comes to nginx and would like to basically rewrite the following: /main.php → index.php Can someone please give me an example how to do this? Thanks Posted at Nginx Forum:

---

## [Re: multiple add\_header directives in different contexts](https://www.ruby-forum.com/t/re-multiple-add-header-directives-in-different-contexts/212896)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [October 17, 2011, 3:21pm UTC](https://www.ruby-forum.com/t/re-multiple-add-header-directives-in-different-contexts/212896 "2011-10-17T15:21:47Z")

</div>

I had found the headers more module but was trying to avoid a recompile. Looks like I will have to though. Thanks for the help.

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

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