# Server

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

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

---

## [Cookies path rewrite](https://www.ruby-forum.com/t/cookies-path-rewrite/151736)

<div class="topic-metadata">

**Author:** [@Ondrej\_Jombik](https://www.ruby-forum.com/u/Ondrej_Jombik)\
**Replies:** 2\
**Last updated:** [January 4, 2009, 10:48pm UTC](https://www.ruby-forum.com/t/cookies-path-rewrite/151736 "2009-01-04T22:48:30Z")

</div>

Greetings I’m writing to this list, since I was unable to find solution online. We are using nginx on our all servers and we are very satisfied. Thank you very much for this wonderfull work! One type of our usage is …

---

## [Question about limit\_rate directive](https://www.ruby-forum.com/t/question-about-limit-rate-directive/156818)

<div class="topic-metadata">

**Author:** [@jkadarusman](https://www.ruby-forum.com/u/jkadarusman)\
**Replies:** 0\
**Last updated:** [January 3, 2009, 1:47pm UTC](https://www.ruby-forum.com/t/question-about-limit-rate-directive/156818 "2009-01-03T13:47:40Z")

</div>

Our organization is testing nginx, We noticed that the limit\_rate directive works for data sent out from the server very well (downloads), But absolutely no limit seems to be set for the data sent into the server (…

---

## [Error\_page and named locations](https://www.ruby-forum.com/t/error-page-and-named-locations/155320)

<div class="topic-metadata">

**Author:** [@cynix](https://www.ruby-forum.com/u/cynix)\
**Replies:** 30\
**Last updated:** [January 3, 2009, 8:22am UTC](https://www.ruby-forum.com/t/error-page-and-named-locations/155320 "2009-01-03T08:22:13Z")

</div>

I have the following config on 0.7.26: server { … location / { error\_page 404 = @cms; } location @cms { fastcgi\_pass 127.0.0.1:1234; include fastcgi\_params; fastcgi\_param SCRIPT\_FILENAME /www\_root/index.php; fa…

---

## [Root not recognized](https://www.ruby-forum.com/t/root-not-recognized/156687)

<div class="topic-metadata">

**Author:** [@allins](https://www.ruby-forum.com/u/allins)\
**Replies:** 3\
**Last updated:** [January 1, 2009, 4:04pm UTC](https://www.ruby-forum.com/t/root-not-recognized/156687 "2009-01-01T16:04:56Z")

</div>

ok, well better put on root is recognized, a second isnt. have this setup ( lots of snipping here… ) root /some/path; … location / { if ( -f /tmp/.maintenance ) { set $site\_maintenance 1; } if ( $site\_maintenan…

---

## [Proper LogFormat setting for AWstats for the default nginx log output?](https://www.ruby-forum.com/t/proper-logformat-setting-for-awstats-for-the-default-nginx-log-output/156686)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [January 1, 2009, 10:29am UTC](https://www.ruby-forum.com/t/proper-logformat-setting-for-awstats-for-the-default-nginx-log-output/156686 "2009-01-01T10:29:35Z")

</div>

Hello, I have several days worth of Nginx logs that I need to run through AWstats. I tried leaving LogFormat=1 in the awstats config (which is correct for the default apache logs) but that doesn’t work. I search on…

---

## [Strange behavior on post response](https://www.ruby-forum.com/t/strange-behavior-on-post-response/156685)

<div class="topic-metadata">

**Author:** [@Adrian\_Roston](https://www.ruby-forum.com/u/Adrian_Roston)\
**Replies:** 0\
**Last updated:** [December 31, 2008, 10:59pm UTC](https://www.ruby-forum.com/t/strange-behavior-on-post-response/156685 "2008-12-31T22:59:51Z")

</div>

Hi, I am trying to do a post with jquery in json format. The data that comes back is always truncated, strangely enough to the exact same length as the request header content-length size. This only happens with Fi…

---

## [Nginx as Proxy to Squid Forward Proxy](https://www.ruby-forum.com/t/nginx-as-proxy-to-squid-forward-proxy/156562)

<div class="topic-metadata">

**Author:** [@Curtis\_Spencer](https://www.ruby-forum.com/u/Curtis_Spencer)\
**Replies:** 2\
**Last updated:** [December 31, 2008, 9:11pm UTC](https://www.ruby-forum.com/t/nginx-as-proxy-to-squid-forward-proxy/156562 "2008-12-31T21:11:03Z")

</div>

Hi, This is kind of a strange request. What i want to do is get nginx to proxy urls such as the following http://www.mywebsite.com/proxy/www.yahoo.com to a squid forward proxy, essentially grabbing the content of w…

---

## [What are the limitations of ip\_hash?](https://www.ruby-forum.com/t/what-are-the-limitations-of-ip-hash/156630)

<div class="topic-metadata">

**Author:** [@Mark\_Swanson](https://www.ruby-forum.com/u/Mark_Swanson)\
**Replies:** 6\
**Last updated:** [December 31, 2008, 6:43pm UTC](https://www.ruby-forum.com/t/what-are-the-limitations-of-ip-hash/156630 "2008-12-31T18:43:00Z")

</div>

upstream tomcatcluster { ip\_hash; server test1:8080 max\_fails=0; server test2:8080 max\_fails=0; } It seems that the size of ip\_hash is too small and it can’t hold enough keys - or perhaps nginx clears out keys afte…

---

## [Mongrel\_cluster : up to 500 MiB memory](https://www.ruby-forum.com/t/mongrel-cluster-up-to-500-mib-memory/155301)

<div class="topic-metadata">

**Author:** [@akyrho](https://www.ruby-forum.com/u/akyrho)\
**Replies:** 2\
**Last updated:** [December 31, 2008, 3:32pm UTC](https://www.ruby-forum.com/t/mongrel-cluster-up-to-500-mib-memory/155301 "2008-12-31T15:32:33Z")

</div>

Hi everyone, I’ve got some trouble with my RoR application running with apache (2.2.9) and mongrel (1.1.5). The site i manage has about 20’000 visits a day, and we run 14 mongrel instances switched with mongrel\_clust…

---

## [When is the ip\_hash data reset? nginx 0.7.30](https://www.ruby-forum.com/t/when-is-the-ip-hash-data-reset-nginx-0-7-30/156631)

<div class="topic-metadata">

**Author:** [@Mark\_Swanson](https://www.ruby-forum.com/u/Mark_Swanson)\
**Replies:** 0\
**Last updated:** [December 31, 2008, 4:25am UTC](https://www.ruby-forum.com/t/when-is-the-ip-hash-data-reset-nginx-0-7-30/156631 "2008-12-31T04:25:56Z")

</div>

Is the nginx ip\_hash data structure cleared when nginx receives a HUP signal?

---

## [About add deflate support to http\_gzip\_filter\_module](https://www.ruby-forum.com/t/about-add-deflate-support-to-http-gzip-filter-module/156561)

<div class="topic-metadata">

**Author:** [@uddun](https://www.ruby-forum.com/u/uddun)\
**Replies:** 2\
**Last updated:** [December 30, 2008, 8:21pm UTC](https://www.ruby-forum.com/t/about-add-deflate-support-to-http-gzip-filter-module/156561 "2008-12-30T20:21:18Z")

</div>

I have a suggestion on improving http\_gzip\_filter\_module and want to discuss with you: Currently most browsers support both the gzip and deflate compression methods, and the algorithms of gzip and deflate are almost…

---

## [Can these rules be ported easily to nginx?](https://www.ruby-forum.com/t/can-these-rules-be-ported-easily-to-nginx/156480)

<div class="topic-metadata">

**Author:** [@Shri\_S\_DevLib.Org](https://www.ruby-forum.com/u/Shri_S_DevLib.Org)\
**Replies:** 1\
**Last updated:** [December 30, 2008, 6:17pm UTC](https://www.ruby-forum.com/t/can-these-rules-be-ported-easily-to-nginx/156480 "2008-12-30T18:17:17Z")

</div>

I’m considering migrating an ecommerce site that we run, to nginx. The default rules that we have in Apache, look fairly complex and I’d like to seek some guidance to see if they can be migrated to Ngix 0.7.27 or some…

---

## [Simplifying the software stack - any reason CGI can't be implemented into nginx?](https://www.ruby-forum.com/t/simplifying-the-software-stack-any-reason-cgi-cant-be-implemented-into-nginx/156559)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 2\
**Last updated:** [December 30, 2008, 2:06pm UTC](https://www.ruby-forum.com/t/simplifying-the-software-stack-any-reason-cgi-cant-be-implemented-into-nginx/156559 "2008-12-30T14:06:27Z")

</div>

Perhaps the way standard CGI programs run (compiled CGI, especially Perl, etc.) is not compatible with how nginx does it’s request processing, but couldn’t someone get a CGI module created for nginx so things like Apa…

---

## [Limit\_req documentation](https://www.ruby-forum.com/t/limit-req-documentation/156550)

<div class="topic-metadata">

**Author:** [@adammontgomery](https://www.ruby-forum.com/u/adammontgomery)\
**Replies:** 1\
**Last updated:** [December 30, 2008, 8:57am UTC](https://www.ruby-forum.com/t/limit-req-documentation/156550 "2008-12-30T08:57:40Z")

</div>

I’m looking to start using limit\_req but the only reference to it I can find is located at Nginx 0.7 and limit\_req - NGINX - Ruby-Forum. Does anyone have any idea how it works? Thanks.

---

## [Question about QUERY\_STRING](https://www.ruby-forum.com/t/question-about-query-string/154596)

<div class="topic-metadata">

**Author:** [@ankur](https://www.ruby-forum.com/u/ankur)\
**Replies:** 2\
**Last updated:** [December 30, 2008, 3:00am UTC](https://www.ruby-forum.com/t/question-about-query-string/154596 "2008-12-30T03:00:25Z")

</div>

Hello, I have a request that is originally /a/b%26c. It gets rewritten by nginx as ?i=a&j=b%26c. When this is passed to php-fastcgi using the QUERY\_STRING directive, it gets sent as i=a&j=b&c. This is incorrect…

---

## [PHP-FPM Performance](https://www.ruby-forum.com/t/php-fpm-performance/156111)

<div class="topic-metadata">

**Author:** [@mathew\_d](https://www.ruby-forum.com/u/mathew_d)\
**Replies:** 12\
**Last updated:** [December 29, 2008, 10:39pm UTC](https://www.ruby-forum.com/t/php-fpm-performance/156111 "2008-12-29T22:39:24Z")

</div>

Hi, I’m currently using nginx/0.7.27 + PHP 5.2.8 with the fpm patch on Ubuntu Server 8.10 with 256 MB RAM. Nginx is serving static files very fast at 1,500 req/s while serving a phpinfo(); page will drop right down t…

---

## [Xslt not work properly with nginx 7.30 on xslt function document() for apply template](https://www.ruby-forum.com/t/xslt-not-work-properly-with-nginx-7-30-on-xslt-function-document-for-apply-template/156489)

<div class="topic-metadata">

**Author:** [@Tomasen](https://www.ruby-forum.com/u/Tomasen)\
**Replies:** 3\
**Last updated:** [December 29, 2008, 10:45am UTC](https://www.ruby-forum.com/t/xslt-not-work-properly-with-nginx-7-30-on-xslt-function-document-for-apply-template/156489 "2008-12-29T10:45:07Z")

</div>

The xlst module on nginx is great! Everything seems working except… I (or nginx xslt module) still having trouble on the following line in my xsl file: \<xsl:apply-templates select=“document(‘/xml/hotsearch/sub.xml’)”/\>…

---

## [Proxy\_store takes long time fetching from the upstream](https://www.ruby-forum.com/t/proxy-store-takes-long-time-fetching-from-the-upstream/156506)

<div class="topic-metadata">

**Author:** [@Pahud](https://www.ruby-forum.com/u/Pahud)\
**Replies:** 0\
**Last updated:** [December 29, 2008, 8:45am UTC](https://www.ruby-forum.com/t/proxy-store-takes-long-time-fetching-from-the-upstream/156506 "2008-12-29T08:45:06Z")

</div>

Hi list, this is my config user nginx nginx; worker\_processes 8; error\_log /var/log/nginx/error\_log info; events { worker\_connections 8192; use epoll; } http { include /etc/nginx/mime.types; default\_type…

---

## [Pass server ip:port as variable when using upstream](https://www.ruby-forum.com/t/pass-server-ip-port-as-variable-when-using-upstream/156446)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [December 27, 2008, 10:47pm UTC](https://www.ruby-forum.com/t/pass-server-ip-port-as-variable-when-using-upstream/156446 "2008-12-27T22:47:57Z")

</div>

Hi, is there a way to pass the server:port pair as a variable (to php) when using upstream server pool? Thanks, Momchil

---

## [Vacation](https://www.ruby-forum.com/t/vacation/156321)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 5\
**Last updated:** [December 27, 2008, 4:01pm UTC](https://www.ruby-forum.com/t/vacation/156321 "2008-12-27T16:01:50Z")

</div>

27.12-10.01 I will be on vacation.

---

## [Nginx prepends extraneous "HTTP/1.1 100 Continue" headers to SSI responses](https://www.ruby-forum.com/t/nginx-prepends-extraneous-http-1-1-100-continue-headers-to-ssi-responses/156369)

<div class="topic-metadata">

**Author:** [@piespy](https://www.ruby-forum.com/u/piespy)\
**Replies:** 1\
**Last updated:** [December 26, 2008, 7:29am UTC](https://www.ruby-forum.com/t/nginx-prepends-extraneous-http-1-1-100-continue-headers-to-ssi-responses/156369 "2008-12-26T07:29:33Z")

</div>

When using SSI to handle POST requests submitted with an “Expect: 100-continue” header (as Opera likes to send for \>10KB post data), nginx will generate a response with “HTTP/1.1 100 Continue” for the request, and aga…

---

## [Nginx-0.7.30](https://www.ruby-forum.com/t/nginx-0-7-30/156331)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 1\
**Last updated:** [December 24, 2008, 10:03pm UTC](https://www.ruby-forum.com/t/nginx-0-7-30/156331 "2008-12-24T22:03:14Z")

</div>

Changes with nginx 0.7.30 24 Dec 2008 \*) Bugfix: a segmentation fault occurred in worker process, if variables were used in the "fastcgi\_pass" and "proxy\_pass" directives an…

---

## [Nginx-0.7.29](https://www.ruby-forum.com/t/nginx-0-7-29/156322)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 0\
**Last updated:** [December 24, 2008, 2:13pm UTC](https://www.ruby-forum.com/t/nginx-0-7-29/156322 "2008-12-24T14:13:19Z")

</div>

Changes with nginx 0.7.29 24 Dec 2008 \*) Bugfix: the "fastcgi\_pass" and "proxy\_pass" directives did not support variables if unix domain sockets were used. \*) Bugfixes in subr…

---

## [Nginx-0.7.28](https://www.ruby-forum.com/t/nginx-0-7-28/156187)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 14\
**Last updated:** [December 24, 2008, 10:16am UTC](https://www.ruby-forum.com/t/nginx-0-7-28/156187 "2008-12-24T10:16:14Z")

</div>

Changes with nginx 0.7.28 22 Dec 2008 \*) Change: in memory allocation in the ngx\_http\_gzip\_filter\_module. \*) Change: the default "gzip\_buffers" directive values have been chan…

---

## [Bug with variables in fastcgi\_pass](https://www.ruby-forum.com/t/bug-with-variables-in-fastcgi-pass/155801)

<div class="topic-metadata">

**Author:** [@Samuel\_Vogel](https://www.ruby-forum.com/u/Samuel_Vogel)\
**Replies:** 5\
**Last updated:** [December 22, 2008, 11:27pm UTC](https://www.ruby-forum.com/t/bug-with-variables-in-fastcgi-pass/155801 "2008-12-22T23:27:12Z")

</div>

Hey Igor, I think I have hit a bug while trying out the feature you added in 0.7.27. My config looks like this: server { listen 127.0.0.1:81; server\_name \_; access\_log /var/log/nginx/access.log; set $subdir "def…

---

## [Try\_files for 0.6.34](https://www.ruby-forum.com/t/try-files-for-0-6-34/156191)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 0\
**Last updated:** [December 22, 2008, 2:32pm UTC](https://www.ruby-forum.com/t/try-files-for-0-6-34/156191 "2008-12-22T14:32:36Z")

</div>

The patch for 0.6.34.

---

## [Upload module "upload store" question](https://www.ruby-forum.com/t/upload-module-upload-store-question/156155)

<div class="topic-metadata">

**Author:** [@nginx.mailinglist](https://www.ruby-forum.com/u/nginx.mailinglist)\
**Replies:** 2\
**Last updated:** [December 21, 2008, 10:18pm UTC](https://www.ruby-forum.com/t/upload-module-upload-store-question/156155 "2008-12-21T22:18:36Z")

</div>

So i got upload module and upload progress module working after alot of sweat over the progress module configuration anyways just have a question about this directive “upload\_store” i have in the conf file upload\_st…

---

## [Upload module doesnt compile with 0.6.34](https://www.ruby-forum.com/t/upload-module-doesnt-compile-with-0-6-34/156062)

<div class="topic-metadata">

**Author:** [@nginx.mailinglist](https://www.ruby-forum.com/u/nginx.mailinglist)\
**Replies:** 5\
**Last updated:** [December 21, 2008, 1:37pm UTC](https://www.ruby-forum.com/t/upload-module-doesnt-compile-with-0-6-34/156062 "2008-12-21T13:37:42Z")

</div>

Hello I was unable to compile nginx 0.6.34 with upload module support My test system consists of Vmware6.5 with OpenSuse11.1 64bit running I tried both “Nginx upload module (v 2.0.7)” and “Nginx upload module (v 2.1.…

---

## [Feature request: output well in windows](https://www.ruby-forum.com/t/feature-request-output-well-in-windows/156022)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 2\
**Last updated:** [December 20, 2008, 8:20pm UTC](https://www.ruby-forum.com/t/feature-request-output-well-in-windows/156022 "2008-12-20T20:20:29Z")

</div>

I realize not many people will benefit from this, but it would be nice if mongrel\_rails, in development mode, output the tail of its log “with” color output on windows. Currently it outputs it with the Linux style col…

---

## [Upload module 2.0.8](https://www.ruby-forum.com/t/upload-module-2-0-8/156106)

<div class="topic-metadata">

**Author:** [@Valery\_K](https://www.ruby-forum.com/u/Valery_K)\
**Replies:** 0\
**Last updated:** [December 20, 2008, 7:01pm UTC](https://www.ruby-forum.com/t/upload-module-2-0-8/156106 "2008-12-20T19:01:23Z")

</div>

Changes (as of 2008-12-20): added support for named locations fixed bug: crash on missing Content-Type request header fixed bug: compilation problem on 64 bit platforms Please see details in the following page: http:…

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

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