# Server

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

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

---

## [AB testing with nginx](https://www.ruby-forum.com/t/ab-testing-with-nginx/178350)

<div class="topic-metadata">

**Author:** [@dawe7](https://www.ruby-forum.com/u/dawe7)\
**Replies:** 4\
**Last updated:** [November 3, 2009, 12:23pm UTC](https://www.ruby-forum.com/t/ab-testing-with-nginx/178350 "2009-11-03T12:23:14Z")

</div>

Hello, I need testing our web-site using AB Test. One half request serve by first upstream, and other request serve by second upstream. But If request goes from same people/computer/IP is necessary route request to …

---

## [Cannot disable caching](https://www.ruby-forum.com/t/cannot-disable-caching/178341)

<div class="topic-metadata">

**Author:** [@grmbl](https://www.ruby-forum.com/u/grmbl)\
**Replies:** 0\
**Last updated:** [November 3, 2009, 5:41am UTC](https://www.ruby-forum.com/t/cannot-disable-caching/178341 "2009-11-03T05:41:13Z")

</div>

Hello, I’ve been banging my head on this for a day now. Nginx as caching frontend and Apache as backend on 127.0.0.1:8181. How it’s supposed to be: /i/ is not passed, but served from FS /bsbs/ is passed with NO cachi…

---

## [Nginx memcache for redirecta](https://www.ruby-forum.com/t/nginx-memcache-for-redirecta/178339)

<div class="topic-metadata">

**Author:** [@Fernando\_FlSSS\_rez](https://www.ruby-forum.com/u/Fernando_FlSSS_rez)\
**Replies:** 5\
**Last updated:** [November 3, 2009, 5:03am UTC](https://www.ruby-forum.com/t/nginx-memcache-for-redirecta/178339 "2009-11-03T05:03:10Z")

</div>

Hello, I would like to know if i could use nginx’s memcache module to store urls so i can create redirects based on variables. Is this possible? Thanks,

---

## [Mongrel .pids disappearing?](https://www.ruby-forum.com/t/mongrel-pids-disappearing/147657)

<div class="topic-metadata">

**Author:** [@Christopher\_Opena](https://www.ruby-forum.com/u/Christopher_Opena)\
**Replies:** 5\
**Last updated:** [November 2, 2009, 7:44pm UTC](https://www.ruby-forum.com/t/mongrel-pids-disappearing/147657 "2009-11-02T19:44:52Z")

</div>

Hello everyone, new to the list :slight\_smile: Strange problem with Mongrels that we’re having in a few cases…the Mongrels start up fine, but as part of a long Capistrano deploy + database we will normally cycle them…

---

## [Saving file with upload\_module](https://www.ruby-forum.com/t/saving-file-with-upload-module/178233)

<div class="topic-metadata">

**Author:** [@gregbugaj](https://www.ruby-forum.com/u/gregbugaj)\
**Replies:** 1\
**Last updated:** [November 2, 2009, 2:03pm UTC](https://www.ruby-forum.com/t/saving-file-with-upload-module/178233 "2009-11-02T14:03:02Z")

</div>

Hello. I have a little problem with upload\_module. According to documentation: http://www.grid.net.ru/nginx/upload.en.html i will quote: “The content of each uploaded file then could be read from a file specified by…

---

## [Nginx-0.7.63](https://www.ruby-forum.com/t/nginx-0-7-63/178299)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 0\
**Last updated:** [November 2, 2009, 2:01pm UTC](https://www.ruby-forum.com/t/nginx-0-7-63/178299 "2009-11-02T14:01:16Z")

</div>

Is there a bug tracking system for nginx or a list of known issues for 0.7.63? Thanks, Mark.

---

## [Undefined variable ends up as garbage](https://www.ruby-forum.com/t/undefined-variable-ends-up-as-garbage/178276)

<div class="topic-metadata">

**Author:** [@PaweSSSSSStradomsk](https://www.ruby-forum.com/u/PaweSSSSSStradomsk)\
**Replies:** 0\
**Last updated:** [November 2, 2009, 1:48am UTC](https://www.ruby-forum.com/t/undefined-variable-ends-up-as-garbage/178276 "2009-11-02T01:48:58Z")

</div>

Hello, I have found a possible bug in nginx. I had a variable defined with “set” and used with “fastcgi\_param” in one of virtual hosts definition. Then I copied the site file to create a new virtual host. I’ve remov…

---

## [From Apache to Nginx+php-fpm : How to port configuration?](https://www.ruby-forum.com/t/from-apache-to-nginx-php-fpm-how-to-port-configuration/178252)

<div class="topic-metadata">

**Author:** [@ftrudeau](https://www.ruby-forum.com/u/ftrudeau)\
**Replies:** 1\
**Last updated:** [November 1, 2009, 7:34pm UTC](https://www.ruby-forum.com/t/from-apache-to-nginx-php-fpm-how-to-port-configuration/178252 "2009-11-01T19:34:31Z")

</div>

Greetings all. I successfully installed nginx + php-fpm. I already read numerous tutorials and exemples out there on the web, and I would need some additional insights on how to port the various configuration options …

---

## [Cache post-processor](https://www.ruby-forum.com/t/cache-post-processor/178227)

<div class="topic-metadata">

**Author:** [@SSSSSSSSSSSSS\_SS](https://www.ruby-forum.com/u/SSSSSSSSSSSSS_SS)\
**Replies:** 2\
**Last updated:** [November 1, 2009, 7:47am UTC](https://www.ruby-forum.com/t/cache-post-processor/178227 "2009-11-01T07:47:57Z")

</div>

Hi, I’m wondering how this can be done: I’d like to take advantage of the Nginx cache, but some part of the html content is depending on the value of a cookie, for example, the name of the current logged in user. e.g…

---

## [How to use cookie for request/conection limiting](https://www.ruby-forum.com/t/how-to-use-cookie-for-request-conection-limiting/178159)

<div class="topic-metadata">

**Author:** [@piavlo](https://www.ruby-forum.com/u/piavlo)\
**Replies:** 10\
**Last updated:** [October 31, 2009, 11:32pm UTC](https://www.ruby-forum.com/t/how-to-use-cookie-for-request-conection-limiting/178159 "2009-10-31T23:32:43Z")

</div>

Hi, I’d like to limit connections and/or request based on cookies Is it possible to do it with something like this: limit\_req\_zone $cookie\_somename zone=one:10m rate=1r/s; ? The only thing I’ve found is http://…

---

## [10 000 req/s: tpd2 - why it is so fast?](https://www.ruby-forum.com/t/10-000-req-s-tpd2-why-it-is-so-fast/177009)

<div class="topic-metadata">

**Author:** [@pcdinh](https://www.ruby-forum.com/u/pcdinh)\
**Replies:** 19\
**Last updated:** [October 31, 2009, 7:23pm UTC](https://www.ruby-forum.com/t/10-000-req-s-tpd2-why-it-is-so-fast/177009 "2009-10-31T19:23:56Z")

</div>

Hi all, I have come across an article whose author claimed that his web server can handle 10 000 requests per second. Because I am far from expert on high performance web servers so I would like to ask you if his ben…

---

## [Null pointer dereference vulnerability in 0.1.0-0.8.13](https://www.ruby-forum.com/t/null-pointer-dereference-vulnerability-in-0-1-0-0-8-13/177923)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 3\
**Last updated:** [October 31, 2009, 12:52pm UTC](https://www.ruby-forum.com/t/null-pointer-dereference-vulnerability-in-0-1-0-0-8-13/177923 "2009-10-31T12:52:50Z")

</div>

A patch to fix null pointer dereference vulnerability in 0.1.0-0.8.13. The patch is not required for versions 0.8.15+, 0.7.62+, 0.6.39+, 0.5.38+.

---

## [How to record how much bandwidth i save using gzip?](https://www.ruby-forum.com/t/how-to-record-how-much-bandwidth-i-save-using-gzip/178232)

<div class="topic-metadata">

**Author:** [@Kiswono\_P](https://www.ruby-forum.com/u/Kiswono_P)\
**Replies:** 1\
**Last updated:** [October 31, 2009, 10:37am UTC](https://www.ruby-forum.com/t/how-to-record-how-much-bandwidth-i-save-using-gzip/178232 "2009-10-31T10:37:03Z")

</div>

Hi all, i want to know, how much bandwidth i save using gzip compression, is it available just like apache did: localhost ::1 - - \[29/Oct/2009:10:54:43 +0700\] “GET /icons/folder.gif HTTP/1.1” 200 232 mod\_deflate: 95 …

---

## [Compiling nginx-0.8.21 fail under linux-2.4.18](https://www.ruby-forum.com/t/compiling-nginx-0-8-21-fail-under-linux-2-4-18/178099)

<div class="topic-metadata">

**Author:** [@testking](https://www.ruby-forum.com/u/testking)\
**Replies:** 4\
**Last updated:** [October 31, 2009, 5:09am UTC](https://www.ruby-forum.com/t/compiling-nginx-0-8-21-fail-under-linux-2-4-18/178099 "2009-10-31T05:09:16Z")

</div>

objs/src/core/ngx\_open\_file\_cache.o: In function \`ngx\_open\_and\_stat\_file’: /home/box/nginx-0.8.21/src/core/ngx\_open\_file\_cache.c:531: warning: posix\_fadvise64 is not implemented and will always fail Linux nginxbox 2.…

---

## [Limit Zone and Memcache](https://www.ruby-forum.com/t/limit-zone-and-memcache/178218)

<div class="topic-metadata">

**Author:** [@Ensiferous](https://www.ruby-forum.com/u/Ensiferous)\
**Replies:** 0\
**Last updated:** [October 31, 2009, 2:33am UTC](https://www.ruby-forum.com/t/limit-zone-and-memcache/178218 "2009-10-31T02:33:02Z")

</div>

Hi, I am looking for someone to modify the limit zone module to store the information in a memcached server instead of in local shared memory so that limit zone can work across multiple servers. Payment available, pl…

---

## [Memcache key suggestion](https://www.ruby-forum.com/t/memcache-key-suggestion/178173)

<div class="topic-metadata">

**Author:** [@brianmercer](https://www.ruby-forum.com/u/brianmercer)\
**Replies:** 2\
**Last updated:** [October 30, 2009, 4:24pm UTC](https://www.ruby-forum.com/t/memcache-key-suggestion/178173 "2009-10-30T16:24:37Z")

</div>

I would like to use Nginx to retrieve pages placed in a memcached bin by Drupal caching. The Drupal key appears to be: cache\_page-http%3A%2F%2Fexample.com%2Fcontent%2Fquadrum-utinam Using ... set $memcached\_key …

---

## [Nginx benchmark result share ^^](https://www.ruby-forum.com/t/nginx-benchmark-result-share/178108)

<div class="topic-metadata">

**Author:** [@Kiswono\_P](https://www.ruby-forum.com/u/Kiswono_P)\
**Replies:** 1\
**Last updated:** [October 29, 2009, 11:17am UTC](https://www.ruby-forum.com/t/nginx-benchmark-result-share/178108 "2009-10-29T11:17:50Z")

</div>

Hi, because of teepeedee2 thread, i tried to benchmark ( nginx + spawn-fcgi v8cgi x 1024 children ) vs ( apache2 + mod\_php + php5 ) on example of my testing and development setting. ############### SIMPLE LOOP AND …

---

## [Issue with VirtualHost definition order and SNI SSL](https://www.ruby-forum.com/t/issue-with-virtualhost-definition-order-and-sni-ssl/177015)

<div class="topic-metadata">

**Author:** [@Linmiao\_Xu](https://www.ruby-forum.com/u/Linmiao_Xu)\
**Replies:** 20\
**Last updated:** [October 29, 2009, 9:39am UTC](https://www.ruby-forum.com/t/issue-with-virtualhost-definition-order-and-sni-ssl/177015 "2009-10-29T09:39:30Z")

</div>

When running SSL on more than one virtual host (one IP), I get a weird issue when virtual hosts are defined in different orders. One virtual host is a TLD (example.com), and one is an alias I set in /etc/hosts (alias…

---

## [Non-http upstream server](https://www.ruby-forum.com/t/non-http-upstream-server/178106)

<div class="topic-metadata">

**Author:** [@joel](https://www.ruby-forum.com/u/joel)\
**Replies:** 1\
**Last updated:** [October 29, 2009, 9:19am UTC](https://www.ruby-forum.com/t/non-http-upstream-server/178106 "2009-10-29T09:19:01Z")

</div>

Hi, Is there any way that I can develop a nginx module that talk to a non-http upstream server? These can be remote FTP servers or database server. Any suggestion that this can be done without affecting the efficien…

---

## [Proxy pass based on IP?](https://www.ruby-forum.com/t/proxy-pass-based-on-ip/178088)

<div class="topic-metadata">

**Author:** [@Iantcho\_Vassilev](https://www.ruby-forum.com/u/Iantcho_Vassilev)\
**Replies:** 2\
**Last updated:** [October 29, 2009, 8:39am UTC](https://www.ruby-forum.com/t/proxy-pass-based-on-ip/178088 "2009-10-29T08:39:14Z")

</div>

Is it possible to proxy pass a location based in source IP??

---

## [Using a file as a flag and proxy\_pass to hang a server](https://www.ruby-forum.com/t/using-a-file-as-a-flag-and-proxy-pass-to-hang-a-server/178097)

<div class="topic-metadata">

**Author:** [@btakita](https://www.ruby-forum.com/u/btakita)\
**Replies:** 0\
**Last updated:** [October 29, 2009, 2:10am UTC](https://www.ruby-forum.com/t/using-a-file-as-a-flag-and-proxy-pass-to-hang-a-server/178097 "2009-10-29T02:10:35Z")

</div>

Hello, I would like to delay proxying a request for a few second, until the server is ready. To do this, I’m attempting to use recursion: if (-f $document\_root/block\_writes) { proxy\_pass http://127.0.0.1; break; } …

---

## [NGiNX Loadbalancing Sorry Server](https://www.ruby-forum.com/t/nginx-loadbalancing-sorry-server/178062)

<div class="topic-metadata">

**Author:** [@gromminger](https://www.ruby-forum.com/u/gromminger)\
**Replies:** 1\
**Last updated:** [October 28, 2009, 6:31pm UTC](https://www.ruby-forum.com/t/nginx-loadbalancing-sorry-server/178062 "2009-10-28T18:31:06Z")

</div>

Hello Folks, is there any way to integrate something like the sorry server in keepalived. i mean, if no backend system is available the request should be redirect to url-something with a maintanance page. Thx Juerge…

---

## [Convert 302 to internal redirect](https://www.ruby-forum.com/t/convert-302-to-internal-redirect/178061)

<div class="topic-metadata">

**Author:** [@miradev](https://www.ruby-forum.com/u/miradev)\
**Replies:** 1\
**Last updated:** [October 28, 2009, 5:46pm UTC](https://www.ruby-forum.com/t/convert-302-to-internal-redirect/178061 "2009-10-28T17:46:35Z")

</div>

Hi I have the following redirect working for a wordpress install: rewrite ^/(\[^/\]+)/product/(\[^/\]+)/?$ http://$host/$1/index.php/product?prodname=$2 redirect; The ‘obvious’ transformation that I have tried is: rewri…

---

## [Rtfm on load balancing](https://www.ruby-forum.com/t/rtfm-on-load-balancing/178043)

<div class="topic-metadata">

**Author:** [@Nuno\_MagalhSSSSes](https://www.ruby-forum.com/u/Nuno_MagalhSSSSes)\
**Replies:** 0\
**Last updated:** [October 28, 2009, 2:05pm UTC](https://www.ruby-forum.com/t/rtfm-on-load-balancing/178043 "2009-10-28T14:05:14Z")

</div>

Hi, I’ve been searching around but what i find is sparse, i was looking for a decent juicy guide (one that doesn’t tell me i should kill -15 then exec a server to reload the config) for load balancing. I’m trying to…

---

## [Suggestions on how to have error pages based on content type](https://www.ruby-forum.com/t/suggestions-on-how-to-have-error-pages-based-on-content-type/177809)

<div class="topic-metadata">

**Author:** [@Zev\_B](https://www.ruby-forum.com/u/Zev_B)\
**Replies:** 3\
**Last updated:** [October 28, 2009, 4:58am UTC](https://www.ruby-forum.com/t/suggestions-on-how-to-have-error-pages-based-on-content-type/177809 "2009-10-28T04:58:28Z")

</div>

Hello, I am wondering if it is possible to serve up error pages based on the content type. I.e. I want to show a different 503 error page for html, xml and javascript content types. I have tried to do something like…

---

## [Location regex](https://www.ruby-forum.com/t/location-regex/178014)

<div class="topic-metadata">

**Author:** [@mathew\_d](https://www.ruby-forum.com/u/mathew_d)\
**Replies:** 6\
**Last updated:** [October 28, 2009, 4:03am UTC](https://www.ruby-forum.com/t/location-regex/178014 "2009-10-28T04:03:26Z")

</div>

Hi. I am having trouble with a location regular expression. location ~\* ^/(library|conf|appg) { return 403; } It is my understanding the following regular expression should match any uri starting with library, c…

---

## [Reusing event connections](https://www.ruby-forum.com/t/reusing-event-connections/178015)

<div class="topic-metadata">

**Author:** [@kastorilo](https://www.ruby-forum.com/u/kastorilo)\
**Replies:** 0\
**Last updated:** [October 28, 2009, 1:32am UTC](https://www.ruby-forum.com/t/reusing-event-connections/178015 "2009-10-28T01:32:23Z")

</div>

Hi, Is it possible to re-use connections/events created using ngx\_get\_connection and ngx\_add\_event()? I’ve tried using them, using write() to trigger an event (outside the event loop in a different thread) and read()…

---

## [Nginx-0.7.63](https://www.ruby-forum.com/t/nginx-0-7-63/177921)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 4\
**Last updated:** [October 27, 2009, 3:35pm UTC](https://www.ruby-forum.com/t/nginx-0-7-63/177921 "2009-10-27T15:35:14Z")

</div>

Changes with nginx 0.7.63 26 Oct 2009 \*) Security: now "/../" are disabled in "Destination" request header line. \*) Change: minimum supported OpenSSL version is 0.9.7. \*) Cha…

---

## [Why is redirect to the first server\_name happening when visiting location without trailing slash?](https://www.ruby-forum.com/t/why-is-redirect-to-the-first-server-name-happening-when-visiting-location-without-trailing-slash/177969)

<div class="topic-metadata">

**Author:** [@demoversion](https://www.ruby-forum.com/u/demoversion)\
**Replies:** 2\
**Last updated:** [October 27, 2009, 2:54pm UTC](https://www.ruby-forum.com/t/why-is-redirect-to-the-first-server-name-happening-when-visiting-location-without-trailing-slash/177969 "2009-10-27T14:54:50Z")

</div>

I have a following site config in nginx server { listen 80; server\_name testsite.local nginx.test; root /tmp; location /video/ { proxy\_pass http://localhost:8080/; } } and the following…

---

## [Custom event + timer regressions caused by the new release (Was Re: nginx-0.8.21)](https://www.ruby-forum.com/t/custom-event-timer-regressions-caused-by-the-new-release-was-re-nginx-0-8-21/177963)

<div class="topic-metadata">

**Author:** [@agentzh](https://www.ruby-forum.com/u/agentzh)\
**Replies:** 1\
**Last updated:** [October 27, 2009, 10:51am UTC](https://www.ruby-forum.com/t/custom-event-timer-regressions-caused-by-the-new-release-was-re-nginx-0-8-21/177963 "2009-10-27T10:51:52Z")

</div>

2009/10/26 Igor S. removed\_email\_address@domain.invalid: Changes with nginx 0.8.21 26 Oct 2009 Sigh. All the regression tests for my “echo” module’s echo\_sleep in subrequests a…

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

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