# Server

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

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

---

## [How to modfiy headers in and headers out](https://www.ruby-forum.com/t/how-to-modfiy-headers-in-and-headers-out/118814)

<div class="topic-metadata">

**Author:** [@Yingyuan\_C](https://www.ruby-forum.com/u/Yingyuan_C)\
**Replies:** 4\
**Last updated:** [November 1, 2007, 6:46am UTC](https://www.ruby-forum.com/t/how-to-modfiy-headers-in-and-headers-out/118814 "2007-11-01T06:46:56Z")

</div>

Hello all. I want to write a balancer module to balance requests based on cookie. In the phase of upstream\_init\_peer, I lookup special cookie from headers\_in.headers. If not found, I’ll generate a new one, insert it …

---

## [Setting caching headers for proxied content?](https://www.ruby-forum.com/t/setting-caching-headers-for-proxied-content/118856)

<div class="topic-metadata">

**Author:** [@kappa](https://www.ruby-forum.com/u/kappa)\
**Replies:** 1\
**Last updated:** [October 31, 2007, 6:53pm UTC](https://www.ruby-forum.com/t/setting-caching-headers-for-proxied-content/118856 "2007-10-31T18:53:04Z")

</div>

As this is my first post to the list… great thanks to the author of nginx and all people who helped to develop this excellent piece of software. Fantastic example of well written and very useful software. Thank you. N…

---

## [Expires + if + break](https://www.ruby-forum.com/t/expires-if-break/118834)

<div class="topic-metadata">

**Author:** [@san](https://www.ruby-forum.com/u/san)\
**Replies:** 0\
**Last updated:** [October 31, 2007, 2:59pm UTC](https://www.ruby-forum.com/t/expires-if-break/118834 "2007-10-31T14:59:24Z")

</div>

This results in the Expires header being set correctly: location / { if ($request\_uri ~ ^/images/.\*$) { expires max; break; } if (-f $request\_filename) { break; } proxy\_pass http://mongrel; } This does not: l…

---

## [Unusual requirement using perl?](https://www.ruby-forum.com/t/unusual-requirement-using-perl/118741)

<div class="topic-metadata">

**Author:** [@Kingsley\_F](https://www.ruby-forum.com/u/Kingsley_F)\
**Replies:** 6\
**Last updated:** [October 31, 2007, 10:38am UTC](https://www.ruby-forum.com/t/unusual-requirement-using-perl/118741 "2007-10-31T10:38:47Z")

</div>

I have an unusual requirement for a poject im working on. What I need to do is somehow make it so that an ip address is able to hit a folder but anyone not on that address will get a 404 or 403 message. Im not much o…

---

## [Random cpu spikes, EBADF errors](https://www.ruby-forum.com/t/random-cpu-spikes-ebadf-errors/118127)

<div class="topic-metadata">

**Author:** [@zachary\_p](https://www.ruby-forum.com/u/zachary_p)\
**Replies:** 28\
**Last updated:** [October 31, 2007, 2:02am UTC](https://www.ruby-forum.com/t/random-cpu-spikes-ebadf-errors/118127 "2007-10-31T02:02:16Z")

</div>

In May I had problem with mongrels suddenly consuming huge cpu resources for a minute or two and then returning to normal (load average spikes up to 3.8and then back down to a regular 0.2 over the course of 5 minutes…

---

## [WebDav Support](https://www.ruby-forum.com/t/webdav-support/118756)

<div class="topic-metadata">

**Author:** [@flopezr333](https://www.ruby-forum.com/u/flopezr333)\
**Replies:** 2\
**Last updated:** [October 30, 2007, 8:57pm UTC](https://www.ruby-forum.com/t/webdav-support/118756 "2007-10-30T20:57:35Z")

</div>

Hi guys, I read that mongrel supports the webdav protocol. I need to “create” the webdav files and allow a third party app access it just for read purposes. What do you recommend?

---

## [Temp disk space usage](https://www.ruby-forum.com/t/temp-disk-space-usage/117545)

<div class="topic-metadata">

**Author:** [@Andrew\_Deason](https://www.ruby-forum.com/u/Andrew_Deason)\
**Replies:** 6\
**Last updated:** [October 30, 2007, 7:25pm UTC](https://www.ruby-forum.com/t/temp-disk-space-usage/117545 "2007-10-30T19:25:08Z")

</div>

I’m running nginx 0.5.26 on OpenBSD 4.0 as a load-balancing reverse proxy to two backend web servers. Recently we tried serving several moderately large static files (around 100-200MB each), and had numerous concurren…

---

## [Nginx mercurial repo](https://www.ruby-forum.com/t/nginx-mercurial-repo/118680)

<div class="topic-metadata">

**Author:** [@Maxim\_D](https://www.ruby-forum.com/u/Maxim_D)\
**Replies:** 1\
**Last updated:** [October 30, 2007, 12:33pm UTC](https://www.ruby-forum.com/t/nginx-mercurial-repo/118680 "2007-10-30T12:33:06Z")

</div>

Hello! This weekend I’ve finally did the patch for Mercurial’s issue660, and managed to import all public nginx tarballs into Mercurial. Results can be found here: http://mdounin.ru/hg/nginx-vendor-current http://m…

---

## [Nginx fails to deliver certain files with gzip + SSL](https://www.ruby-forum.com/t/nginx-fails-to-deliver-certain-files-with-gzip-ssl/118599)

<div class="topic-metadata">

**Author:** [@Joshua\_Sierles](https://www.ruby-forum.com/u/Joshua_Sierles)\
**Replies:** 9\
**Last updated:** [October 30, 2007, 12:16pm UTC](https://www.ruby-forum.com/t/nginx-fails-to-deliver-certain-files-with-gzip-ssl/118599 "2007-10-30T12:16:42Z")

</div>

I’ve noticed a problem with nginx 0.6.x running with gzip and SSL. Some static file delivery is cut off half way. This file always breaks, for example: http://prototypejs.org/assets/2007/10/16/prototype.js Here is th…

---

## [Is mod\_php walking on its road?](https://www.ruby-forum.com/t/is-mod-php-walking-on-its-road/118015)

<div class="topic-metadata">

**Author:** [@scrozier](https://www.ruby-forum.com/u/scrozier)\
**Replies:** 18\
**Last updated:** [October 30, 2007, 9:23am UTC](https://www.ruby-forum.com/t/is-mod-php-walking-on-its-road/118015 "2007-10-30T09:23:36Z")

</div>

Hi, all Does anybody here have a plan or already be writing a nginx version mod\_php that similar with apache’s? If nobody does, we are try to write one. regards, Steve C. http://www.sina.com

---

## [Problems with mongrel on NetBSD](https://www.ruby-forum.com/t/problems-with-mongrel-on-netbsd/118674)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 9\
**Last updated:** [October 30, 2007, 1:41am UTC](https://www.ruby-forum.com/t/problems-with-mongrel-on-netbsd/118674 "2007-10-30T01:41:16Z")

</div>

I seem to have a (recent) problem with mongrel on NetBSD. I’m running a development release of NetBSD (called NetBSD-current 4.99.34). When I start mongrel, it listens on the IPv6 wildcard address, but not on the IPv…

---

## [0.6.16](https://www.ruby-forum.com/t/0-6-16/118618)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 0\
**Last updated:** [October 29, 2007, 2:59pm UTC](https://www.ruby-forum.com/t/0-6-16/118618 "2007-10-29T14:59:57Z")

</div>

Changes with nginx 0.6.16 29 Oct 2007 \*) Change: now the uname(2) is used on Linux instead of procfs. Thanks to Ilya Novikov. \*) Bugfix: if the "?" character was in a "error\_p…

---

## [Evented mongrel dies on USR2](https://www.ruby-forum.com/t/evented-mongrel-dies-on-usr2/118577)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [October 29, 2007, 5:32am UTC](https://www.ruby-forum.com/t/evented-mongrel-dies-on-usr2/118577 "2007-10-29T05:32:45Z")

</div>

Sorry if this is the wrong place to ask, but when I run mongrel evented using swiftiply and then send it the USR2 signal to restart it, it dies. Without eventing, USR2 restarts mongrel as expected. Anyone else seen t…

---

## [High cpu load](https://www.ruby-forum.com/t/high-cpu-load/118546)

<div class="topic-metadata">

**Author:** [@dan\_sp](https://www.ruby-forum.com/u/dan_sp)\
**Replies:** 6\
**Last updated:** [October 29, 2007, 4:41am UTC](https://www.ruby-forum.com/t/high-cpu-load/118546 "2007-10-29T04:41:21Z")

</div>

Hi all, My mongrel server (1.0.3), with a very low usage, is taking more than 10% of cpu usage all the time (no background tasks were defined by me). This is very annoying and it is preventing me from being able to t…

---

## [Load balancers and mongrel](https://www.ruby-forum.com/t/load-balancers-and-mongrel/118453)

<div class="topic-metadata">

**Author:** [@chillexistence](https://www.ruby-forum.com/u/chillexistence)\
**Replies:** 7\
**Last updated:** [October 28, 2007, 3:00pm UTC](https://www.ruby-forum.com/t/load-balancers-and-mongrel/118453 "2007-10-28T15:00:11Z")

</div>

We have a load balancer sending requests to one of X boxes and one of N mongrel processes on that box. Since each mongrel processes is multi-threaded but it has a mutex around the section that calls rails, we end up w…

---

## [Cluster::restart doesn't wait for stop before starting](https://www.ruby-forum.com/t/cluster-restart-doesnt-wait-for-stop-before-starting/118519)

<div class="topic-metadata">

**Author:** [@arvliet](https://www.ruby-forum.com/u/arvliet)\
**Replies:** 2\
**Last updated:** [October 28, 2007, 2:57pm UTC](https://www.ruby-forum.com/t/cluster-restart-doesnt-wait-for-stop-before-starting/118519 "2007-10-28T14:57:50Z")

</div>

Hi, I’m calling restart from my Capistrano task. I have this in my deploy.rb file: until mongrel\_cluster updates to cap2… namespace :deploy do task :start, :roles =\> :app do start\_mongrel\_cluster end task :stop, …

---

## [Reverse proxy with Outlook web access](https://www.ruby-forum.com/t/reverse-proxy-with-outlook-web-access/118405)

<div class="topic-metadata">

**Author:** [@Ian\_Dobson](https://www.ruby-forum.com/u/Ian_Dobson)\
**Replies:** 2\
**Last updated:** [October 28, 2007, 7:02am UTC](https://www.ruby-forum.com/t/reverse-proxy-with-outlook-web-access/118405 "2007-10-28T07:02:19Z")

</div>

Hi, I’m trying to reverse proxy an outlook web access server running http only and I’m having a bit of difficulty, it seems to go to the correct location but keeps failing on the username/password part. Does anyone ha…

---

## [Mongrel 1.0.3](https://www.ruby-forum.com/t/mongrel-1-0-3/118486)

<div class="topic-metadata">

**Author:** [@alexanderl](https://www.ruby-forum.com/u/alexanderl)\
**Replies:** 7\
**Last updated:** [October 28, 2007, 2:31am UTC](https://www.ruby-forum.com/t/mongrel-1-0-3/118486 "2007-10-28T02:31:52Z")

</div>

Hello! /usr/local/bin/ruby18 /usr/local/bin/mongrel\_rails start -d -e development -a 10.164.28.7 -c /var/www/data/site/ --user root --group wheel -p 8080 -P log/mongrel.8080.pid -l log/mongrel.8080.log Mongrel 1.0.1: …

---

## [Gzip compression and internet explorer 6/7](https://www.ruby-forum.com/t/gzip-compression-and-internet-explorer-6-7/118402)

<div class="topic-metadata">

**Author:** [@Mathijs\_K](https://www.ruby-forum.com/u/Mathijs_K)\
**Replies:** 2\
**Last updated:** [October 27, 2007, 7:03pm UTC](https://www.ruby-forum.com/t/gzip-compression-and-internet-explorer-6-7/118402 "2007-10-27T19:03:03Z")

</div>

Hello, I’m new to nginx but I already like it after just an hour of trying/configuring. I’m using nginx 0.5.32 as a load-balancer in front of some mongrel clusters (rails). I use this bit for gzip-compression: gzip…

---

## [Mongrel 1.0.3](https://www.ruby-forum.com/t/mongrel-1-0-3/118477)

<div class="topic-metadata">

**Author:** [@alexanderl](https://www.ruby-forum.com/u/alexanderl)\
**Replies:** 0\
**Last updated:** [October 27, 2007, 4:30pm UTC](https://www.ruby-forum.com/t/mongrel-1-0-3/118477 "2007-10-27T16:30:26Z")

</div>

Hello! Run problems after upgrading to mongrel 1.0.3 from 1.0.1: uname -sr FreeBSD 7.0-BETA1 mongrel\_rails start \*\* Starting Mongrel listening at :3000 \*\* Starting Rails with development environment… \*\* Rails loaded…

---

## [Working or mongrel](https://www.ruby-forum.com/t/working-or-mongrel/118415)

<div class="topic-metadata">

**Author:** [@advait](https://www.ruby-forum.com/u/advait)\
**Replies:** 1\
**Last updated:** [October 26, 2007, 6:55pm UTC](https://www.ruby-forum.com/t/working-or-mongrel/118415 "2007-10-26T18:55:59Z")

</div>

Hello, I have started newly working on ruby on rails platform and making use of mongrel server…I would like to know how does mongrel communicate with seagull database. I could not find any reverent links only for mon…

---

## [\--prefix, url\_for and image\_tag](https://www.ruby-forum.com/t/prefix-url-for-and-image-tag/118367)

<div class="topic-metadata">

**Author:** [@gtcaz](https://www.ruby-forum.com/u/gtcaz)\
**Replies:** 3\
**Last updated:** [October 26, 2007, 6:23pm UTC](https://www.ruby-forum.com/t/prefix-url-for-and-image-tag/118367 "2007-10-26T18:23:47Z")

</div>

First time here, so I hope this isn’t a FAQ (although I did check the faq). I’m using mongrel\_cluster with --prefix, and it is very slick. Thanks for that. But I had one problem. At one point in my little app, I have…

---

## [Cascading error\_page?](https://www.ruby-forum.com/t/cascading-error-page/118401)

<div class="topic-metadata">

**Author:** [@Jodok\_B](https://www.ruby-forum.com/u/Jodok_B)\
**Replies:** 1\
**Last updated:** [October 26, 2007, 4:16pm UTC](https://www.ruby-forum.com/t/cascading-error-page/118401 "2007-10-26T16:16:46Z")

</div>

hi, is it possible to create “cascading” error pages? files are beeing requested like http://static.lovelybooks.de/covers/ 9780/002/154/123/116x116.jpg if the file is not beeing found under /covers/ (all dirs are nu…

---

## [The virtual host management software can control Nginx](https://www.ruby-forum.com/t/the-virtual-host-management-software-can-control-nginx/118390)

<div class="topic-metadata">

**Author:** [@liyu](https://www.ruby-forum.com/u/liyu)\
**Replies:** 1\
**Last updated:** [October 26, 2007, 1:52pm UTC](https://www.ruby-forum.com/t/the-virtual-host-management-software-can-control-nginx/118390 "2007-10-26T13:52:16Z")

</div>

the virtual host management software can control Nginx ï¼Ÿ ZPanel only can control apacheã€‚ my english is poor

---

## [Patch for X-SendFile on Windows](https://www.ruby-forum.com/t/patch-for-x-sendfile-on-windows/118253)

<div class="topic-metadata">

**Author:** [@Clifford\_H](https://www.ruby-forum.com/u/Clifford_H)\
**Replies:** 2\
**Last updated:** [October 25, 2007, 11:24pm UTC](https://www.ruby-forum.com/t/patch-for-x-sendfile-on-windows/118253 "2007-10-25T23:24:04Z")

</div>

A new TRAC entry with patch has been added (initially for Camping) to allow X-SendFile on Windows to use DirHandler to send files on drives other than the current drive, if the DirHandler base path is “/” (which is th…

---

## [Help: How to track user session with fastcgi](https://www.ruby-forum.com/t/help-how-to-track-user-session-with-fastcgi/118281)

<div class="topic-metadata">

**Author:** [@Yingyuan\_C](https://www.ruby-forum.com/u/Yingyuan_C)\
**Replies:** 6\
**Last updated:** [October 25, 2007, 1:09pm UTC](https://www.ruby-forum.com/t/help-how-to-track-user-session-with-fastcgi/118281 "2007-10-25T13:09:36Z")

</div>

I want to use nginx as web front, dispatching uri of dynamic content to fastcgi processes. How to track user session in such situation? I reviewed ngx\_http\_userid\_module, which generates new user id if special cookie …

---

## [Static and dynamic content alias](https://www.ruby-forum.com/t/static-and-dynamic-content-alias/118090)

<div class="topic-metadata">

**Author:** [@Alejandro\_V](https://www.ruby-forum.com/u/Alejandro_V)\
**Replies:** 2\
**Last updated:** [October 24, 2007, 3:04pm UTC](https://www.ruby-forum.com/t/static-and-dynamic-content-alias/118090 "2007-10-24T15:04:54Z")

</div>

me again. i have those directives to mimic an apache Alias directive that works very well. server { listen 80; server\_name ws.lab; #somename alias another.alias; location / { root /home…

---

## [Php and locations with regex (round 2)](https://www.ruby-forum.com/t/php-and-locations-with-regex-round-2/118026)

<div class="topic-metadata">

**Author:** [@Alejandro\_V](https://www.ruby-forum.com/u/Alejandro_V)\
**Replies:** 14\
**Last updated:** [October 24, 2007, 12:32pm UTC](https://www.ruby-forum.com/t/php-and-locations-with-regex-round-2/118026 "2007-10-24T12:32:10Z")

</div>

(trying to pay attention to the data i posting…) well, i think i found a behavior pattern with my problem about regexed locations and php scripts. i tried very simple tests to figure out the behavior i getting from th…

---

## [Serving Django's Media Files](https://www.ruby-forum.com/t/serving-djangos-media-files/118150)

<div class="topic-metadata">

**Author:** [@CLIFFORD\_ILKAY](https://www.ruby-forum.com/u/CLIFFORD_ILKAY)\
**Replies:** 1\
**Last updated:** [October 24, 2007, 11:06am UTC](https://www.ruby-forum.com/t/serving-djangos-media-files/118150 "2007-10-24T11:06:12Z")

</div>

Hello, I have nginx 0.6.3 installed on Debian Etch. I am able to serve Django pages via fcgi but I do not have any styling, CSS, or media because any attempt to access anything in the site\_media directory results in a…

---

## [Buggy example on wiki](https://www.ruby-forum.com/t/buggy-example-on-wiki/118033)

<div class="topic-metadata">

**Author:** [@Martin\_Minka](https://www.ruby-forum.com/u/Martin_Minka)\
**Replies:** 4\
**Last updated:** [October 24, 2007, 10:02am UTC](https://www.ruby-forum.com/t/buggy-example-on-wiki/118033 "2007-10-24T10:02:41Z")

</div>

There are two types of examples on wiki about how to catch/serve static files. The example A is not working correctly for names ending with the extension. I used the example A and added .tar files as static (location…

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

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