# Server

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

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

---

## [Error when using memcached\_pass + "if statement" that evaluates to true](https://www.ruby-forum.com/t/error-when-using-memcached-pass-if-statement-that-evaluates-to-true/123943)

<div class="topic-metadata">

**Author:** [@Larrytheliquid](https://www.ruby-forum.com/u/Larrytheliquid)\
**Replies:** 1\
**Last updated:** [December 26, 2007, 11:25am UTC](https://www.ruby-forum.com/t/error-when-using-memcached-pass-if-statement-that-evaluates-to-true/123943 "2007-12-26T11:25:35Z")

</div>

The following error occurs when any “if statement” evaluates to true inside of a context with a memcached\_pass: 2007/12/22 05:47:42 \[alert\] 1333#0: worker process 1334 exited on signal 10 Here are some example files…

---

## [Error when installing on jruby (fastthread dependency)](https://www.ruby-forum.com/t/error-when-installing-on-jruby-fastthread-dependency/123953)

<div class="topic-metadata">

**Author:** [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Replies:** 12\
**Last updated:** [December 24, 2007, 9:02am UTC](https://www.ruby-forum.com/t/error-when-installing-on-jruby-fastthread-dependency/123953 "2007-12-24T09:02:09Z")

</div>

I’m running jruby trunk which has integrated rubygems 1.0.0 and when I try and install mongrel with gem it blows up when the fastthread dependency tries to do a native compilation. I couldn’t find a copy of the gemspe…

---

## [Proxy streaming issues](https://www.ruby-forum.com/t/proxy-streaming-issues/117977)

<div class="topic-metadata">

**Author:** [@anton](https://www.ruby-forum.com/u/anton)\
**Replies:** 3\
**Last updated:** [December 24, 2007, 2:10am UTC](https://www.ruby-forum.com/t/proxy-streaming-issues/117977 "2007-12-24T02:10:42Z")

</div>

Hi, I have nginx set up on 4 servers for a video streaming project but I have drop out issues. Server A is a simple proxy server that passes through the requests to the backend box server B which holds the content. …

---

## [Nginx reverse proxy + mongrel and fork](https://www.ruby-forum.com/t/nginx-reverse-proxy-mongrel-and-fork/123812)

<div class="topic-metadata">

**Author:** [@bincedecrabe](https://www.ruby-forum.com/u/bincedecrabe)\
**Replies:** 4\
**Last updated:** [December 22, 2007, 8:10pm UTC](https://www.ruby-forum.com/t/nginx-reverse-proxy-mongrel-and-fork/123812 "2007-12-22T20:10:42Z")

</div>

Hi all, I originally posted this to the rails deployment list, but then I noticed the nginx forum, and thought it would be better suited here. I’m trying to kick off simple (yet long running) background processes fro…

---

## [Request\_uri question](https://www.ruby-forum.com/t/request-uri-question/123955)

<div class="topic-metadata">

**Author:** [@Wayne\_ESSeguin](https://www.ruby-forum.com/u/Wayne_ESSeguin)\
**Replies:** 0\
**Last updated:** [December 22, 2007, 5:06pm UTC](https://www.ruby-forum.com/t/request-uri-question/123955 "2007-12-22T17:06:17Z")

</div>

Igor, Is it possible to alter the request\_uri without using a rewrite so that the bakend request uri is changed? (eg remove some content based on regex) Thanks, ~Wayne

---

## [Segmentation fault in Mongrel when run with --debug](https://www.ruby-forum.com/t/segmentation-fault-in-mongrel-when-run-with-debug/123717)

<div class="topic-metadata">

**Author:** [@scottd72](https://www.ruby-forum.com/u/scottd72)\
**Replies:** 8\
**Last updated:** [December 22, 2007, 1:26am UTC](https://www.ruby-forum.com/t/segmentation-fault-in-mongrel-when-run-with-debug/123717 "2007-12-22T01:26:12Z")

</div>

I am having a problem with mongrel just stopping inside a periodically\_call\_remote function so I ran mongrel with debug enabled Mongrel seg faults after a few minutes The mongrel filelog shows 5 files open when this h…

---

## [Worker\_cpu\_affinity](https://www.ruby-forum.com/t/worker-cpu-affinity/123888)

<div class="topic-metadata">

**Author:** [@SSSSS\_S\_SSSSSSSSS\_S](https://www.ruby-forum.com/u/SSSSS_S_SSSSSSSSS_S)\
**Replies:** 3\
**Last updated:** [December 21, 2007, 10:35pm UTC](https://www.ruby-forum.com/t/worker-cpu-affinity/123888 "2007-12-21T22:35:28Z")

</div>

I’m running a INTEL 5110\*2 platform,RHEL4U4 for EM64T,Nginx 0.5.31 the nginx.conf: worker\_processes 4; worker\_cpu\_affinity 0001 0010 0100 1000; I see in my error log the following: 2007/12/22 01:48:33 \[alert\] 15442…

---

## [Client\_body\_buffer\_size set to 0](https://www.ruby-forum.com/t/client-body-buffer-size-set-to-0/123899)

<div class="topic-metadata">

**Author:** [@Manlio\_P](https://www.ruby-forum.com/u/Manlio_P)\
**Replies:** 1\
**Last updated:** [December 21, 2007, 9:33pm UTC](https://www.ruby-forum.com/t/client-body-buffer-size-set-to-0/123899 "2007-12-21T21:33:56Z")

</div>

Hi. Can client\_body\_buffer\_size be set to 0? I have done some tests with mod\_wsgi and it seems there are some problems. Thanks Manlio P.

---

## [Mongrel error : EMFILE too many open files](https://www.ruby-forum.com/t/mongrel-error-emfile-too-many-open-files/123212)

<div class="topic-metadata">

**Author:** [@scottd72](https://www.ruby-forum.com/u/scottd72)\
**Replies:** 18\
**Last updated:** [December 21, 2007, 4:37pm UTC](https://www.ruby-forum.com/t/mongrel-error-emfile-too-many-open-files/123212 "2007-12-21T16:37:05Z")

</div>

I have a periodically\_call\_remote call in a partial running at 0.20 times a second. \<%= periodically\_call\_remote(:update =\> ‘ack\_distance\_output’, :frequency =\> 0.2, :url=\>{:action =\> :ackAdjustDistance}) %\> the ac…

---

## [Https + large-file sending, sometimes fails](https://www.ruby-forum.com/t/https-large-file-sending-sometimes-fails/123420)

<div class="topic-metadata">

**Author:** [@GSSSSbor\_Farkas](https://www.ruby-forum.com/u/GSSSSbor_Farkas)\
**Replies:** 27\
**Last updated:** [December 21, 2007, 9:52am UTC](https://www.ruby-forum.com/t/https-large-file-sending-sometimes-fails/123420 "2007-12-21T09:52:12Z")

</div>

hi, i am sending large (400mb) csv files using nginx, using https. sometimes not the whole file is served by nginx. it simply closes the connection before the whole file is sent. if the downloader supports resuming, …

---

## [Stoping bots and wget in nginx](https://www.ruby-forum.com/t/stoping-bots-and-wget-in-nginx/123557)

<div class="topic-metadata">

**Author:** [@Alexis\_Torres\_Garni](https://www.ruby-forum.com/u/Alexis_Torres_Garni)\
**Replies:** 5\
**Last updated:** [December 20, 2007, 6:37pm UTC](https://www.ruby-forum.com/t/stoping-bots-and-wget-in-nginx/123557 "2007-12-20T18:37:06Z")

</div>

Hi guys, I am new to the list. Is there a way to stop or block the bots access and wget to a nginx web server? tnks att: alex

---

## [Variable re-assignment in config](https://www.ruby-forum.com/t/variable-re-assignment-in-config/123782)

<div class="topic-metadata">

**Author:** [@Wayne\_ESSeguin](https://www.ruby-forum.com/u/Wayne_ESSeguin)\
**Replies:** 0\
**Last updated:** [December 20, 2007, 5:11pm UTC](https://www.ruby-forum.com/t/variable-re-assignment-in-config/123782 "2007-12-20T17:11:29Z")

</div>

Is it possible to re-assign a variable in the config file? (eg. $request\_uri) I’ve tried using set but that yields: the duplicate “request\_uri” variable And trying to use an = yields unknown directive “$request\_uri” …

---

## [Long-running pages cause mongrel time-outs](https://www.ruby-forum.com/t/long-running-pages-cause-mongrel-time-outs/123466)

<div class="topic-metadata">

**Author:** [@Michael\_Van\_Wie](https://www.ruby-forum.com/u/Michael_Van_Wie)\
**Replies:** 9\
**Last updated:** [December 20, 2007, 3:11pm UTC](https://www.ruby-forum.com/t/long-running-pages-cause-mongrel-time-outs/123466 "2007-12-20T15:11:19Z")

</div>

Hi all, We use mongrel behind apache (using mod\_proxy\_balancer) to run an internal app for our business. Lately we’ve been seeing frequent errors from some of our mongrel processes. \[Sun Dec 16 08:48:47 2007\] \[erro…

---

## [Proxy\_pass fails after calling $r-\>has\_request\_body()](https://www.ruby-forum.com/t/proxy-pass-fails-after-calling-r-has-request-body/123735)

<div class="topic-metadata">

**Author:** [@hailandkill](https://www.ruby-forum.com/u/hailandkill)\
**Replies:** 2\
**Last updated:** [December 20, 2007, 1:24pm UTC](https://www.ruby-forum.com/t/proxy-pass-fails-after-calling-r-has-request-body/123735 "2007-12-20T13:24:50Z")

</div>

Hi, I’m trying to parse a request in a perl handler, extract a value from it and use that to set a variable for use in a proxy\_pass mapping. GET requests work fine, but POST’s fail. I suspect that the proxy\_pass is t…

---

## [Backend rewrite of subdomains](https://www.ruby-forum.com/t/backend-rewrite-of-subdomains/123705)

<div class="topic-metadata">

**Author:** [@Wayne\_ESSeguin](https://www.ruby-forum.com/u/Wayne_ESSeguin)\
**Replies:** 8\
**Last updated:** [December 20, 2007, 8:17am UTC](https://www.ruby-forum.com/t/backend-rewrite-of-subdomains/123705 "2007-12-20T08:17:56Z")

</div>

Igor, I’ve searched the mailing lists and read the docs and played around with the server but can’t quite come up with what I’m trying to do. I am trying to configure .staging.example.com proxy to backend staging.ex…

---

## [Nginx-0.6.22](https://www.ruby-forum.com/t/nginx-0-6-22/123678)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 0\
**Last updated:** [December 19, 2007, 6:06pm UTC](https://www.ruby-forum.com/t/nginx-0-6-22/123678 "2007-12-19T18:06:02Z")

</div>

Changes with nginx 0.6.22 19 Dec 2007 \*) Change: now all ngx\_http\_perl\_module methods return values copied to perl’s allocated memory. \*) Bugfix: if nginx was built with ngx\_h…

---

## [Site redirect](https://www.ruby-forum.com/t/site-redirect/123602)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 2\
**Last updated:** [December 19, 2007, 1:24pm UTC](https://www.ruby-forum.com/t/site-redirect/123602 "2007-12-19T13:24:03Z")

</div>

Wonder if anyone’s got any idea how to do this, I’ve got a mobile version of my website at… http://red91rails.mofuse.mobi/ and I’ve setup a dns record for → mob.red91.com what i now want to do is point any traffic go…

---

## [Cluster, upload progress and sessions](https://www.ruby-forum.com/t/cluster-upload-progress-and-sessions/123636)

<div class="topic-metadata">

**Author:** [@joergd](https://www.ruby-forum.com/u/joergd)\
**Replies:** 0\
**Last updated:** [December 19, 2007, 11:42am UTC](https://www.ruby-forum.com/t/cluster-upload-progress-and-sessions/123636 "2007-12-19T11:42:43Z")

</div>

Hi, I have a mongrel cluster with a mongrel\_upload\_progress … when I upload a file, my cookie session id changes … So on the upload form, my Session ID is say: BAh7ByIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZs…

---

## [Error\_page x 2?](https://www.ruby-forum.com/t/error-page-x-2/123500)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [December 18, 2007, 8:30am UTC](https://www.ruby-forum.com/t/error-page-x-2/123500 "2007-12-18T08:30:00Z")

</div>

Can you intercept errors twice? I tried something like the following, but it still serves the nginx 404 page. Is there a better way? server { root /data; error\_page 404 = /fetch$uri; location /fetch { internal; …

---

## [Cookie information in mod\_perl](https://www.ruby-forum.com/t/cookie-information-in-mod-perl/123497)

<div class="topic-metadata">

**Author:** [@Kingsley\_F](https://www.ruby-forum.com/u/Kingsley_F)\
**Replies:** 1\
**Last updated:** [December 18, 2007, 7:44am UTC](https://www.ruby-forum.com/t/cookie-information-in-mod-perl/123497 "2007-12-18T07:44:21Z")

</div>

Is there a way to get cookie information in the perl module? Kingsley F. Technical Leader Content Services / Content Management Group ============================================= Internode Systems Pty Ltd PO Box 2…

---

## [Mongrel + Lighttpd](https://www.ruby-forum.com/t/mongrel-lighttpd/123475)

<div class="topic-metadata">

**Author:** [@Pete\_DeLaurentis](https://www.ruby-forum.com/u/Pete_DeLaurentis)\
**Replies:** 3\
**Last updated:** [December 18, 2007, 4:32am UTC](https://www.ruby-forum.com/t/mongrel-lighttpd/123475 "2007-12-18T04:32:03Z")

</div>

Hi guys, I’ve been chasing a problem in my web-stack: Lighttpd -\> Mongrel -\> Rails, and found a problem with the interaction of Lighttpd and Mongrel. If a request takes more than 5 seconds, Lighty will retry it - and …

---

## [Using mod\_xsendfile and x\_send\_file with Mongrel](https://www.ruby-forum.com/t/using-mod-xsendfile-and-x-send-file-with-mongrel/123474)

<div class="topic-metadata">

**Author:** [@random52k](https://www.ruby-forum.com/u/random52k)\
**Replies:** 0\
**Last updated:** [December 18, 2007, 2:54am UTC](https://www.ruby-forum.com/t/using-mod-xsendfile-and-x-send-file-with-mongrel/123474 "2007-12-18T02:54:26Z")

</div>

Can anyone tell me how to get x\_send\_file working with mongrel 1.1.1 and apache 2.2? I’ve installed the mod\_xsendfile apache module from tn123.ath.cx is offline and it works fine serving content from a PHP script, bu…

---

## ["mongrel\_rails start" does absolutely nothing](https://www.ruby-forum.com/t/mongrel-rails-start-does-absolutely-nothing/123462)

<div class="topic-metadata">

**Author:** [@liberte](https://www.ruby-forum.com/u/liberte)\
**Replies:** 0\
**Last updated:** [December 18, 2007, 12:04am UTC](https://www.ruby-forum.com/t/mongrel-rails-start-does-absolutely-nothing/123462 "2007-12-18T00:04:05Z")

</div>

I’m having a strange issue with Mongrel. Post-install of Mac OS X 10.5, my Mongrel will not start under any circumstances. I’ve already removed (“sudo gem uninstall mongrel”), ran “gem cleanup” to remove old versio…

---

## [Different error code during proxied backend restart?](https://www.ruby-forum.com/t/different-error-code-during-proxied-backend-restart/123417)

<div class="topic-metadata">

**Author:** [@kappa](https://www.ruby-forum.com/u/kappa)\
**Replies:** 2\
**Last updated:** [December 17, 2007, 7:11pm UTC](https://www.ruby-forum.com/t/different-error-code-during-proxied-backend-restart/123417 "2007-12-17T19:11:49Z")

</div>

At the moment, nginx (I use 0.5.33) reports 404 (Not Found) when the (reverse-) proxied backend is unavailable (for example, while it is being restarted). I think it is somewhat confusing, both for normal users, and f…

---

## [Re: Mongrel install problem](https://www.ruby-forum.com/t/re-mongrel-install-problem/123397)

<div class="topic-metadata">

**Author:** [@rob](https://www.ruby-forum.com/u/rob)\
**Replies:** 0\
**Last updated:** [December 17, 2007, 11:36am UTC](https://www.ruby-forum.com/t/re-mongrel-install-problem/123397 "2007-12-17T11:36:53Z")

</div>

Hi Sean, Its fixed now. I think the main problem was that I just did a bunch of simple installs through apt, and then “gem install whatever” and the versions of different things ended up not tallying properly: the lat…

---

## [Fresh install on Debian Etch - Mongrel immediately hangs](https://www.ruby-forum.com/t/fresh-install-on-debian-etch-mongrel-immediately-hangs/121100)

<div class="topic-metadata">

**Author:** [@otsu](https://www.ruby-forum.com/u/otsu)\
**Replies:** 6\
**Last updated:** [December 17, 2007, 10:15am UTC](https://www.ruby-forum.com/t/fresh-install-on-debian-etch-mongrel-immediately-hangs/121100 "2007-12-17T10:15:58Z")

</div>

Hi, I just did a clean install of Ruby 1.8.5 Rubygems 0.9.0 and the Mongrel and Mongrel\_Cluster gems. I used only the Debian Etch package manager, nothing compiled myself. Now, on a testapp when I do a script/serve…

---

## [Http\_request-\>connection-\>log, cycle-\>log and ending '\\n'](https://www.ruby-forum.com/t/http-request-connection-log-cycle-log-and-ending-n/123350)

<div class="topic-metadata">

**Author:** [@Manlio\_P](https://www.ruby-forum.com/u/Manlio_P)\
**Replies:** 2\
**Last updated:** [December 16, 2007, 10:18pm UTC](https://www.ruby-forum.com/t/http-request-connection-log-cycle-log-and-ending-n/123350 "2007-12-16T22:18:24Z")

</div>

Hi. I have noted a difference in the log output of http\_request-\>connection-\>log and cycle-\>log and ending. For the former, an ending new line character is ignored, so writing “log line” and “log line\\n” is equivalen…

---

## [Problem with map+proxy\_pass in 0.6.21](https://www.ruby-forum.com/t/problem-with-map-proxy-pass-in-0-6-21/123277)

<div class="topic-metadata">

**Author:** [@cliffwiggs](https://www.ruby-forum.com/u/cliffwiggs)\
**Replies:** 8\
**Last updated:** [December 15, 2007, 8:40pm UTC](https://www.ruby-forum.com/t/problem-with-map-proxy-pass-in-0-6-21/123277 "2007-12-15T20:40:47Z")

</div>

I’ve used the map+proxy\_pass technique successfully elsewhere, so I thought I’d try to use to to proxy to a bunch of OpenVZ virtual servers. Each server is also running a copy of Nginx 0.5.x which in turns proxies to …

---

## [Bandwidth limit per vhost not per user](https://www.ruby-forum.com/t/bandwidth-limit-per-vhost-not-per-user/123272)

<div class="topic-metadata">

**Author:** [@The\_Man](https://www.ruby-forum.com/u/The_Man)\
**Replies:** 1\
**Last updated:** [December 15, 2007, 7:37pm UTC](https://www.ruby-forum.com/t/bandwidth-limit-per-vhost-not-per-user/123272 "2007-12-15T19:37:25Z")

</div>

Hi, is it possible to limit bandwidth per vhost in nginx or it’s only per user ? Thanks, Tareq Yaghmour

---

## [Tmp file copy on upload](https://www.ruby-forum.com/t/tmp-file-copy-on-upload/123267)

<div class="topic-metadata">

**Author:** [@Matt\_Carr](https://www.ruby-forum.com/u/Matt_Carr)\
**Replies:** 0\
**Last updated:** [December 15, 2007, 6:24pm UTC](https://www.ruby-forum.com/t/tmp-file-copy-on-upload/123267 "2007-12-15T18:24:06Z")

</div>

I have an upload progress bar that runs fine, except when the tmp file is being copied locally. Can someone explain why the file is copied from mongrel1626-0 to CGI1626-0 ? It results in a progress bar that hang…

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

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