# Server

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

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

---

## [Embed Nginx as a static library with C++ application](https://www.ruby-forum.com/t/embed-nginx-as-a-static-library-with-c-application/184075)

<div class="topic-metadata">

**Author:** [@rahul123](https://www.ruby-forum.com/u/rahul123)\
**Replies:** 1\
**Last updated:** [February 26, 2010, 12:59pm UTC](https://www.ruby-forum.com/t/embed-nginx-as-a-static-library-with-c-application/184075 "2010-02-26T12:59:18Z")

</div>

Hi, I wish to embed Nginx as a static library with my C++ application. Whether Nginx will support work on both Windows and Linux. I tried to download the Nginx source and I can only Nginx.exe and have steps to run t…

---

## [Ip\_hash clarification](https://www.ruby-forum.com/t/ip-hash-clarification/184149)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [February 25, 2010, 7:58pm UTC](https://www.ruby-forum.com/t/ip-hash-clarification/184149 "2010-02-25T19:58:03Z")

</div>

Hi, i need details regarding ip\_hash… if i have client IP1: 192.168.1.1 and client IP2: 192.168.1.2 and I have 2 servers on the upstream… s1 and s1… with IP\_Hash configured if client IP1 accesses the site it will go…

---

## [\[problem\] mongrel\_cluster and rack 1.0.1](https://www.ruby-forum.com/t/problem-mongrel-cluster-and-rack-1-0-1/184132)

<div class="topic-metadata">

**Author:** [@typedef](https://www.ruby-forum.com/u/typedef)\
**Replies:** 0\
**Last updated:** [February 25, 2010, 4:31pm UTC](https://www.ruby-forum.com/t/problem-mongrel-cluster-and-rack-1-0-1/184132 "2010-02-25T16:31:50Z")

</div>

Hi ! I’m trying to run redmine 0.9.2 (it requires rack 1.0.1) with a mongrel\_cluster. If I run ruby script/server webrick -e production -p 3000, everything is ok, redmine runs. But if I try with mongrel with appropr…

---

## [Question about access\_log buffer size](https://www.ruby-forum.com/t/question-about-access-log-buffer-size/184108)

<div class="topic-metadata">

**Author:** [@yong\_xue](https://www.ruby-forum.com/u/yong_xue)\
**Replies:** 2\
**Last updated:** [February 25, 2010, 4:04pm UTC](https://www.ruby-forum.com/t/question-about-access-log-buffer-size/184108 "2010-02-25T16:04:27Z")

</div>

hi,all The access\_log directive sets the path, format and buffer size for the access log file. Using “off” as the only parameter clears all access\_log directives for the current level. If the format is not indicated,…

---

## [How to wait for upstream server to start](https://www.ruby-forum.com/t/how-to-wait-for-upstream-server-to-start/184020)

<div class="topic-metadata">

**Author:** [@kevin\_gill](https://www.ruby-forum.com/u/kevin_gill)\
**Replies:** 4\
**Last updated:** [February 24, 2010, 10:35pm UTC](https://www.ruby-forum.com/t/how-to-wait-for-upstream-server-to-start/184020 "2010-02-24T22:35:39Z")

</div>

I am running a low traffic site using nginx. I use one upstream multi-threadded server to serve the content. I use the proxy module to forward the requests. Occasionally, I need to restart the upstream server. I takes…

---

## [Nginx and mozilla weave](https://www.ruby-forum.com/t/nginx-and-mozilla-weave/184063)

<div class="topic-metadata">

**Author:** [@Alfafa](https://www.ruby-forum.com/u/Alfafa)\
**Replies:** 0\
**Last updated:** [February 24, 2010, 2:42pm UTC](https://www.ruby-forum.com/t/nginx-and-mozilla-weave/184063 "2010-02-24T14:42:44Z")

</div>

Hi I’ve had the mozilla weave server running on lighttpd(with fastcgi) before and have som problems getting it to work on nginx I have checked that I can get it to pass the .php pages to the php-fastcgi I think it i…

---

## [Cache static content in memory](https://www.ruby-forum.com/t/cache-static-content-in-memory/169056)

<div class="topic-metadata">

**Author:** [@nfn](https://www.ruby-forum.com/u/nfn)\
**Replies:** 13\
**Last updated:** [February 24, 2010, 6:07am UTC](https://www.ruby-forum.com/t/cache-static-content-in-memory/169056 "2010-02-24T06:07:33Z")

</div>

Hi, I’m using nginx with apache2 + mod\_php. Php pages are proxied to apache and nginx handles all static files (css, js, png, jpg, gif). I have lots of small files (forum design + smilies) … Can nginx cache theses f…

---

## [Issue with 3rd-party memc and eval modules](https://www.ruby-forum.com/t/issue-with-3rd-party-memc-and-eval-modules/183545)

<div class="topic-metadata">

**Author:** [@mflive](https://www.ruby-forum.com/u/mflive)\
**Replies:** 17\
**Last updated:** [February 24, 2010, 5:26am UTC](https://www.ruby-forum.com/t/issue-with-3rd-party-memc-and-eval-modules/183545 "2010-02-24T05:26:35Z")

</div>

Hi, There is an issue with the 3rd-party memc module for Nginx 1 where it doesn’t close the connection when it resides in an eval 2 block. Consider the following with memc in eval: eval $memc\_return { set …

---

## [Use variable instead of flag for modules](https://www.ruby-forum.com/t/use-variable-instead-of-flag-for-modules/183999)

<div class="topic-metadata">

**Author:** [@Matthieu\_T](https://www.ruby-forum.com/u/Matthieu_T)\
**Replies:** 1\
**Last updated:** [February 23, 2010, 9:51pm UTC](https://www.ruby-forum.com/t/use-variable-instead-of-flag-for-modules/183999 "2010-02-23T21:51:42Z")

</div>

Hi, I’m currently developing a filter module, and I want to activate it based on certain conditions. The problem is that the flag is read when the configuration is parsed, and putting my\_module off; inside an if s…

---

## [Upload module + PHP causes active connections to continually increase](https://www.ruby-forum.com/t/upload-module-php-causes-active-connections-to-continually-increase/181704)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [February 23, 2010, 9:17pm UTC](https://www.ruby-forum.com/t/upload-module-php-causes-active-connections-to-continually-increase/181704 "2010-02-23T21:17:45Z")

</div>

Hi all, I’m developing a site using the upload module v2.0.11 ( from http://www.grid.net.ru/nginx/upload.en.html ) and just turned on the Stub Status module. I noticed that each time I send an upload form, the “activ…

---

## [FLV streaming module - incorrect byte transfer totals?](https://www.ruby-forum.com/t/flv-streaming-module-incorrect-byte-transfer-totals/184007)

<div class="topic-metadata">

**Author:** [@Kon\_W](https://www.ruby-forum.com/u/Kon_W)\
**Replies:** 0\
**Last updated:** [February 23, 2010, 8:06pm UTC](https://www.ruby-forum.com/t/flv-streaming-module-incorrect-byte-transfer-totals/184007 "2010-02-23T20:06:52Z")

</div>

I’m using 0.7.65 with the default flv streaming module and doing some tests on a video clip using flowplayer (latest rev) with the lighttpd module. The player is functioning correctly but the logs are showing some str…

---

## [Connections directive in the events module](https://www.ruby-forum.com/t/connections-directive-in-the-events-module/183984)

<div class="topic-metadata">

**Author:** [@Manlio\_P](https://www.ruby-forum.com/u/Manlio_P)\
**Replies:** 0\
**Last updated:** [February 23, 2010, 1:25pm UTC](https://www.ruby-forum.com/t/connections-directive-in-the-events-module/183984 "2010-02-23T13:25:20Z")

</div>

Hi. The connections directive in the events module has been replaced by the worker\_connections directive. However I have noted that the old connections directive has not been deprecated. What is the reason? Thanks …

---

## [Bad permissions in /var/log/nginx after logs are rotated](https://www.ruby-forum.com/t/bad-permissions-in-var-log-nginx-after-logs-are-rotated/183974)

<div class="topic-metadata">

**Author:** [@Juan\_FcoSGiordana](https://www.ruby-forum.com/u/Juan_FcoSGiordana)\
**Replies:** 1\
**Last updated:** [February 23, 2010, 11:45am UTC](https://www.ruby-forum.com/t/bad-permissions-in-var-log-nginx-after-logs-are-rotated/183974 "2010-02-23T11:45:15Z")

</div>

Hello, I’m using daemontools to run nginx \[1\] and I’m experiencing the following problem when I send the USR1 signal to rotate the logs with another script \[2\]: The problem is that after sending the USR1 signal to ng…

---

## [Limit\_conn/limit\_req, side effect, need help](https://www.ruby-forum.com/t/limit-conn-limit-req-side-effect-need-help/183970)

<div class="topic-metadata">

**Author:** [@GerMalaz](https://www.ruby-forum.com/u/GerMalaz)\
**Replies:** 0\
**Last updated:** [February 23, 2010, 9:37am UTC](https://www.ruby-forum.com/t/limit-conn-limit-req-side-effect-need-help/183970 "2010-02-23T09:37:04Z")

</div>

In nginx.conf limit\_zone xxxxxx $binary\_remote\_addr 1M; limit\_req\_zone $binary\_remote\_addr zone=xxxxxx\_freq:1M rate=30r/m; In site definition limit\_conn xxxxxx 3; limit\_req zone=xxxxxx\_freq burst=1 nodelay; …

---

## [Turning off access\_logs for Load Balancer TCP port checks](https://www.ruby-forum.com/t/turning-off-access-logs-for-load-balancer-tcp-port-checks/183889)

<div class="topic-metadata">

**Author:** [@Zev\_B](https://www.ruby-forum.com/u/Zev_B)\
**Replies:** 4\
**Last updated:** [February 23, 2010, 8:56am UTC](https://www.ruby-forum.com/t/turning-off-access-logs-for-load-balancer-tcp-port-checks/183889 "2010-02-23T08:56:05Z")

</div>

Hello, We have load balancers that are doing port checks on our NGINX servers. Each of these checks creates an entry in our log file like this: 10.0.0.58 - - \[22/Feb/2010:18:50:21 +0900\] “-” 400 0 “-” “-” 0.000 “-” “…

---

## [Nginx-error.log hardcoded?](https://www.ruby-forum.com/t/nginx-error-log-hardcoded/183962)

<div class="topic-metadata">

**Author:** [@Edho\_P\_Arief](https://www.ruby-forum.com/u/Edho_P_Arief)\
**Replies:** 0\
**Last updated:** [February 23, 2010, 5:01am UTC](https://www.ruby-forum.com/t/nginx-error-log-hardcoded/183962 "2010-02-23T05:01:25Z")

</div>

I noticed despite having set error\_log /path/to/error.log, whenever I signal my nginx process either with “nginx -c /path/to/nginx.conf -s reload” or “kill -HUP \<pid\_of\_nginx\_master\>”, it writes log to error log file …

---

## [Nginx modules reference guide](https://www.ruby-forum.com/t/nginx-modules-reference-guide/183934)

<div class="topic-metadata">

**Author:** [@Manlio\_P](https://www.ruby-forum.com/u/Manlio_P)\
**Replies:** 0\
**Last updated:** [February 22, 2010, 8:29pm UTC](https://www.ruby-forum.com/t/nginx-modules-reference-guide/183934 "2010-02-22T20:29:15Z")

</div>

Hi all. I have started to write a complete reference to all modules available in Nginx. It is a simple cut and paste from Nginx source code; I have tried to document the type of modules available and their relations. …

---

## [Best-effort sticky sessions](https://www.ruby-forum.com/t/best-effort-sticky-sessions/183915)

<div class="topic-metadata">

**Author:** [@gnosek](https://www.ruby-forum.com/u/gnosek)\
**Replies:** 2\
**Last updated:** [February 22, 2010, 5:18pm UTC](https://www.ruby-forum.com/t/best-effort-sticky-sessions/183915 "2010-02-22T17:18:58Z")

</div>

Hi all, I’m trying to implement sticky sessions with Nginx 0.7.65 (basically vanilla, regarding HTTP support) and I need something better than ip\_hash. When a backend is reported as down (the haproxy that Nginx is pr…

---

## [Please add "application/x-7z-compressed" to conf/mime.types](https://www.ruby-forum.com/t/please-add-application-x-7z-compressed-to-conf-mime-types/183895)

<div class="topic-metadata">

**Author:** [@agnathan](https://www.ruby-forum.com/u/agnathan)\
**Replies:** 0\
**Last updated:** [February 22, 2010, 12:08pm UTC](https://www.ruby-forum.com/t/please-add-application-x-7z-compressed-to-conf-mime-types/183895 "2010-02-22T12:08:10Z")

</div>

Hi, please add “application/x-7z-compressed 7z;” to conf/mime.types. Thanks, Daniel – http://daniel.hahler.de/

---

## [How can I write a module that overwrite user header\_in](https://www.ruby-forum.com/t/how-can-i-write-a-module-that-overwrite-user-header-in/183881)

<div class="topic-metadata">

**Author:** [@wuent](https://www.ruby-forum.com/u/wuent)\
**Replies:** 0\
**Last updated:** [February 22, 2010, 9:37am UTC](https://www.ruby-forum.com/t/how-can-i-write-a-module-that-overwrite-user-header-in/183881 "2010-02-22T09:37:43Z")

</div>

I want to write a write a module that can intercept user requests,and then overwrite header\_in. The fastcgi can get the modified requests. And how the config file writing? Posted at Nginx Forum:

---

## [Nginx crashing with sigtimedwait in error logs](https://www.ruby-forum.com/t/nginx-crashing-with-sigtimedwait-in-error-logs/183837)

<div class="topic-metadata">

**Author:** [@mindfrost82](https://www.ruby-forum.com/u/mindfrost82)\
**Replies:** 0\
**Last updated:** [February 21, 2010, 3:17pm UTC](https://www.ruby-forum.com/t/nginx-crashing-with-sigtimedwait-in-error-logs/183837 "2010-02-21T15:17:58Z")

</div>

My nginx server has crashed about 4 times over the past 2 days. MySQL, php-cgi, etc continues to run, just the nginx server itself crashes. When I look in the nginx error logs, I see this line when it crashes: sigtim…

---

## [How to rewrite these](https://www.ruby-forum.com/t/how-to-rewrite-these/183732)

<div class="topic-metadata">

**Author:** [@Glen\_L](https://www.ruby-forum.com/u/Glen_L)\
**Replies:** 23\
**Last updated:** [February 21, 2010, 9:43am UTC](https://www.ruby-forum.com/t/how-to-rewrite-these/183732 "2010-02-21T09:43:10Z")

</div>

Hi Nginx, I’m migrating my website into onother application. I need to rewrite some of these http://www.mydomain.com/category/subcategory into http://www.mydomain.com/application/category/subcategory application/…

---

## [Error compiling Nginx with mod\_wsgi - ngx\_wsgi missing initializer](https://www.ruby-forum.com/t/error-compiling-nginx-with-mod-wsgi-ngx-wsgi-missing-initializer/175728)

<div class="topic-metadata">

**Author:** [@Shu\_Hung\_SKoala](https://www.ruby-forum.com/u/Shu_Hung_SKoala)\
**Replies:** 1\
**Last updated:** [February 20, 2010, 5:19pm UTC](https://www.ruby-forum.com/t/error-compiling-nginx-with-mod-wsgi-ngx-wsgi-missing-initializer/175728 "2010-02-20T17:19:50Z")

</div>

Hello, I’m compiling Nginx-0.6.38 + mod\_wsgi. I encountered 2 error, and I can’t solve the second one. The versions of my software: Fedora 11 Nginx 0.6.38 mod\_wsgi (tip version, mod\_wsgi-8994b058d2db) GCC 4.4.1 Pyth…

---

## [Marcos Neves has invited you to Dropbox](https://www.ruby-forum.com/t/marcos-neves-has-invited-you-to-dropbox/183789)

<div class="topic-metadata">

**Author:** [@Dropbox](https://www.ruby-forum.com/u/Dropbox)\
**Replies:** 0\
**Last updated:** [February 20, 2010, 2:47am UTC](https://www.ruby-forum.com/t/marcos-neves-has-invited-you-to-dropbox/183789 "2010-02-20T02:47:49Z")

</div>

We’re excited to let you know that Marcos N. has invited you to Dropbox! Marcos N. has been using Dropbox to sync and share files online and across computers, and thought you’d find it useful too. Visit http://www.dr…

---

## [Log Entire HTTP request (including body)](https://www.ruby-forum.com/t/log-entire-http-request-including-body/183780)

<div class="topic-metadata">

**Author:** [@WSandrew\_L](https://www.ruby-forum.com/u/WSandrew_L)\
**Replies:** 0\
**Last updated:** [February 19, 2010, 11:38pm UTC](https://www.ruby-forum.com/t/log-entire-http-request-including-body/183780 "2010-02-19T23:38:10Z")

</div>

I have flash clients POSTing file uploads to a cluster fronted by nginx. I see nginx logging 400 and 408 errors to these requests with a high frequency and would like to inspect the requests to be sure Flash isn’t sen…

---

## [UpstreamConsistentHash, is it wrong?](https://www.ruby-forum.com/t/upstreamconsistenthash-is-it-wrong/183483)

<div class="topic-metadata">

**Author:** [@mflive](https://www.ruby-forum.com/u/mflive)\
**Replies:** 8\
**Last updated:** [February 19, 2010, 4:07pm UTC](https://www.ruby-forum.com/t/upstreamconsistenthash-is-it-wrong/183483 "2010-02-19T16:07:57Z")

</div>

Hi, I have a cluster with four memcache daemons and am using the current UpstreamConsistentHash 1 module with the latest 0.7 stable Nginx to balance between the nodes. Thanks to Valery’s update on the eval module, i …

---

## [Question regarding the "server" directive handler function](https://www.ruby-forum.com/t/question-regarding-the-server-directive-handler-function/183751)

<div class="topic-metadata">

**Author:** [@Mauro\_Stettler](https://www.ruby-forum.com/u/Mauro_Stettler)\
**Replies:** 2\
**Last updated:** [February 19, 2010, 1:43pm UTC](https://www.ruby-forum.com/t/question-regarding-the-server-directive-handler-function/183751 "2010-02-19T13:43:58Z")

</div>

hi some time ago i wrote the nginx module upstream\_consistent\_hash which is also presented on the nginx wiki: so this module actually works and is compatible to the php memcache module. but i have the following prob…

---

## [Stats for each worker process](https://www.ruby-forum.com/t/stats-for-each-worker-process/183674)

<div class="topic-metadata">

**Author:** [@giuseppe\_furlan](https://www.ruby-forum.com/u/giuseppe_furlan)\
**Replies:** 2\
**Last updated:** [February 19, 2010, 9:19am UTC](https://www.ruby-forum.com/t/stats-for-each-worker-process/183674 "2010-02-19T09:19:54Z")

</div>

hello all, I’m wondering if there is a way to get stats for each worker process. If I use NginxHttpStubStatusModule then I get global stats but I’d like to get the status of each worker, the number of requests that w…

---

## [Masking IP-Addresses on logging?](https://www.ruby-forum.com/t/masking-ip-addresses-on-logging/183663)

<div class="topic-metadata">

**Author:** [@ts77](https://www.ruby-forum.com/u/ts77)\
**Replies:** 3\
**Last updated:** [February 19, 2010, 1:01am UTC](https://www.ruby-forum.com/t/masking-ip-addresses-on-logging/183663 "2010-02-19T01:01:15Z")

</div>

Hey there, some of you might know that storing full ip addresses in germany is getting more tricky every day and considered a legal problem. Is there any way to store masked ip addresses in access logs with nginx whi…

---

## [Regex](https://www.ruby-forum.com/t/regex/183707)

<div class="topic-metadata">

**Author:** [@budala10](https://www.ruby-forum.com/u/budala10)\
**Replies:** 1\
**Last updated:** [February 18, 2010, 10:41pm UTC](https://www.ruby-forum.com/t/regex/183707 "2010-02-18T22:41:56Z")

</div>

Hi, if i have a url ending with a / how can i rewrite the request before go to the proxy so the ending slash is dropped? i want www.host.com/uri/ to be www.host.com/uri Posted at Nginx Forum:

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

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