# Server

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

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

---

## [Nginx ssl](https://www.ruby-forum.com/t/nginx-ssl/118016)

<div class="topic-metadata">

**Author:** [@Eire\_A](https://www.ruby-forum.com/u/Eire_A)\
**Replies:** 3\
**Last updated:** [October 23, 2007, 9:28pm UTC](https://www.ruby-forum.com/t/nginx-ssl/118016 "2007-10-23T21:28:01Z")

</div>

hi i would like to get nginx to start automatically if the server should crash. i am using ssl and ever time i start nginx it askes me for my passphrase. is there a way to set this so it doesn’t ask so that it can s…

---

## [Synchronous write](https://www.ruby-forum.com/t/synchronous-write/117368)

<div class="topic-metadata">

**Author:** [@Manlio\_P](https://www.ruby-forum.com/u/Manlio_P)\
**Replies:** 20\
**Last updated:** [October 23, 2007, 1:00pm UTC](https://www.ruby-forum.com/t/synchronous-write/117368 "2007-10-23T13:00:15Z")

</div>

Hi. The mod\_wsgi implementation is almost complete. The only feature that I have to implement is the write callable: The problem is that the WSGI spec requires the passed-in string to be completely sent to the clien…

---

## [How to change apache .htaccess to nginx rewrite](https://www.ruby-forum.com/t/how-to-change-apache-htaccess-to-nginx-rewrite/118001)

<div class="topic-metadata">

**Author:** [@liyu](https://www.ruby-forum.com/u/liyu)\
**Replies:** 3\
**Last updated:** [October 23, 2007, 11:53am UTC](https://www.ruby-forum.com/t/how-to-change-apache-htaccess-to-nginx-rewrite/118001 "2007-10-23T11:53:23Z")

</div>

apache .htaccess RewriteRule ^newposts(/?)+$ index.php?subaction=newposts \[L\] RewriteRule ^newposts/page/(\[0-9\]+)(/?)+$ index.php?subaction=newposts&cstart=$1 \[L\] RewriteRule ^static/(.\*).html(/?)+$ index.php?do=stat…

---

## [Locations with regex](https://www.ruby-forum.com/t/locations-with-regex/117979)

<div class="topic-metadata">

**Author:** [@Alejandro\_V](https://www.ruby-forum.com/u/Alejandro_V)\
**Replies:** 1\
**Last updated:** [October 22, 2007, 11:48pm UTC](https://www.ruby-forum.com/t/locations-with-regex/117979 "2007-10-22T23:48:02Z")

</div>

Hello all, Igor, First of all, congrats Igor for nginx, the most enlightened and powerful web server/proxy i’ve used. My notebook doesn’t swap any more :wink: I’m having some problem with regexed location in my confi…

---

## [Weird error - stream closed](https://www.ruby-forum.com/t/weird-error-stream-closed/117905)

<div class="topic-metadata">

**Author:** [@Bostjan\_Potocnik](https://www.ruby-forum.com/u/Bostjan_Potocnik)\
**Replies:** 6\
**Last updated:** [October 22, 2007, 4:14pm UTC](https://www.ruby-forum.com/t/weird-error-stream-closed/117905 "2007-10-22T16:14:39Z")

</div>

Hi all, few days ago mongrel start crashing on one of my sites, i upgraded to latest version (1.0.1) but problem still exists. When i try to load page in browser random elements are missing or page is blank (empty ht…

---

## [Nginx-0.6.15](https://www.ruby-forum.com/t/nginx-0-6-15/117921)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 0\
**Last updated:** [October 22, 2007, 1:28pm UTC](https://www.ruby-forum.com/t/nginx-0-6-15/117921 "2007-10-22T13:28:00Z")

</div>

Changes with nginx 0.6.15 22 Oct 2007 \*) Feature: cygwin compatibility. Thanks to Vladimir Kutakov. \*) Feature: the "merge\_slashes" directive. \*) Feature: the "gzip\_vary" dir…

---

## [Gzip compression and Transfer-Encoding](https://www.ruby-forum.com/t/gzip-compression-and-transfer-encoding/117909)

<div class="topic-metadata">

**Author:** [@pezdude](https://www.ruby-forum.com/u/pezdude)\
**Replies:** 4\
**Last updated:** [October 22, 2007, 1:13pm UTC](https://www.ruby-forum.com/t/gzip-compression-and-transfer-encoding/117909 "2007-10-22T13:13:55Z")

</div>

Hi We use the following settings for gzip compression gzip on; gzip\_min\_length 1100; gzip\_comp\_level 5; gzip\_buffers 4 16k; gzip\_types text/html text/plain text/xml text/css application/x-javascript appli…

---

## [Reliable cluster::restart](https://www.ruby-forum.com/t/reliable-cluster-restart/117862)

<div class="topic-metadata">

**Author:** [@Eric\_Kolve](https://www.ruby-forum.com/u/Eric_Kolve)\
**Replies:** 1\
**Last updated:** [October 22, 2007, 9:35am UTC](https://www.ruby-forum.com/t/reliable-cluster-restart/117862 "2007-10-22T09:35:09Z")

</div>

I run into a problem every so often while doing a cluster::restart where a child sleeps after receiving the KILL, but does not get restarted. This is caused by mongrel not shutting down until either all the requests h…

---

## [Connection rate limiting in proxy upstream?](https://www.ruby-forum.com/t/connection-rate-limiting-in-proxy-upstream/117821)

<div class="topic-metadata">

**Author:** [@ezra\_z](https://www.ruby-forum.com/u/ezra_z)\
**Replies:** 0\
**Last updated:** [October 20, 2007, 9:32pm UTC](https://www.ruby-forum.com/t/connection-rate-limiting-in-proxy-upstream/117821 "2007-10-20T21:32:27Z")

</div>

Hello Igor- I was wondering if you had any timeframe for implementing connection rate limiting for nginx’s proxy module? This has become something that people using nginx with Rails/mongrel really need badly. I offer…

---

## [Problems with POST data](https://www.ruby-forum.com/t/problems-with-post-data/117805)

<div class="topic-metadata">

**Author:** [@Manlio\_P](https://www.ruby-forum.com/u/Manlio_P)\
**Replies:** 0\
**Last updated:** [October 20, 2007, 3:34pm UTC](https://www.ruby-forum.com/t/problems-with-post-data/117805 "2007-10-20T15:34:51Z")

</div>

I’m testing mod\_wsgi with Apache Bench, using a POST command, but there is something wrong. Here is the log: \*1 http process request line \*1 http request line: “POST /wsgi-echo/ HTTP/1.0” \*1 http uri: “/wsgi-echo/” …

---

## [Nginx assuming all non-specified domains are handled by another vhost](https://www.ruby-forum.com/t/nginx-assuming-all-non-specified-domains-are-handled-by-another-vhost/117773)

<div class="topic-metadata">

**Author:** [@James\_Darling](https://www.ruby-forum.com/u/James_Darling)\
**Replies:** 3\
**Last updated:** [October 20, 2007, 2:02pm UTC](https://www.ruby-forum.com/t/nginx-assuming-all-non-specified-domains-are-handled-by-another-vhost/117773 "2007-10-20T14:02:25Z")

</div>

Hi all, I’m not quite sure how to explain my problem, hence a failure to google effectively, so I don’t know if this problem is unique or not, or whether it’s me or a bug. I have many domains, and therefore have many…

---

## [Is this possible?](https://www.ruby-forum.com/t/is-this-possible/117785)

<div class="topic-metadata">

**Author:** [@Ben\_Marklein](https://www.ruby-forum.com/u/Ben_Marklein)\
**Replies:** 4\
**Last updated:** [October 20, 2007, 11:47am UTC](https://www.ruby-forum.com/t/is-this-possible/117785 "2007-10-20T11:47:53Z")

</div>

I’m relatively new to nginx and I’m trying to figure out whether it’s suitable for a specific use I have. I’d like to set up the following for serving a high volume of “badge” images in a lazy mannger. These are ima…

---

## [Limiting requests in a given timeframe](https://www.ruby-forum.com/t/limiting-requests-in-a-given-timeframe/117750)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 1\
**Last updated:** [October 20, 2007, 10:54am UTC](https://www.ruby-forum.com/t/limiting-requests-in-a-given-timeframe/117750 "2007-10-20T10:54:42Z")

</div>

Hey there, nginx seems to be a great product and I’d like to use it as a kind of proxy/load-balancer in front of a couple of fastcgi-backends. But I need to limit the number of requests by one IP in a given timeframe…

---

## [Status line processing in filter module](https://www.ruby-forum.com/t/status-line-processing-in-filter-module/117702)

<div class="topic-metadata">

**Author:** [@Manlio\_P](https://www.ruby-forum.com/u/Manlio_P)\
**Replies:** 3\
**Last updated:** [October 19, 2007, 10:15pm UTC](https://www.ruby-forum.com/t/status-line-processing-in-filter-module/117702 "2007-10-19T22:15:38Z")

</div>

Hi. When trying to enable support for Last-Modified validation in mod\_wsgi I have found this code in the filter module: /\* status line \*/ if (r-\>headers\_out.status\_line.len) { len += r-\>headers\_out.status\_line.…

---

## [Ssi problem / memcached](https://www.ruby-forum.com/t/ssi-problem-memcached/117245)

<div class="topic-metadata">

**Author:** [@Jodok\_B](https://www.ruby-forum.com/u/Jodok_B)\
**Replies:** 3\
**Last updated:** [October 19, 2007, 9:18pm UTC](https://www.ruby-forum.com/t/ssi-problem-memcached/117245 "2007-10-19T21:18:18Z")

</div>

hi, is there a reason that ssi escapes the all the urls? imho it should not escape them. if you request some%20url%20with%20spaces - it’s escaping again. we’re using unescaped utf-8 strings to access memcached - the …

---

## [Header filter](https://www.ruby-forum.com/t/header-filter/117715)

<div class="topic-metadata">

**Author:** [@Manlio\_P](https://www.ruby-forum.com/u/Manlio_P)\
**Replies:** 3\
**Last updated:** [October 19, 2007, 7:48pm UTC](https://www.ruby-forum.com/t/header-filter/117715 "2007-10-19T19:48:07Z")

</div>

I’m trying to define a custom header filter in mod\_wsgi, but my filter is not called. Is this supported? The filter is very simple, and I need it since Ningx does not set the r-\>header\_only flag: static ngx\_int\_t n…

---

## [Error messages when running mongrel on win32](https://www.ruby-forum.com/t/error-messages-when-running-mongrel-on-win32/117727)

<div class="topic-metadata">

**Author:** [@BallS\_Donald\_A\_Jr\_S](https://www.ruby-forum.com/u/BallS_Donald_A_Jr_S)\
**Replies:** 0\
**Last updated:** [October 19, 2007, 7:13pm UTC](https://www.ruby-forum.com/t/error-messages-when-running-mongrel-on-win32/117727 "2007-10-19T19:13:02Z")

</div>

Hi folks. I’m running mongrel (1.0) on a win32 box (2k3 iirc). I’m using a Google Mini to index the contents of my rails (1.2.4) webapp. I’ve been noticing that when I run a search, I get lots of these messages in my …

---

## [Fastcgi problems (connection hangs/time outs)](https://www.ruby-forum.com/t/fastcgi-problems-connection-hangs-time-outs/116756)

<div class="topic-metadata">

**Author:** [@Attila\_Nagy](https://www.ruby-forum.com/u/Attila_Nagy)\
**Replies:** 2\
**Last updated:** [October 19, 2007, 11:06am UTC](https://www.ruby-forum.com/t/fastcgi-problems-connection-hangs-time-outs/116756 "2007-10-19T11:06:12Z")

</div>

Hello, I have a very simple perl fastcgi application (just for testing) and nginx 0.5.32 and 0.6.13. With both versions I get nothing in the web browser and the log says that there is a timeout. ktrace of the nginx …

---

## [Turning off disk buffering?](https://www.ruby-forum.com/t/turning-off-disk-buffering/117609)

<div class="topic-metadata">

**Author:** [@Athan\_D](https://www.ruby-forum.com/u/Athan_D)\
**Replies:** 5\
**Last updated:** [October 19, 2007, 7:04am UTC](https://www.ruby-forum.com/t/turning-off-disk-buffering/117609 "2007-10-19T07:04:01Z")

</div>

I wonder what’s the best practice to prevent or limit disk buffering, when using nginx as primary http server (php fcgi). Is it possible to turn it off completely? Athan

---

## [Disable gzip based on user-agent](https://www.ruby-forum.com/t/disable-gzip-based-on-user-agent/117574)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [October 18, 2007, 3:31pm UTC](https://www.ruby-forum.com/t/disable-gzip-based-on-user-agent/117574 "2007-10-18T15:31:37Z")

</div>

Hi all, Is it possible to turn off gzip compression based on $http\_user\_agent? I tried: if ($http\_user\_agent ~\* msie\\s+6.0) { gzip off; } Except nginx says that I can’t put gzip there. Is there another way? Backgro…

---

## [Proxy errors with apache2.2.3 + mongrels](https://www.ruby-forum.com/t/proxy-errors-with-apache2-2-3-mongrels/117484)

<div class="topic-metadata">

**Author:** [@therobot](https://www.ruby-forum.com/u/therobot)\
**Replies:** 9\
**Last updated:** [October 18, 2007, 2:24am UTC](https://www.ruby-forum.com/t/proxy-errors-with-apache2-2-3-mongrels/117484 "2007-10-18T02:24:21Z")

</div>

I’ve posted this to rails-deployment as well. I have to administer a medium size rails app (1’5 million requests each day), recently I’ve switched from lighttpd + fcgi to apache + mongrel. In the following lines I am …

---

## [Design flaw? - num\_processors, accept/close](https://www.ruby-forum.com/t/design-flaw-num-processors-accept-close/117271)

<div class="topic-metadata">

**Author:** [@newbee-robert](https://www.ruby-forum.com/u/newbee-robert)\
**Replies:** 27\
**Last updated:** [October 18, 2007, 12:15am UTC](https://www.ruby-forum.com/t/design-flaw-num-processors-accept-close/117271 "2007-10-18T00:15:50Z")

</div>

Rails instances themselves are almost always single-threaded, whereas Mongrel, and it’s acceptor, are multithreaded. In a situation with long-running Rails pages this presents a problem for mod\_proxy\_balancer. If num…

---

## [Forcing a browser to open a new connection](https://www.ruby-forum.com/t/forcing-a-browser-to-open-a-new-connection/117531)

<div class="topic-metadata">

**Author:** [@Manlio\_P](https://www.ruby-forum.com/u/Manlio_P)\
**Replies:** 4\
**Last updated:** [October 17, 2007, 9:04pm UTC](https://www.ruby-forum.com/t/forcing-a-browser-to-open-a-new-connection/117531 "2007-10-17T21:04:57Z")

</div>

What is the best method for forcing a browser to close the current connection and to open a new connection? Now I’m using the Refresh headers. Thanks Manlio P.

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/116932)

<div class="topic-metadata">

**Author:** [@matteo-nodari](https://www.ruby-forum.com/u/matteo-nodari)\
**Replies:** 6\
**Last updated:** [October 17, 2007, 10:57am UTC](https://www.ruby-forum.com/t/no-subject/116932 "2007-10-17T10:57:06Z")

</div>

Anyone can help me about this? -------- Messaggio Originale -------- Oggetto: Possible bug with set-cookie Data: Thu, 04 Oct 2007 15:24:57 +0200 Da: Matteo N. removed\_email\_address@domain.invalid A: removed\_email\_a…

---

## [Map directive case insensitiv?](https://www.ruby-forum.com/t/map-directive-case-insensitiv/117438)

<div class="topic-metadata">

**Author:** [@Janko\_H](https://www.ruby-forum.com/u/Janko_H)\
**Replies:** 1\
**Last updated:** [October 16, 2007, 9:56pm UTC](https://www.ruby-forum.com/t/map-directive-case-insensitiv/117438 "2007-10-16T21:56:11Z")

</div>

Testing a generated list of maps I noticed that nginx handles the keys in a case insensitiv way, reporting conflicts for Handel http://…; handel http://…; Is this intended? With regards, \_\_Janko H.

---

## [Redirects with mongrel (dropping the www. from a url)](https://www.ruby-forum.com/t/redirects-with-mongrel-dropping-the-www-from-a-url/117428)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 1\
**Last updated:** [October 16, 2007, 8:58pm UTC](https://www.ruby-forum.com/t/redirects-with-mongrel-dropping-the-www-from-a-url/117428 "2007-10-16T20:58:53Z")

</div>

Hi All, I have a rails app running on an apache virtual host with mongrel that i want to set up a redirect from www.someapp.com to someapp.com (dropping the www.) I have tried doing this in apache using a rewrite ru…

---

## [Multiple 404 error pages](https://www.ruby-forum.com/t/multiple-404-error-pages/117429)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 1\
**Last updated:** [October 16, 2007, 8:33pm UTC](https://www.ruby-forum.com/t/multiple-404-error-pages/117429 "2007-10-16T20:33:09Z")

</div>

Is it possible to have a different 404 or 500 error page be shown based on the request path? For example, any failed request that started with “/admin” would get an error page that matched the layout of the admin layo…

---

## [Access\_log](https://www.ruby-forum.com/t/access-log/117374)

<div class="topic-metadata">

**Author:** [@BartSSSS\_omiej\_Syry](https://www.ruby-forum.com/u/BartSSSS_omiej_Syry)\
**Replies:** 3\
**Last updated:** [October 16, 2007, 6:21pm UTC](https://www.ruby-forum.com/t/access-log/117374 "2007-10-16T18:21:19Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Is it possible to send logs to some program instead of file? Documentation (http://wiki.codemongers.com/NginxHttpLogModule#access\_log) show only one way (file). Now we …

---

## [Re: POST with huge HTTP body](https://www.ruby-forum.com/t/re-post-with-huge-http-body/117282)

<div class="topic-metadata">

**Author:** [@sinkva](https://www.ruby-forum.com/u/sinkva)\
**Replies:** 2\
**Last updated:** [October 16, 2007, 10:04am UTC](https://www.ruby-forum.com/t/re-post-with-huge-http-body/117282 "2007-10-16T10:04:04Z")

</div>

Since a vanilla Mongrel will store uploaded data on disk in a tempfile, maybe it has something to do with your Railsdav plugin? I just tested an 80 MB upload with my Apache 2.2.6 reverse proxy and Mongrel 1.0.1 cluste…

---

## [Re: POST with huge HTTP body](https://www.ruby-forum.com/t/re-post-with-huge-http-body/117275)

<div class="topic-metadata">

**Author:** [@sinkva](https://www.ruby-forum.com/u/sinkva)\
**Replies:** 2\
**Last updated:** [October 16, 2007, 7:49am UTC](https://www.ruby-forum.com/t/re-post-with-huge-http-body/117275 "2007-10-16T07:49:32Z")

</div>

A while ago I wrote a plugin to limit uploads in Mongrel. Mongrel does save uploads to a tempfile on disk - if the upload is bigger than about 12 KB - using a Ruby TempFile-object. (which stores in the $TMPDIR, /tmp o…

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

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