# Server

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

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

---

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

<div class="topic-metadata">

**Author:** [@Ian\_MSEvans](https://www.ruby-forum.com/u/Ian_MSEvans)\
**Replies:** 7\
**Last updated:** [November 27, 2007, 4:38pm UTC](https://www.ruby-forum.com/t/re-disable-gzip-based-on-user-agent/121361 "2007-11-27T16:38:46Z")

</div>

On 10/18/07, Wayne E. Seguin wrote: I also would like to know if this is possible. I notice it’s been about five weeks and no answer. :slight\_smile: Since IE6 can have problems with gzip’d CSS, being able to turn it…

---

## [Configuration choices prior to -V](https://www.ruby-forum.com/t/configuration-choices-prior-to-v/121246)

<div class="topic-metadata">

**Author:** [@Ian\_MSEvans](https://www.ruby-forum.com/u/Ian_MSEvans)\
**Replies:** 1\
**Last updated:** [November 27, 2007, 1:33pm UTC](https://www.ruby-forum.com/t/configuration-choices-prior-to-v/121246 "2007-11-27T13:33:06Z")

</div>

If you have an nginx install prior to the addition of the -V command line switch, is there a way to retrieve the options used for that particular install?

---

## [Wildcards in valid\_referers](https://www.ruby-forum.com/t/wildcards-in-valid-referers/121355)

<div class="topic-metadata">

**Author:** [@Ian\_MSEvans](https://www.ruby-forum.com/u/Ian_MSEvans)\
**Replies:** 2\
**Last updated:** [November 27, 2007, 7:31am UTC](https://www.ruby-forum.com/t/wildcards-in-valid-referers/121355 "2007-11-27T07:31:43Z")

</div>

I just updated my nginx from the 4.x series and noticed that a line in my config was causing errors. One of the domains in my old valid\_referers line was .google. to catch all the variations (like images.google.com an…

---

## [About env directive](https://www.ruby-forum.com/t/about-env-directive/121304)

<div class="topic-metadata">

**Author:** [@Manlio\_P](https://www.ruby-forum.com/u/Manlio_P)\
**Replies:** 2\
**Last updated:** [November 26, 2007, 7:34pm UTC](https://www.ruby-forum.com/t/about-env-directive/121304 "2007-11-26T19:34:45Z")

</div>

Hi. I want to enable the definition of custom environment variables in mod\_wsgi. After a quick search in Nginx sources I have found the env directive and the ngx\_set\_environment function. Unfortunately the documenta…

---

## [Comet style requests with mongrel](https://www.ruby-forum.com/t/comet-style-requests-with-mongrel/121097)

<div class="topic-metadata">

**Author:** [@nuby2ruby](https://www.ruby-forum.com/u/nuby2ruby)\
**Replies:** 5\
**Last updated:** [November 26, 2007, 12:13pm UTC](https://www.ruby-forum.com/t/comet-style-requests-with-mongrel/121097 "2007-11-26T12:13:46Z")

</div>

Hi, I’ve been doing some experiments with php and if can use something like \<?php for ($i = 0; $i \< 100; $i++) { echo "hello world"; flush(); sleep(10); } ?\> to keep a http link open for an arbitrary amount of …

---

## [Nginx-0.6.17](https://www.ruby-forum.com/t/nginx-0-6-17/120294)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 2\
**Last updated:** [November 25, 2007, 9:47pm UTC](https://www.ruby-forum.com/t/nginx-0-6-17/120294 "2007-11-25T21:47:11Z")

</div>

Changes with nginx 0.6.17 15 Nov 2007 \*) Feature: the "If-Range" request header line support. Thanks to Alexander V. Inyukhin. \*) Bugfix: URL double escaping in a redirect of …

---

## [Change in ngx\_conf\_merge\_ptr\_value for 0.5.33](https://www.ruby-forum.com/t/change-in-ngx-conf-merge-ptr-value-for-0-5-33/121163)

<div class="topic-metadata">

**Author:** [@Manlio\_P](https://www.ruby-forum.com/u/Manlio_P)\
**Replies:** 4\
**Last updated:** [November 25, 2007, 6:29pm UTC](https://www.ruby-forum.com/t/change-in-ngx-conf-merge-ptr-value-for-0-5-33/121163 "2007-11-25T18:29:40Z")

</div>

Igor, do you have made some changes in the ngx\_conf\_merge\_ptr\_value function? In mod\_wsgi I have: ngx\_conf\_merge\_ptr\_value(conf-\>callable\_object, prev-\>callable\_object, “application”); for directive wsgi\_application…

---

## [Active connections from status](https://www.ruby-forum.com/t/active-connections-from-status/121186)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [November 25, 2007, 2:11am UTC](https://www.ruby-forum.com/t/active-connections-from-status/121186 "2007-11-25T02:11:30Z")

</div>

this is from my /nginx\_status page: Active connections: 82 server accepts handled requests 4489 4489 5657 Reading: 0 Writing: 2 Waiting: 80 does this mean 82 connections are waiting to be served? this is very high …

---

## [Fastcgi servers](https://www.ruby-forum.com/t/fastcgi-servers/121107)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [November 24, 2007, 10:46pm UTC](https://www.ruby-forum.com/t/fastcgi-servers/121107 "2007-11-24T22:46:50Z")

</div>

hi guys how do i add more than one fastcgi server in the fastcgi module? thanks mark my config is like this now: server { listen 8080; server\_name localhost; #charset koi8-r; #access\_log log…

---

## [Other plugins?](https://www.ruby-forum.com/t/other-plugins/121171)

<div class="topic-metadata">

**Author:** [@Norbauer\_Alan](https://www.ruby-forum.com/u/Norbauer_Alan)\
**Replies:** 0\
**Last updated:** [November 24, 2007, 8:59pm UTC](https://www.ruby-forum.com/t/other-plugins/121171 "2007-11-24T20:59:02Z")

</div>

Is mongrel\_cluster the only mongrel plugin, or is the mongrel website not up to date? http://mongrel.rubyforge.org/plugins.html Thanks, alan

---

## [Ngx\_version\_hex](https://www.ruby-forum.com/t/ngx-version-hex/121090)

<div class="topic-metadata">

**Author:** [@Manlio\_P](https://www.ruby-forum.com/u/Manlio_P)\
**Replies:** 4\
**Last updated:** [November 23, 2007, 7:48pm UTC](https://www.ruby-forum.com/t/ngx-version-hex/121090 "2007-11-23T19:48:26Z")

</div>

Igor, do you plan to add a macro with an usable nginx version number? Thanks and regards Manlio P.

---

## [Mongrel+Apache 2.2 Proxy](https://www.ruby-forum.com/t/mongrel-apache-2-2-proxy/121078)

<div class="topic-metadata">

**Author:** [@Sebastian\_Haglund](https://www.ruby-forum.com/u/Sebastian_Haglund)\
**Replies:** 3\
**Last updated:** [November 23, 2007, 7:26pm UTC](https://www.ruby-forum.com/t/mongrel-apache-2-2-proxy/121078 "2007-11-23T19:26:47Z")

</div>

Hi, I’m running a rails (mongrel) based web service behind an apache proxy, on windows 2003. Sometimes I see a POST in the apache log that returned a 404 but nothing about it in the rails log. It doesn’t happen ever…

---

## [Problem with nginx autoconfigure](https://www.ruby-forum.com/t/problem-with-nginx-autoconfigure/121089)

<div class="topic-metadata">

**Author:** [@Manlio\_P](https://www.ruby-forum.com/u/Manlio_P)\
**Replies:** 2\
**Last updated:** [November 23, 2007, 5:50pm UTC](https://www.ruby-forum.com/t/problem-with-nginx-autoconfigure/121089 "2007-11-23T17:50:31Z")

</div>

Hi. I’m having problems at auto configuring mod\_wsgi on FreeBSD. Here is the configuration: ngx\_feature=“wsgi” ngx\_feature\_name= ngx\_feature\_run=no ngx\_feature\_incs="#include \<Python.h\>" ngx\_feature\_path="/usr/loc…

---

## [Upstream with fastcgi\_pass](https://www.ruby-forum.com/t/upstream-with-fastcgi-pass/121028)

<div class="topic-metadata">

**Author:** [@Rapsey](https://www.ruby-forum.com/u/Rapsey)\
**Replies:** 3\
**Last updated:** [November 23, 2007, 4:43pm UTC](https://www.ruby-forum.com/t/upstream-with-fastcgi-pass/121028 "2007-11-23T16:43:03Z")

</div>

I have 5 instances of a FCGI application. My config is like this: upstream servercom { server 127.0.0.1:44440; server 127.0.0.1:44441; server 127.0.0.1:44442; server 127.0.0.1:44443; server 127.0.0.1:44444; } loc…

---

## [Gentoo warning](https://www.ruby-forum.com/t/gentoo-warning/120981)

<div class="topic-metadata">

**Author:** [@Csaba\_O](https://www.ruby-forum.com/u/Csaba_O)\
**Replies:** 7\
**Last updated:** [November 23, 2007, 10:14am UTC](https://www.ruby-forum.com/t/gentoo-warning/120981 "2007-11-23T10:14:32Z")

</div>

Hi, I’ve done some benchmarking on our new servers (being built now), AMD X2 5600, gentoo-hardened. With the same CFLAGS (safe cflags: -march=k8 -O2) I’ve tested the following configs: 1, emerge ruby rubygems, then…

---

## [Unable to read anything from request.remote\_ip](https://www.ruby-forum.com/t/unable-to-read-anything-from-request-remote-ip/121039)

<div class="topic-metadata">

**Author:** [@boothdeveloper](https://www.ruby-forum.com/u/boothdeveloper)\
**Replies:** 2\
**Last updated:** [November 23, 2007, 6:58am UTC](https://www.ruby-forum.com/t/unable-to-read-anything-from-request-remote-ip/121039 "2007-11-23T06:58:47Z")

</div>

For some users, request.remote\_ip always return nil. According to the RAILS’s help: REMOTE\_ADDR is the standard but will fail if the user is behind a proxy. HTTP\_CLIENT\_IP and/or HTTP\_X\_FORWARDED\_FOR are set by proxie…

---

## [Packet](https://www.ruby-forum.com/t/packet/120899)

<div class="topic-metadata">

**Author:** [@evan](https://www.ruby-forum.com/u/evan)\
**Replies:** 7\
**Last updated:** [November 22, 2007, 7:11pm UTC](https://www.ruby-forum.com/t/packet/120899 "2007-11-22T19:11:50Z")

</div>

Hi Mongrels, Anyone used Packet? http://rubyforge.org/projects/packet It’s a pure-Ruby (I think) evented framework. It might offer a nice way forward for 1.9’s system threads, JRuby, and Windows, all at once. Mongrel…

---

## [Mongrel\_simple\_service.rb problem](https://www.ruby-forum.com/t/mongrel-simple-service-rb-problem/196524)

<div class="topic-metadata">

**Author:** [@tbochan](https://www.ruby-forum.com/u/tbochan)\
**Replies:** 2\
**Last updated:** [November 22, 2007, 4:04pm UTC](https://www.ruby-forum.com/t/mongrel-simple-service-rb-problem/196524 "2007-11-22T16:04:02Z")

</div>

Hi, This must be a newbie problem. I’m running XP SP2. I installed mongrel with gem, and attempted to run the example mongrel\_simple\_service.rb (unmodified) in SciTE. The script runs for about 10 seconds and then sto…

---

## [Reg vhost in apache](https://www.ruby-forum.com/t/reg-vhost-in-apache/120986)

<div class="topic-metadata">

**Author:** [@shiva](https://www.ruby-forum.com/u/shiva)\
**Replies:** 4\
**Last updated:** [November 22, 2007, 1:13pm UTC](https://www.ruby-forum.com/t/reg-vhost-in-apache/120986 "2007-11-22T13:13:23Z")

</div>

Hi all, I am facing one problem in configuration of httpd-vhosts. my requirment is if url comes from servername (i.e http://sutra) it should redirect to my home page.if url comes from serverAlias(i.e http://sutrateam)…

---

## [Mongrel Timeout?](https://www.ruby-forum.com/t/mongrel-timeout/120874)

<div class="topic-metadata">

**Author:** [@Oliver\_Schneider](https://www.ruby-forum.com/u/Oliver_Schneider)\
**Replies:** 3\
**Last updated:** [November 21, 2007, 2:58pm UTC](https://www.ruby-forum.com/t/mongrel-timeout/120874 "2007-11-21T14:58:47Z")

</div>

Hi, I am using a railsapp to call an external app and print some barcode-labels. My problem is, after a while there seems to be a timeout. Then I need to stop the Mongrel-Server and restart it. Below you can see the…

---

## [Nginx, php-fpm and 502 errors](https://www.ruby-forum.com/t/nginx-php-fpm-and-502-errors/120783)

<div class="topic-metadata">

**Author:** [@Jure\_PeSSSSar](https://www.ruby-forum.com/u/Jure_PeSSSSar)\
**Replies:** 8\
**Last updated:** [November 21, 2007, 9:52am UTC](https://www.ruby-forum.com/t/nginx-php-fpm-and-502-errors/120783 "2007-11-21T09:52:08Z")

</div>

Hello, I’m trying to understand why some of our production nginx/php-fpm servers frequently return 502 errors. At that time “writev() failed (107: Transport endpoint is not connected) while sending request to upstrea…

---

## [How to configure mongrel\_cluster in windows](https://www.ruby-forum.com/t/how-to-configure-mongrel-cluster-in-windows/120772)

<div class="topic-metadata">

**Author:** [@shiva](https://www.ruby-forum.com/u/shiva)\
**Replies:** 7\
**Last updated:** [November 21, 2007, 9:12am UTC](https://www.ruby-forum.com/t/how-to-configure-mongrel-cluster-in-windows/120772 "2007-11-21T09:12:19Z")

</div>

hi, how to configure mongrel\_cluster in windows. mongrel\_rails cluster::configure -e development -p 3000 -N 2 i have used this one its configured correctly then if i start the server it is throwing error.if any one k…

---

## [Win32 service question](https://www.ruby-forum.com/t/win32-service-question/120766)

<div class="topic-metadata">

**Author:** [@Csaba\_O](https://www.ruby-forum.com/u/Csaba_O)\
**Replies:** 4\
**Last updated:** [November 21, 2007, 8:50am UTC](https://www.ruby-forum.com/t/win32-service-question/120766 "2007-11-21T08:50:41Z")

</div>

Hi All, First, I’m new to the list, so I’d like to say hello to all fellow mongrelists :slight\_smile: Second, I’d like to ask you if there’s any way to make a simple mongrel script run multithreaded? No rails, just …

---

## [Canceled uploads and exceptions](https://www.ruby-forum.com/t/canceled-uploads-and-exceptions/120856)

<div class="topic-metadata">

**Author:** [@christian](https://www.ruby-forum.com/u/christian)\
**Replies:** 0\
**Last updated:** [November 21, 2007, 7:24am UTC](https://www.ruby-forum.com/t/canceled-uploads-and-exceptions/120856 "2007-11-21T07:24:36Z")

</div>

Hi, I’m currently putting together a program that allows a user to cancel a current file upload while it’s happening. When I cancel the upload in the browser, I get a " Error reading HTTP body: #\<RuntimeError: Socket…

---

## [(Humor) Little Bobby Tables](https://www.ruby-forum.com/t/humor-little-bobby-tables/120826)

<div class="topic-metadata">

**Author:** [@sjmadsen](https://www.ruby-forum.com/u/sjmadsen)\
**Replies:** 1\
**Last updated:** [November 21, 2007, 3:52am UTC](https://www.ruby-forum.com/t/humor-little-bobby-tables/120826 "2007-11-21T03:52:30Z")

</div>

I thought all you mongrelians might appreciate this: I haven’t laughed out loud at a comic in a while. I realize it’s a working group but I figure many here might get a laugh today out of this one. Steve

---

## [Russian to english translation of nginx-ru mailing list](https://www.ruby-forum.com/t/russian-to-english-translation-of-nginx-ru-mailing-list/120810)

<div class="topic-metadata">

**Author:** [@jtoy](https://www.ruby-forum.com/u/jtoy)\
**Replies:** 0\
**Last updated:** [November 20, 2007, 7:44pm UTC](https://www.ruby-forum.com/t/russian-to-english-translation-of-nginx-ru-mailing-list/120810 "2007-11-20T19:44:37Z")

</div>

Hi everyone, I put this website up that translates mailing lists from one language to another, nginx-ru is one of them: http://translator.rubynow.com/

---

## [Ajax POST error 405](https://www.ruby-forum.com/t/ajax-post-error-405/120737)

<div class="topic-metadata">

**Author:** [@kfl62](https://www.ruby-forum.com/u/kfl62)\
**Replies:** 5\
**Last updated:** [November 20, 2007, 12:02pm UTC](https://www.ruby-forum.com/t/ajax-post-error-405/120737 "2007-11-20T12:02:43Z")

</div>

Ijust installed ngnix on my server. All rail applications works perfect, but i have some static sites where i use AJAX for content replacement and i get 405 Not allowed error. Server config: server { listen 80…

---

## [Thanks for the mongrel\_cluster fix!](https://www.ruby-forum.com/t/thanks-for-the-mongrel-cluster-fix/120689)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 1\
**Last updated:** [November 20, 2007, 2:54am UTC](https://www.ruby-forum.com/t/thanks-for-the-mongrel-cluster-fix/120689 "2007-11-20T02:54:31Z")

</div>

Just as I was composing an elaborate email illustrating that capistrano version detection was broken, I realized that 1.0.5 fixed the problem :slight\_smile: While we’re on the topic of code changes-- where is the mongr…

---

## [Read the value of a header?](https://www.ruby-forum.com/t/read-the-value-of-a-header/120690)

<div class="topic-metadata">

**Author:** [@Fred\_Palmer](https://www.ruby-forum.com/u/Fred_Palmer)\
**Replies:** 1\
**Last updated:** [November 19, 2007, 9:06pm UTC](https://www.ruby-forum.com/t/read-the-value-of-a-header/120690 "2007-11-19T21:06:25Z")

</div>

Hi, Is it possible to read the value of a request’s header and then put it into a variable of some kind? I want to be able to log a special value in a header. Thanks, Fred

---

## [Auth\_basic from if condition?](https://www.ruby-forum.com/t/auth-basic-from-if-condition/120683)

<div class="topic-metadata">

**Author:** [@Sergey](https://www.ruby-forum.com/u/Sergey)\
**Replies:** 1\
**Last updated:** [November 19, 2007, 7:55pm UTC](https://www.ruby-forum.com/t/auth-basic-from-if-condition/120683 "2007-11-19T19:55:19Z")

</div>

I seem to have discovered that something that I thought was possible might actually not be so. I have a scenario where I would like users from specific IP ranges to have to go through the authentication procedure an…

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

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