# Server

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

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

---

## [Throttle wrongly treated as seconds instead of 100th of seconds?](https://www.ruby-forum.com/t/throttle-wrongly-treated-as-seconds-instead-of-100th-of-seconds/128178)

<div class="topic-metadata">

**Author:** [@Tilmann\_Singer](https://www.ruby-forum.com/u/Tilmann_Singer)\
**Replies:** 2\
**Last updated:** [February 7, 2008, 12:43am UTC](https://www.ruby-forum.com/t/throttle-wrongly-treated-as-seconds-instead-of-100th-of-seconds/128178 "2008-02-07T00:43:49Z")

</div>

Am I missing the reason why the value of @throttle is documented and at one point treated as hundreths of seconds, but at other points treated as full seconds? If this is just a bug then I propose the attached fix (te…

---

## [Garbage collection patch](https://www.ruby-forum.com/t/garbage-collection-patch/128239)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 9\
**Last updated:** [February 7, 2008, 12:13am UTC](https://www.ruby-forum.com/t/garbage-collection-patch/128239 "2008-02-07T00:13:53Z")

</div>

Would it make sense to add the option for mongrel to disable GC during a request and enable it after? Or even run it after? Just thinking out loud. Thanks for Mongrel. -Roger

---

## [Re-map Portion of Ruby Heap Holding Optree to Save Child Server Memory?](https://www.ruby-forum.com/t/re-map-portion-of-ruby-heap-holding-optree-to-save-child-server-memory/128304)

<div class="topic-metadata">

**Author:** [@transonik](https://www.ruby-forum.com/u/transonik)\
**Replies:** 1\
**Last updated:** [February 6, 2008, 4:50pm UTC](https://www.ruby-forum.com/t/re-map-portion-of-ruby-heap-holding-optree-to-save-child-server-memory/128304 "2008-02-06T16:50:00Z")

</div>

I wonder if it is possible to reduce the memory footprint of a pack of 6 mongrels by about 70 meg. In reading Hongli’s blog about his revisions to Ruby GC (last Monday Matz if he could use Hongli’s work), I was wonde…

---

## [100% CPU use](https://www.ruby-forum.com/t/100-cpu-use/121686)

<div class="topic-metadata">

**Author:** [@Cynthia\_K](https://www.ruby-forum.com/u/Cynthia_K)\
**Replies:** 4\
**Last updated:** [February 6, 2008, 6:20am UTC](https://www.ruby-forum.com/t/100-cpu-use/121686 "2008-02-06T06:20:34Z")

</div>

I needed to restart my mongrel cluster today (updated a Rails controller). And my mongrels didn’t really come back up. They bind the port but don’t respond to any requests. I can’t find any log file that has useful in…

---

## [Problem uploading file](https://www.ruby-forum.com/t/problem-uploading-file/128223)

<div class="topic-metadata">

**Author:** [@Tho\_Nguyen](https://www.ruby-forum.com/u/Tho_Nguyen)\
**Replies:** 0\
**Last updated:** [February 6, 2008, 12:22am UTC](https://www.ruby-forum.com/t/problem-uploading-file/128223 "2008-02-06T00:22:46Z")

</div>

I switch our apache reverse proxy over to nginx and I have a problem. From the web browser or the javaclient, I can attach files fine. But the majority of our usage is via a CAD client. A plugin that hooks in the a …

---

## [Rewrite rules](https://www.ruby-forum.com/t/rewrite-rules/127408)

<div class="topic-metadata">

**Author:** [@Jan\_SSSSlusarczyk](https://www.ruby-forum.com/u/Jan_SSSSlusarczyk)\
**Replies:** 3\
**Last updated:** [February 6, 2008, 12:09am UTC](https://www.ruby-forum.com/t/rewrite-rules/127408 "2008-02-06T00:09:13Z")

</div>

I’m trying to move my vbulletin forum to nginx+fastcgi php. The traffic is killing apache2. The only thing left is rewrite rule for vbseo. I’ve been trying to convert them myself, but I have to give up and ask for you…

---

## [Nginx 0.5.35 ssl error](https://www.ruby-forum.com/t/nginx-0-5-35-ssl-error/127496)

<div class="topic-metadata">

**Author:** [@Tho\_Nguyen](https://www.ruby-forum.com/u/Tho_Nguyen)\
**Replies:** 7\
**Last updated:** [February 5, 2008, 12:48pm UTC](https://www.ruby-forum.com/t/nginx-0-5-35-ssl-error/127496 "2008-02-05T12:48:53Z")

</div>

I have nginx 0.5.35 on centos 5.1 with openssl 0.9.8b. some of the error are similar to previous post regarding download on ssl. 2008/01/29 13:23:33 \[crit\] 21470#0: \*35748 SSL\_write() failed (SSL: error:1409F07F:SSL …

---

## [Strange Merb error](https://www.ruby-forum.com/t/strange-merb-error/128073)

<div class="topic-metadata">

**Author:** [@biot023](https://www.ruby-forum.com/u/biot023)\
**Replies:** 1\
**Last updated:** [February 4, 2008, 10:03pm UTC](https://www.ruby-forum.com/t/strange-merb-error/128073 "2008-02-04T22:03:08Z")

</div>

Sorry if this is not the correct place to post this, but I can’t really find anywhere else! I want to learn Merb, but am getting an error when I try to run the generated app that goes as follows: /usr/local/lib/rub…

---

## [When can nginx support cache objects in memory?](https://www.ruby-forum.com/t/when-can-nginx-support-cache-objects-in-memory/128051)

<div class="topic-metadata">

**Author:** [@arlene\_chen](https://www.ruby-forum.com/u/arlene_chen)\
**Replies:** 0\
**Last updated:** [February 4, 2008, 5:30pm UTC](https://www.ruby-forum.com/t/when-can-nginx-support-cache-objects-in-memory/128051 "2008-02-04T17:30:28Z")

</div>

when can nginx support cache objects in memory? By now the only way we can cache objects in nginx is use memcached,but the performance is not so good ,perhaps only mem cache can solve this problem. – best regards, a…

---

## [Can upstream be used for memcachedmodule?](https://www.ruby-forum.com/t/can-upstream-be-used-for-memcachedmodule/128038)

<div class="topic-metadata">

**Author:** [@arlene\_chen](https://www.ruby-forum.com/u/arlene_chen)\
**Replies:** 4\
**Last updated:** [February 4, 2008, 4:43pm UTC](https://www.ruby-forum.com/t/can-upstream-be-used-for-memcachedmodule/128038 "2008-02-04T16:43:12Z")

</div>

Hi All, I try to use upstream to define a set of memcached,then I can use it in memcached\_pass setting ,but it can not work,anyone know how to do this ? If I can not set and use it just like in proxy\_pass,then how can…

---

## [Is there a FileHandler class out there?](https://www.ruby-forum.com/t/is-there-a-filehandler-class-out-there/128020)

<div class="topic-metadata">

**Author:** [@cdr](https://www.ruby-forum.com/u/cdr)\
**Replies:** 0\
**Last updated:** [February 4, 2008, 10:41am UTC](https://www.ruby-forum.com/t/is-there-a-filehandler-class-out-there/128020 "2008-02-04T10:41:10Z")

</div>

after finding this solution to Paul Graham’s ‘said’ problem (Arc Forum | How would this Arc program be translated into other languages?): case r.qs when ‘’: isindex when /^@/: r.qs.tail else a’follow’,:href =\>‘?@’+r…

---

## [Allow/deny for a single location, with other location handler](https://www.ruby-forum.com/t/allow-deny-for-a-single-location-with-other-location-handler/127894)

<div class="topic-metadata">

**Author:** [@rjberry](https://www.ruby-forum.com/u/rjberry)\
**Replies:** 3\
**Last updated:** [February 3, 2008, 3:58am UTC](https://www.ruby-forum.com/t/allow-deny-for-a-single-location-with-other-location-handler/127894 "2008-02-03T03:58:52Z")

</div>

Hi, I’m using nginx to proxy through to apache, with a simple location / { proxy\_pass ... } However, there is one location ( /account/sync\_profile/) which I’d like to restrict to just one IP address. If I add…

---

## [Difficulty in Proxying for MS Exchange Web Access using NGINX](https://www.ruby-forum.com/t/difficulty-in-proxying-for-ms-exchange-web-access-using-nginx/127915)

<div class="topic-metadata">

**Author:** [@Mario\_FSArroyo](https://www.ruby-forum.com/u/Mario_FSArroyo)\
**Replies:** 0\
**Last updated:** [February 2, 2008, 4:28pm UTC](https://www.ruby-forum.com/t/difficulty-in-proxying-for-ms-exchange-web-access-using-nginx/127915 "2008-02-02T16:28:33Z")

</div>

Hi Igor, Please allow me to thank you for your efforts in coming up and maintaining such a wonderful piece of software! Its fast, stable and light on resources … truly an amazing piece of work! I am running the nginx…

---

## [Use proxy store with url parameters](https://www.ruby-forum.com/t/use-proxy-store-with-url-parameters/127843)

<div class="topic-metadata">

**Author:** [@Casey\_Rayman](https://www.ruby-forum.com/u/Casey_Rayman)\
**Replies:** 1\
**Last updated:** [February 2, 2008, 8:37am UTC](https://www.ruby-forum.com/t/use-proxy-store-with-url-parameters/127843 "2008-02-02T08:37:24Z")

</div>

I have been trying to get proxy\_store to work with a url of the form / resource?resourceId=XXX where XXX is a number. This url actually returns a graphic from a database which does not change often. Is is possible t…

---

## [More than one conditon in an IF statement?](https://www.ruby-forum.com/t/more-than-one-conditon-in-an-if-statement/127861)

<div class="topic-metadata">

**Author:** [@ianneub](https://www.ruby-forum.com/u/ianneub)\
**Replies:** 1\
**Last updated:** [February 1, 2008, 10:30pm UTC](https://www.ruby-forum.com/t/more-than-one-conditon-in-an-if-statement/127861 "2008-02-01T22:30:09Z")

</div>

Hello All, I can’t seem to figure out how to put more than on condition in an IF statement. Is this possible? I thought this would work: if ($request\_uri ~\* .(jpg|jpeg|gif|png|css)$) { expires 1d; } if ($is\_args) …

---

## [(99: Cannot assign requested address)](https://www.ruby-forum.com/t/99-cannot-assign-requested-address/127742)

<div class="topic-metadata">

**Author:** [@akunz](https://www.ruby-forum.com/u/akunz)\
**Replies:** 4\
**Last updated:** [February 1, 2008, 10:14pm UTC](https://www.ruby-forum.com/t/99-cannot-assign-requested-address/127742 "2008-02-01T22:14:13Z")

</div>

Hello nginx users, can anyone help me with the error? I use nginx on a debian etch server with danga memcached. When i run a benchmaking test with ApacheBench i get a lot of this messages in the error log. 2008/01/31…

---

## [Url changed in proxy\_pass](https://www.ruby-forum.com/t/url-changed-in-proxy-pass/127820)

<div class="topic-metadata">

**Author:** [@John\_Quaglieri](https://www.ruby-forum.com/u/John_Quaglieri)\
**Replies:** 5\
**Last updated:** [February 1, 2008, 5:11pm UTC](https://www.ruby-forum.com/t/url-changed-in-proxy-pass/127820 "2008-02-01T17:11:08Z")

</div>

I have nginx installed on port 80 and apache is installed on port 81. I proxy php to apache and have nginx handle all the static and image content. On my config I have an if statment similar to this: if (!-f $request…

---

## [Production problem for mongrel](https://www.ruby-forum.com/t/production-problem-for-mongrel/127659)

<div class="topic-metadata">

**Author:** [@Jian\_Fang](https://www.ruby-forum.com/u/Jian_Fang)\
**Replies:** 1\
**Last updated:** [February 1, 2008, 12:00am UTC](https://www.ruby-forum.com/t/production-problem-for-mongrel/127659 "2008-02-01T00:00:07Z")

</div>

Hi, I am working on deplying my Rail app to QA and then move to production. Since on our QA servers, there is no internet access and also for production servers, internet access is strictly prohibited. As a result, …

---

## [Hashes](https://www.ruby-forum.com/t/hashes/126817)

<div class="topic-metadata">

**Author:** [@Almir\_K](https://www.ruby-forum.com/u/Almir_K)\
**Replies:** 3\
**Last updated:** [January 31, 2008, 10:29pm UTC](https://www.ruby-forum.com/t/hashes/126817 "2008-01-31T22:29:31Z")

</div>

i have read http://wiki.codemongers.com/NginxOptimizations?highlight=(optimization) , but i have some questions: what are the recommended values for server\_names\_hash\_bucket\_size and server\_names\_hash\_max\_size for a…

---

## [Crash with long expires](https://www.ruby-forum.com/t/crash-with-long-expires/127682)

<div class="topic-metadata">

**Author:** [@Joaquin\_Cuenca\_Abel](https://www.ruby-forum.com/u/Joaquin_Cuenca_Abel)\
**Replies:** 1\
**Last updated:** [January 31, 2008, 5:29pm UTC](https://www.ruby-forum.com/t/crash-with-long-expires/127682 "2008-01-31T17:29:57Z")

</div>

Hi, I had an expires of 30y in the future for static content. A couple days ago nginx started crashing. After a quick gdb session, I saw it was a 2038 year bug. I changed it to 20y in the future, but I thought that y…

---

## [Not all mongrel starting (Errno:EEXIST)](https://www.ruby-forum.com/t/not-all-mongrel-starting-errno-eexist/127630)

<div class="topic-metadata">

**Author:** [@John\_Woodward](https://www.ruby-forum.com/u/John_Woodward)\
**Replies:** 3\
**Last updated:** [January 31, 2008, 4:27pm UTC](https://www.ruby-forum.com/t/not-all-mongrel-starting-errno-eexist/127630 "2008-01-31T16:27:27Z")

</div>

I’m playing with the mongrel clustering, and am having a problem getting 2 mongrels to start up reliably. This should be a pretty simple cluster, with just 2 instances running. My mongrel config (mongrel\_cluster.yml…

---

## [Nginx+daemontools](https://www.ruby-forum.com/t/nginx-daemontools/127642)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 13\
**Last updated:** [January 31, 2008, 1:41pm UTC](https://www.ruby-forum.com/t/nginx-daemontools/127642 "2008-01-31T13:41:04Z")

</div>

Running nginx with daemontools Hey guys I m trying to figure out how to run nginx and the backends using supervise in daemon mode the idea is to run the fastcgi backends in supervise daemonzied mode so that if they…

---

## [Nginx server showing previous version](https://www.ruby-forum.com/t/nginx-server-showing-previous-version/127621)

<div class="topic-metadata">

**Author:** [@just\_starting](https://www.ruby-forum.com/u/just_starting)\
**Replies:** 4\
**Last updated:** [January 31, 2008, 2:56am UTC](https://www.ruby-forum.com/t/nginx-server-showing-previous-version/127621 "2008-01-31T02:56:57Z")

</div>

hi, I was using nginx version 0.6.22 till last Friday. After that I downloaded the latest version 0.6.25 and then installed it in the same location as of 0.6.22(default location). Now I have the latest nginx file i…

---

## [Strange expiry headers detected](https://www.ruby-forum.com/t/strange-expiry-headers-detected/127651)

<div class="topic-metadata">

**Author:** [@just\_starting](https://www.ruby-forum.com/u/just_starting)\
**Replies:** 0\
**Last updated:** [January 31, 2008, 2:52am UTC](https://www.ruby-forum.com/t/strange-expiry-headers-detected/127651 "2008-01-31T02:52:51Z")

</div>

hi, I noticed some weird entries in the header response sent by nginx server. I found this in the response header sent by the server: Last-Modified Thu, 31 Jan 2008 02:21:00 GMT w.r.t the request header sent b…

---

## [Gzip troubles](https://www.ruby-forum.com/t/gzip-troubles/127508)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 8\
**Last updated:** [January 30, 2008, 2:38pm UTC](https://www.ruby-forum.com/t/gzip-troubles/127508 "2008-01-30T14:38:39Z")

</div>

IÂ¹m having a difficult time getting files (.js, .png) to gzip under my configuration. Can someone tell me if IÂ¹m doing something wrong? Django project server { listen 80; server\_name dev.foo.com; location ^…

---

## [Properly restarting mongrel instances](https://www.ruby-forum.com/t/properly-restarting-mongrel-instances/126737)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 15\
**Last updated:** [January 30, 2008, 11:33am UTC](https://www.ruby-forum.com/t/properly-restarting-mongrel-instances/126737 "2008-01-30T11:33:40Z")

</div>

Hi folks. Using mongrel\_rails and the mongrel\_cluster capistrano recipes, I often encounter a situation where some of the mongrel processes don’t die in time to be restarted. The output of capistrano will tell me som…

---

## [Mongrel\_service install error](https://www.ruby-forum.com/t/mongrel-service-install-error/127545)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 1\
**Last updated:** [January 30, 2008, 11:11am UTC](https://www.ruby-forum.com/t/mongrel-service-install-error/127545 "2008-01-30T11:11:17Z")

</div>

when I run ‘gem install mongrel\_service’…it gives following error… Building native extensions. This could take a while… ERROR: Error installing mongrel\_service: ERROR: Failed to build gem native extension. c:/ruby/…

---

## [Question about limit zone](https://www.ruby-forum.com/t/question-about-limit-zone/127550)

<div class="topic-metadata">

**Author:** [@Anup\_Shukla](https://www.ruby-forum.com/u/Anup_Shukla)\
**Replies:** 0\
**Last updated:** [January 30, 2008, 10:28am UTC](https://www.ruby-forum.com/t/question-about-limit-zone/127550 "2008-01-30T10:28:35Z")

</div>

Hi all, I am total newbie to nginx (just 2 days old). Before i jump in to the question, i better explain what i have done. I have nginx + fastcgi (php) running on a server. This is for a download server. Every downl…

---

## [Nginx in Netcraft January Web Server Survey](https://www.ruby-forum.com/t/nginx-in-netcraft-january-web-server-survey/127492)

<div class="topic-metadata">

**Author:** [@equinox86](https://www.ruby-forum.com/u/equinox86)\
**Replies:** 0\
**Last updated:** [January 29, 2008, 7:43pm UTC](https://www.ruby-forum.com/t/nginx-in-netcraft-january-web-server-survey/127492 "2008-01-29T19:43:32Z")

</div>

Go Nginx! Referenced in Netcraft January Web Server Survey:

---

## [Unsure on how to rewrite](https://www.ruby-forum.com/t/unsure-on-how-to-rewrite/127477)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 0\
**Last updated:** [January 29, 2008, 5:32pm UTC](https://www.ruby-forum.com/t/unsure-on-how-to-rewrite/127477 "2008-01-29T17:32:29Z")

</div>

Hey all, Im trying to set up a rewrite rule so that all requests that don’t include: /visitors/ are rewritten to a particular url, could someone possibly help me out with the regex as im really not sure what to writ…

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

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