# Server

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

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

---

## [Upstream timeout issue](https://www.ruby-forum.com/t/upstream-timeout-issue/201528)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [January 11, 2011, 9:25am UTC](https://www.ruby-forum.com/t/upstream-timeout-issue/201528 "2011-01-11T09:25:04Z")

</div>

I setup an upstream configuration with only one server for now, i will add a new one in a while. im experiencing a strange error now and then when users are uploading files to a form they get sometimes in the browser…

---

## [Limiting proxy caching based on content size](https://www.ruby-forum.com/t/limiting-proxy-caching-based-on-content-size/201592)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [January 11, 2011, 8:20am UTC](https://www.ruby-forum.com/t/limiting-proxy-caching-based-on-content-size/201592 "2011-01-11T08:20:27Z")

</div>

Hi, I’m wondering if I’m missing something obvious in the documentation, but it doesn’t appear to me like it’s possible to tell the cache to not cache something if the size of the content is too big. For example, wou…

---

## [Dose nginx support -HUP in single process mode? (Bug)](https://www.ruby-forum.com/t/dose-nginx-support-hup-in-single-process-mode-bug/201583)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [January 11, 2011, 6:35am UTC](https://www.ruby-forum.com/t/dose-nginx-support-hup-in-single-process-mode-bug/201583 "2011-01-11T06:35:47Z")

</div>

Hi all, dose nginx support -HUP to reload configure in single process mode? It seems that it does support in the code: ‘src/os/unix/ngx\_process.c:ngx\_signal\_handler()’. However I think there is a bug when kill HUP to…

---

## [Proxy\_cache\_bypass with ssi caches template](https://www.ruby-forum.com/t/proxy-cache-bypass-with-ssi-caches-template/201562)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [January 11, 2011, 2:36am UTC](https://www.ruby-forum.com/t/proxy-cache-bypass-with-ssi-caches-template/201562 "2011-01-11T02:36:44Z")

</div>

Hi everyone, I’ve been struggling with this for some time now trying to drop varnish in favor for nginx. Server: nginx/0.8.54 quick peek on problem - SSI on; proxy\_cache\_bypass caches backend response as regular htm…

---

## [Sub-request using Parent Request Body](https://www.ruby-forum.com/t/sub-request-using-parent-request-body/201270)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 14\
**Last updated:** [January 10, 2011, 8:38pm UTC](https://www.ruby-forum.com/t/sub-request-using-parent-request-body/201270 "2011-01-10T20:38:55Z")

</div>

Hello, I’m trying to make POST analyzer module. To have ability with SPAM detection for passing throw traffic, for this I need to have request\_body in subrequest, for that I took agentzh / nginx-eval-module and af…

---

## [Logging a variable in a location?](https://www.ruby-forum.com/t/logging-a-variable-in-a-location/201557)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [January 10, 2011, 6:27pm UTC](https://www.ruby-forum.com/t/logging-a-variable-in-a-location/201557 "2011-01-10T18:27:02Z")

</div>

Is there a way to log arbitrary text and the value of a variable in a location directive? If so, how? e.g. The URI is $uri – Robert La Ferla VP Engineering OMS SafeHarbor This message (and any attachments) cont…

---

## [(11: Resource temporarily unavailable)](https://www.ruby-forum.com/t/11-resource-temporarily-unavailable/201519)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [January 10, 2011, 5:36pm UTC](https://www.ruby-forum.com/t/11-resource-temporarily-unavailable/201519 "2011-01-10T17:36:43Z")

</div>

Hello everybody, I have been doing some debugging and I saw messages like below from each request. . 2011/01/09 16:01:25 \[debug\] 26532#0: \*29 http keepalive handler 2011/01/09 16:01:25 \[debug\] 26532#0: \*29 malloc: 08…

---

## [Worker process exited on signal 7](https://www.ruby-forum.com/t/worker-process-exited-on-signal-7/201439)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [January 10, 2011, 5:19pm UTC](https://www.ruby-forum.com/t/worker-process-exited-on-signal-7/201439 "2011-01-10T17:19:46Z")

</div>

Hello everyone, I started to use nginx insted of lighttpd for a few days ago. It serves only static content (thumbnail pictures) and performs well, but yesterday it stopped working, and I got the following messages on…

---

## [Nginx upstream backend view requests](https://www.ruby-forum.com/t/nginx-upstream-backend-view-requests/201140)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [January 10, 2011, 9:52am UTC](https://www.ruby-forum.com/t/nginx-upstream-backend-view-requests/201140 "2011-01-10T09:52:46Z")

</div>

hi! is there a way to see how many requests load balance upstream serves to specific hosts? thanks Posted at Nginx Forum:

---

## [Is it possible to populate $geoip\_country from another value in the header?](https://www.ruby-forum.com/t/is-it-possible-to-populate-geoip-country-from-another-value-in-the-header/201522)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [January 10, 2011, 4:38am UTC](https://www.ruby-forum.com/t/is-it-possible-to-populate-geoip-country-from-another-value-in-the-header/201522 "2011-01-10T04:38:32Z")

</div>

Hi, we may have a situation where NGINX is behind a load-balancer that cloaks all source-IPs with its own. However, the original source-IP is conserved in a header. Would it be possible to populate the geoip\_country…

---

## [Compile NGINX with Visual C++](https://www.ruby-forum.com/t/compile-nginx-with-visual-c/201521)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [January 10, 2011, 4:36am UTC](https://www.ruby-forum.com/t/compile-nginx-with-visual-c/201521 "2011-01-10T04:36:02Z")

</div>

Hello, how can I compile nginx with visual c++ or with windows sdk ? Posted at Nginx Forum:

---

## [Apache Tomcat performance](https://www.ruby-forum.com/t/apache-tomcat-performance/201212)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [January 10, 2011, 3:52am UTC](https://www.ruby-forum.com/t/apache-tomcat-performance/201212 "2011-01-10T03:52:14Z")

</div>

Hi, I’m a newbie on Nginx and I became interested in it because Apache 2 is so wasteful with resources. However, Nginx seems a lot slower than Apache. It takes about 3 seconds to return a request even when I’m within…

---

## [Managing static file generated by PHP CMS](https://www.ruby-forum.com/t/managing-static-file-generated-by-php-cms/201398)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [January 10, 2011, 1:08am UTC](https://www.ruby-forum.com/t/managing-static-file-generated-by-php-cms/201398 "2011-01-10T01:08:56Z")

</div>

Hello everybody, I am looking for suggestions to accomplish what I would like to achieve. Suppose we have a PHP based CMS which could generate a static file copy of a HTML page, every time nginx access it via fastcgi.…

---

## [Am I using proxy\_cache correctly?](https://www.ruby-forum.com/t/am-i-using-proxy-cache-correctly/201511)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [January 9, 2011, 6:03pm UTC](https://www.ruby-forum.com/t/am-i-using-proxy-cache-correctly/201511 "2011-01-09T18:03:09Z")

</div>

Hi all, I’m trying to make sure that I have my disk caching set up properly for a specific subdomain under nginx. Here’s what I have in my nginx.conf: proxy\_cache\_path /opt/nstein/cache levels=1:2 keys\_zone=CACHE:100…

---

## [CDN questions](https://www.ruby-forum.com/t/cdn-questions/201474)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [January 9, 2011, 6:37am UTC](https://www.ruby-forum.com/t/cdn-questions/201474 "2011-01-09T06:37:35Z")

</div>

At this time we’re delivering static content, in particular, audio files ~5K in size directly through our server, for a number of reasons, we’re looking at moving delivery of these files to a remote storage / CDN fac…

---

## [Flowplayer + pseudostreaming + h264/h643 + nginx](https://www.ruby-forum.com/t/flowplayer-pseudostreaming-h264-h643-nginx/201469)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [January 8, 2011, 10:07pm UTC](https://www.ruby-forum.com/t/flowplayer-pseudostreaming-h264-h643-nginx/201469 "2011-01-08T22:07:09Z")

</div>

Any suggestions ? → http://flowplayer.org/forum/2/56928 Posted at Nginx Forum:

---

## [Block x requests per second](https://www.ruby-forum.com/t/block-x-requests-per-second/201466)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [January 8, 2011, 8:13pm UTC](https://www.ruby-forum.com/t/block-x-requests-per-second/201466 "2011-01-08T20:13:12Z")

</div>

Is there a way to block a host if it makes too many requests per second? Thanks!

---

## [Gzip causing high cpu load for streaming traffic](https://www.ruby-forum.com/t/gzip-causing-high-cpu-load-for-streaming-traffic/201476)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [January 8, 2011, 4:14am UTC](https://www.ruby-forum.com/t/gzip-causing-high-cpu-load-for-streaming-traffic/201476 "2011-01-08T04:14:20Z")

</div>

Ok this is weird I noticed tonight high CPU load on two out of three of our stream servers, which are serving mp4 and flv via the pseudo streaming modules. After investigating the differences between the two high CPU …

---

## [Quick question about try\_files](https://www.ruby-forum.com/t/quick-question-about-try-files/201461)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [January 8, 2011, 2:18am UTC](https://www.ruby-forum.com/t/quick-question-about-try-files/201461 "2011-01-08T02:18:26Z")

</div>

Hello, all. nginx version: nginx/0.7.67 This works great to look first in fast local storage, and then fall back to slower storage for older archives: location ^~ /providers/ { error\_page 404 = @archives; log\_no…

---

## [Merge two location site to 1 location](https://www.ruby-forum.com/t/merge-two-location-site-to-1-location/201449)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [January 7, 2011, 6:13pm UTC](https://www.ruby-forum.com/t/merge-two-location-site-to-1-location/201449 "2011-01-07T18:13:20Z")

</div>

Now i’ll write two sections of location as follow: location =/aaa{} location =/BBB{} But I want to write the two sections to one location? eg. location =/\[aaa,BBB\]{} , but it’s wrong, and does someone know how to…

---

## [Ngx\_lua v0.1.1: access\_by\_lua and access\_by\_lua\_file landed](https://www.ruby-forum.com/t/ngx-lua-v0-1-1-access-by-lua-and-access-by-lua-file-landed/201442)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [January 7, 2011, 12:45pm UTC](https://www.ruby-forum.com/t/ngx-lua-v0-1-1-access-by-lua-and-access-by-lua-file-landed/201442 "2011-01-07T12:45:22Z")

</div>

Hi, folks! After the first public release of ngx\_lua, I’m proud to annouce the v0.1.1 version, which has introduced the access\_by\_lua and access\_by\_lua\_file directives: https://github.com/chaoslawful/lua-nginx-module…

---

## [Symlink in nginx problem](https://www.ruby-forum.com/t/symlink-in-nginx-problem/201436)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [January 7, 2011, 8:36am UTC](https://www.ruby-forum.com/t/symlink-in-nginx-problem/201436 "2011-01-07T08:36:42Z")

</div>

I use symlink in my perl script. e.p. symlink("$c-\>{upload\_dir}/$dx/$file\_code","$c-\>{htdocs\_dir}/$rand/$file\_name") || &Send("ERROR:sym\_create\_failed"); It runs smooth in apache.But it aways get 500 or 504 in nginx. …

---

## [Charset\_map don't support cp936?](https://www.ruby-forum.com/t/charset-map-dont-support-cp936/201371)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [January 7, 2011, 2:46am UTC](https://www.ruby-forum.com/t/charset-map-dont-support-cp936/201371 "2011-01-07T02:46:31Z")

</div>

My Nginx/Windows 0.8 running win2003 chinese edition. My files named used chinese. like http://localhost/中文目录/中文文件.rar 。 If use IE and firefox with encode gb2312 you can downloaded chinese named files，but if use utf…

---

## [How to set expection when using limit\_conn?](https://www.ruby-forum.com/t/how-to-set-expection-when-using-limit-conn/201426)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [January 7, 2011, 1:42am UTC](https://www.ruby-forum.com/t/how-to-set-expection-when-using-limit-conn/201426 "2011-01-07T01:42:05Z")

</div>

i want to use limit\_conn to let all remote address user maximum 1 connection. I also want to let list of private port have unlimit connection. how do i do that? here is my sample conf: limit\_zone remote\_addr…

---

## [Proxy\_set\_header at http level](https://www.ruby-forum.com/t/proxy-set-header-at-http-level/201341)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [January 6, 2011, 3:56pm UTC](https://www.ruby-forum.com/t/proxy-set-header-at-http-level/201341 "2011-01-06T15:56:37Z")

</div>

Hi all, Although the documentation ( Module ngx\_http\_proxy\_module) says the context of proxy\_set\_header can be http, server, location，we found that proxy\_set\_header directive at http level does not work. When moved…

---

## [Nginx 0.7.67 and 0.7.68 core dump on Solaris 10 - not in executable format: File format not recogniz](https://www.ruby-forum.com/t/nginx-0-7-67-and-0-7-68-core-dump-on-solaris-10-not-in-executable-format-file-format-not-recogniz/201294)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [January 6, 2011, 2:37pm UTC](https://www.ruby-forum.com/t/nginx-0-7-67-and-0-7-68-core-dump-on-solaris-10-not-in-executable-format-file-format-not-recogniz/201294 "2011-01-06T14:37:53Z")

</div>

Our nginx server is dumping core but I can’t debug the core file. Ideas? GNU gdb 6.8 Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html Thi…

---

## [Redirect old domain to new domain](https://www.ruby-forum.com/t/redirect-old-domain-to-new-domain/201380)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [January 6, 2011, 11:02am UTC](https://www.ruby-forum.com/t/redirect-old-domain-to-new-domain/201380 "2011-01-06T11:02:42Z")

</div>

Hi, I have an old domain & new domain, let’s call the old domain is www.olddomain.com and the new one is www.newdomain.com. Yesterday, I’ve register the new domain (www.newdomain.com), but, the olddomain.com still ac…

---

## [Ngx\_lua v0.1.0: scripting nginx with Lua](https://www.ruby-forum.com/t/ngx-lua-v0-1-0-scripting-nginx-with-lua/201381)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [January 6, 2011, 10:28am UTC](https://www.ruby-forum.com/t/ngx-lua-v0-1-0-scripting-nginx-with-lua/201381 "2011-01-06T10:28:08Z")

</div>

Hi, folks! I’m happy to announce the first public release of the ngx\_lua module, v0.1.0: https://github.com/chaoslawful/lua-nginx-module/tarball/v0.1.0 ngx\_lua This module embeds the Lua/LuaJIT interpreter into the n…

---

## [Sendfile EAGAIN support broken?](https://www.ruby-forum.com/t/sendfile-eagain-support-broken/200918)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 6\
**Last updated:** [January 6, 2011, 10:21am UTC](https://www.ruby-forum.com/t/sendfile-eagain-support-broken/200918 "2011-01-06T10:21:51Z")

</div>

I’ve been trying figure out a problem we are seeing in passenger module where by the full POST data isnt passed to the underlying application. After much digging I believe this may actually be a problem with the http\_…

---

## [Error: can not define uint64\_t when running ./configure](https://www.ruby-forum.com/t/error-can-not-define-uint64-t-when-running-configure/179477)

<div class="topic-metadata">

**Author:** [@ppragin](https://www.ruby-forum.com/u/ppragin)\
**Replies:** 3\
**Last updated:** [January 6, 2011, 8:38am UTC](https://www.ruby-forum.com/t/error-can-not-define-uint64-t-when-running-configure/179477 "2011-01-06T08:38:47Z")

</div>

I am trying to build ngnix-0.7.64 on CentOS release 5.2 64bit. I am getting this error when running ./configure. I am not able to find anything on google. Please help. ./configure checking for OS Linux 2.6.18-92.1.…

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

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