# Server

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

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

---

## [Upstream module - using both fastcgi and http proxy - possible?](https://www.ruby-forum.com/t/upstream-module-using-both-fastcgi-and-http-proxy-possible/154183)

<div class="topic-metadata">

**Author:** [@Imran](https://www.ruby-forum.com/u/Imran)\
**Replies:** 1\
**Last updated:** [November 26, 2008, 9:35am UTC](https://www.ruby-forum.com/t/upstream-module-using-both-fastcgi-and-http-proxy-possible/154183 "2008-11-26T09:35:45Z")

</div>

Hello, I am currently trying to setup a nginx setup like the following : upstream backend { server unix:/tmp/php.socket weight=10; server 10.0.0.200:8080 weight=2; } The first one is a FASTCGI + the second is a bac…

---

## [Help with nginx configuration](https://www.ruby-forum.com/t/help-with-nginx-configuration/153995)

<div class="topic-metadata">

**Author:** [@just\_starting](https://www.ruby-forum.com/u/just_starting)\
**Replies:** 2\
**Last updated:** [November 25, 2008, 10:57am UTC](https://www.ruby-forum.com/t/help-with-nginx-configuration/153995 "2008-11-25T10:57:26Z")

</div>

Hi, Please consider this following scenario. I have 2 servers(1 jetty and the other is apache) with nginx as proxy servers to both. I forward all the jsp queries to jetty and all the php queries to apache httpd and …

---

## [Can't seem to get the right buffer size set](https://www.ruby-forum.com/t/cant-seem-to-get-the-right-buffer-size-set/154089)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 4\
**Last updated:** [November 25, 2008, 9:36am UTC](https://www.ruby-forum.com/t/cant-seem-to-get-the-right-buffer-size-set/154089 "2008-11-25T09:36:29Z")

</div>

To try to maximize the possibility I’ve set the following: fastcgi\_buffer\_size 16k; fastcgi\_buffers 64 16k; fastcgi\_busy\_buffers\_size 16k; This is for requests to .php scripts Even this, just in case: …

---

## [Same rewrites for different directories?](https://www.ruby-forum.com/t/same-rewrites-for-different-directories/154049)

<div class="topic-metadata">

**Author:** [@jsimone](https://www.ruby-forum.com/u/jsimone)\
**Replies:** 0\
**Last updated:** [November 24, 2008, 9:43pm UTC](https://www.ruby-forum.com/t/same-rewrites-for-different-directories/154049 "2008-11-24T21:43:09Z")

</div>

I am converting a user to nginx, and she has like 2,300 different .htaccess with the same code, I converted his main public\_html one, and his ar directory one, in short my rewrite result looks like: if (!-e $request\_f…

---

## [Mongrel and fastthread on ruby 1.9?](https://www.ruby-forum.com/t/mongrel-and-fastthread-on-ruby-1-9/120541)

<div class="topic-metadata">

**Author:** [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Replies:** 18\
**Last updated:** [November 24, 2008, 5:01pm UTC](https://www.ruby-forum.com/t/mongrel-and-fastthread-on-ruby-1-9/120541 "2008-11-24T17:01:05Z")

</div>

Is anybody testing mongrel on ruby 1.9. I just tried installing mongrel on trunk 1.9 and trunk rubygems and got this error compiling fastthread: /Users/stephen/dev/ruby/1.9\_trunk/bin/ruby extconf.rb install mongrel –…

---

## [Problem logging in to mongrel.rubyforge.org?](https://www.ruby-forum.com/t/problem-logging-in-to-mongrel-rubyforge-org/152121)

<div class="topic-metadata">

**Author:** [@Jeffrey\_SjfS\_Lim](https://www.ruby-forum.com/u/Jeffrey_SjfS_Lim)\
**Replies:** 1\
**Last updated:** [November 24, 2008, 4:42pm UTC](https://www.ruby-forum.com/t/problem-logging-in-to-mongrel-rubyforge-org/152121 "2008-11-24T16:42:07Z")

</div>

does anybody have this problem? I’ve been trying to login to submit a ticket, but no luck so far… Have done several resets, + retries already. -jf – In the meantime, here is your PSA: “It’s so hard to write a graph…

---

## [Nginx not sending DOCUMENT\_ROOT to PHP?](https://www.ruby-forum.com/t/nginx-not-sending-document-root-to-php/153840)

<div class="topic-metadata">

**Author:** [@jsimone](https://www.ruby-forum.com/u/jsimone)\
**Replies:** 9\
**Last updated:** [November 24, 2008, 3:00pm UTC](https://www.ruby-forum.com/t/nginx-not-sending-document-root-to-php/153840 "2008-11-24T15:00:03Z")

</div>

I am using: location ~ \\.php$ { fastcgi\_pass unix:/home/nginx/phpcgi/vidiscri; fastcgi\_index index.php; fastcgi\_param SCRIPT\_FILENAME /home/vidisc…

---

## [FastCGI authorizer](https://www.ruby-forum.com/t/fastcgi-authorizer/153960)

<div class="topic-metadata">

**Author:** [@AndrSSSS\_Cruz](https://www.ruby-forum.com/u/AndrSSSS_Cruz)\
**Replies:** 0\
**Last updated:** [November 24, 2008, 1:17am UTC](https://www.ruby-forum.com/t/fastcgi-authorizer/153960 "2008-11-24T01:17:21Z")

</div>

Hello. I’ve read the documentation on the fastcgi module and can’t find anything regarding support for the “authorizer” fastcgi mode. Is it on the roadmap? Best regards, André Cruz

---

## [Nginx contribution model](https://www.ruby-forum.com/t/nginx-contribution-model/153941)

<div class="topic-metadata">

**Author:** [@Arvind\_Jayaprakash](https://www.ruby-forum.com/u/Arvind_Jayaprakash)\
**Replies:** 2\
**Last updated:** [November 23, 2008, 6:56pm UTC](https://www.ruby-forum.com/t/nginx-contribution-model/153941 "2008-11-23T18:56:08Z")

</div>

I have the following questions regarding nginx: \* Is there some sort of a publically accessible SCM? \* Is there is some sort of a bug/feature request tracking system besides http://wiki.codemongers.com/NginxFeatureReq…

---

## [Weird difference between nginx and apache](https://www.ruby-forum.com/t/weird-difference-between-nginx-and-apache/153864)

<div class="topic-metadata">

**Author:** [@sovok](https://www.ruby-forum.com/u/sovok)\
**Replies:** 10\
**Last updated:** [November 23, 2008, 12:35pm UTC](https://www.ruby-forum.com/t/weird-difference-between-nginx-and-apache/153864 "2008-11-23T12:35:14Z")

</div>

I have made some test related to the speed of apache and nginx on my new server to see which would be the best for running. Of course the test have showed me that nginx is the best, there is no fight and no question a…

---

## [GeoIPCity with nginx](https://www.ruby-forum.com/t/geoipcity-with-nginx/153902)

<div class="topic-metadata">

**Author:** [@bobby](https://www.ruby-forum.com/u/bobby)\
**Replies:** 4\
**Last updated:** [November 23, 2008, 12:24pm UTC](https://www.ruby-forum.com/t/geoipcity-with-nginx/153902 "2008-11-23T12:24:40Z")

</div>

Hello list! I know Maxmind’s GeoIP Country database can be used easily with nginx. But what about their Geo-City database? The default CSV database stands at \> 100MB in size (and will grow even larger if the two norm…

---

## [Nginx handle of large uploads , proxy to cgi?](https://www.ruby-forum.com/t/nginx-handle-of-large-uploads-proxy-to-cgi/153915)

<div class="topic-metadata">

**Author:** [@jsimone](https://www.ruby-forum.com/u/jsimone)\
**Replies:** 1\
**Last updated:** [November 23, 2008, 12:09am UTC](https://www.ruby-forum.com/t/nginx-handle-of-large-uploads-proxy-to-cgi/153915 "2008-11-23T00:09:59Z")

</div>

Very weird issue. I am testing nginx with PHPMOTION, but there is a problem. Its being tested on: The problem is PHPMOTION sends the upload to a cgi script, which I have set in nginx to proxy all cgi scripts to Apa…

---

## [Python, cgi and perl backend server](https://www.ruby-forum.com/t/python-cgi-and-perl-backend-server/153917)

<div class="topic-metadata">

**Author:** [@sovok](https://www.ruby-forum.com/u/sovok)\
**Replies:** 0\
**Last updated:** [November 22, 2008, 11:48pm UTC](https://www.ruby-forum.com/t/python-cgi-and-perl-backend-server/153917 "2008-11-22T23:48:36Z")

</div>

Hi, I have about 100 user on my server and all of them have a subdomain. They can run html/java/php script/apps, on ubuntu server 8.04 with nginx 0.6.32. I wanna be able to allow or enable my users to also run cgi, pe…

---

## [A little syntax help, please](https://www.ruby-forum.com/t/a-little-syntax-help-please/153848)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 3\
**Last updated:** [November 22, 2008, 3:26pm UTC](https://www.ruby-forum.com/t/a-little-syntax-help-please/153848 "2008-11-22T15:26:06Z")

</div>

Can someone point out to me, please, how I can group a bunch of pages in a location block, so they all get the same treatment? Let’s say I have ‘/somePage.htm’, ‘/anotherPage.htm’, and ‘/yetAnotherPage.htm’. I thought…

---

## [Ebb and Transfer-Encoding: chunked](https://www.ruby-forum.com/t/ebb-and-transfer-encoding-chunked/153870)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 2\
**Last updated:** [November 22, 2008, 12:34pm UTC](https://www.ruby-forum.com/t/ebb-and-transfer-encoding-chunked/153870 "2008-11-22T12:34:55Z")

</div>

While I bet it is not encountered too often, there is a bug existing between NginX and Ebb. Most frameworks (Rails, Merb, Sinatra, others?..) pass a string as the final(body) element of their Rack response. Rack me…

---

## [RewriteCond %{REQUEST\_URI} how to in nginx?](https://www.ruby-forum.com/t/rewritecond-request-uri-how-to-in-nginx/153865)

<div class="topic-metadata">

**Author:** [@jsimone](https://www.ruby-forum.com/u/jsimone)\
**Replies:** 2\
**Last updated:** [November 22, 2008, 9:46am UTC](https://www.ruby-forum.com/t/rewritecond-request-uri-how-to-in-nginx/153865 "2008-11-22T09:46:55Z")

</div>

Sorry if this is a dumb question, but a newb to nginx rewrites, been trying to convert ALOT of websites over to nginx. Though this one: RewriteCond %{REQUEST\_URI} !(index.php|.css) \[NC\] How would this translate to ng…

---

## [Double escaping in memcache\_pass](https://www.ruby-forum.com/t/double-escaping-in-memcache-pass/153847)

<div class="topic-metadata">

**Author:** [@joel](https://www.ruby-forum.com/u/joel)\
**Replies:** 0\
**Last updated:** [November 21, 2008, 7:41pm UTC](https://www.ruby-forum.com/t/double-escaping-in-memcache-pass/153847 "2008-11-21T19:41:16Z")

</div>

Hey folks, When I pass a url escaped key to memcache, it seem to get escaped again. here is where the memcache key gets set: 2008/11/21 10:31:27 \[debug\] 6194#0: \*254 http script var: “web:uri:/nginx/test?key=http%3A%…

---

## [Nginx as a Linux Service](https://www.ruby-forum.com/t/nginx-as-a-linux-service/152133)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 27\
**Last updated:** [November 21, 2008, 3:39pm UTC](https://www.ruby-forum.com/t/nginx-as-a-linux-service/152133 "2008-11-21T15:39:13Z")

</div>

Hi, I’m setting up a Production-like environment with a Mongrel cluster and nginx acting as a load balancer for the Mongrel servers. Following the instructions in the book “Deploying Rails Applications” (Pragmatic Pr…

---

## [Hot Standby Hot Standby](https://www.ruby-forum.com/t/hot-standby-hot-standby/153810)

<div class="topic-metadata">

**Author:** [@Stephen\_Nelson-Smit](https://www.ruby-forum.com/u/Stephen_Nelson-Smit)\
**Replies:** 2\
**Last updated:** [November 21, 2008, 1:51pm UTC](https://www.ruby-forum.com/t/hot-standby-hot-standby/153810 "2008-11-21T13:51:02Z")

</div>

Following on from testing yesterday, I can’t see a way to do this: Traffic —\> backend1 backend1 fails Traffic —\> backend2 (hot standby) backend2 fails Traffic —\> backend3 (2nd hot standby) ie we cannot …

---

## [Basic authentication and reverse proxy](https://www.ruby-forum.com/t/basic-authentication-and-reverse-proxy/153759)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 2\
**Last updated:** [November 21, 2008, 12:16am UTC](https://www.ruby-forum.com/t/basic-authentication-and-reverse-proxy/153759 "2008-11-21T00:16:20Z")

</div>

I’m using nginx (0.5.32) as a reverse proxy for Tomcat, and it’s working spectacularly well. There are some admin pages I want to protect, initially just with Basic authentication, and I think I’ve set it up right, bu…

---

## [ANNOUNCE: Development (0.7.22) and Stable (0.6.33) versions of Nginx for Windows](https://www.ruby-forum.com/t/announce-development-0-7-22-and-stable-0-6-33-versions-of-nginx-for-windows/153756)

<div class="topic-metadata">

**Author:** [@inspire22](https://www.ruby-forum.com/u/inspire22)\
**Replies:** 0\
**Last updated:** [November 20, 2008, 8:34pm UTC](https://www.ruby-forum.com/t/announce-development-0-7-22-and-stable-0-6-33-versions-of-nginx-for-windows/153756 "2008-11-20T20:34:21Z")

</div>

Hello All, Development (0.7.22) and Stable (0.6.33) versions of Nginx for Windows now available. Both built using Vista 32-bit & Cygwin: http://cli.gs/2NewN4W Feedback is always appreciated. I look forward to hearing…

---

## [Nginx-0.6.33](https://www.ruby-forum.com/t/nginx-0-6-33/153749)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 0\
**Last updated:** [November 20, 2008, 7:27pm UTC](https://www.ruby-forum.com/t/nginx-0-6-33/153749 "2008-11-20T19:27:57Z")

</div>

Changes with nginx 0.6.33 20 Nov 2008 \*) Feature: now nginx returns the 405 status code for POST method requesting a static file only if the file exists. \*) Workaround: compat…

---

## [Nginx-0.7.22](https://www.ruby-forum.com/t/nginx-0-7-22/153738)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 0\
**Last updated:** [November 20, 2008, 6:00pm UTC](https://www.ruby-forum.com/t/nginx-0-7-22/153738 "2008-11-20T18:00:30Z")

</div>

Changes with nginx 0.7.22 20 Nov 2008 \*) Feature: the "none" parameter in the "smtp\_auth" directive. Thanks to Maxim D.. \*) Feature: the "$cookie\_..." variables. \*) Bugfix: t…

---

## [Balancer Algorithms](https://www.ruby-forum.com/t/balancer-algorithms/153711)

<div class="topic-metadata">

**Author:** [@Stephen\_Nelson-Smit](https://www.ruby-forum.com/u/Stephen_Nelson-Smit)\
**Replies:** 8\
**Last updated:** [November 20, 2008, 3:25pm UTC](https://www.ruby-forum.com/t/balancer-algorithms/153711 "2008-11-20T15:25:41Z")

</div>

Hello, I want to distribute traffic across backend servers based purely on availability. I don’t want to send some traffic to one which is less busy, or has less traffic, , or has fewer connections, I want to send tr…

---

## [Important: Nginx + Haproxy + Mongrel Question](https://www.ruby-forum.com/t/important-nginx-haproxy-mongrel-question/153616)

<div class="topic-metadata">

**Author:** [@Asif\_A](https://www.ruby-forum.com/u/Asif_A)\
**Replies:** 3\
**Last updated:** [November 20, 2008, 3:19pm UTC](https://www.ruby-forum.com/t/important-nginx-haproxy-mongrel-question/153616 "2008-11-20T15:19:14Z")

</div>

We have configured nginx + haproxy + mongrels \[ more than 150 instances\]. While it works perfectly fine for small configuration, a larger set of mongrels - fail completely. I have attached the configuration file for…

---

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

<div class="topic-metadata">

**Author:** [@leojoesdb](https://www.ruby-forum.com/u/leojoesdb)\
**Replies:** 1\
**Last updated:** [November 20, 2008, 11:30am UTC](https://www.ruby-forum.com/t/nginx-error/153707 "2008-11-20T11:30:32Z")

</div>

We have a strange issue with our rails app deployed on a linux box with a nginx in front and a mongrel cluster behind. frequently i am getting error in nginx log 2008/11/20 10:19:33 \[error\] 8558#0: \*375433 upstream t…

---

## [Fair proxy module](https://www.ruby-forum.com/t/fair-proxy-module/153698)

<div class="topic-metadata">

**Author:** [@Glen\_L](https://www.ruby-forum.com/u/Glen_L)\
**Replies:** 2\
**Last updated:** [November 20, 2008, 9:05am UTC](https://www.ruby-forum.com/t/fair-proxy-module/153698 "2008-11-20T09:05:44Z")

</div>

What I’ve read about fair proxy module, is nginx sends an incoming request to the least-busy backend server But if the backend server is DOWN, nginx still redirect the traffic to the backend. Is that posibble if the…

---

## [Upload module](https://www.ruby-forum.com/t/upload-module/153586)

<div class="topic-metadata">

**Author:** [@Chetan\_Patil](https://www.ruby-forum.com/u/Chetan_Patil)\
**Replies:** 5\
**Last updated:** [November 19, 2008, 12:03pm UTC](https://www.ruby-forum.com/t/upload-module/153586 "2008-11-19T12:03:43Z")

</div>

Hi All, I am unable to download the upload module from http://www.grid.net.ru/nginx/download/nginx\_upload\_module-2.0.7.tar.gz. The website doesn’t seem to exist. Is there a new location from where I can download it? …

---

## [Find bug in dns resovle](https://www.ruby-forum.com/t/find-bug-in-dns-resovle/153427)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [November 18, 2008, 11:02pm UTC](https://www.ruby-forum.com/t/find-bug-in-dns-resovle/153427 "2008-11-18T23:02:40Z")

</div>

in function ngx\_resolver\_copy ,n = (n & 0x3f \<\< 8) + \*p; should be n = ((n & 0x3f) \<\< 8) + \*p;otherwis ,& oprator will not work correctlly. thanks

---

## [Help with .htaccess rules](https://www.ruby-forum.com/t/help-with-htaccess-rules/153530)

<div class="topic-metadata">

**Author:** [@jsimone](https://www.ruby-forum.com/u/jsimone)\
**Replies:** 2\
**Last updated:** [November 18, 2008, 10:42pm UTC](https://www.ruby-forum.com/t/help-with-htaccess-rules/153530 "2008-11-18T22:42:09Z")

</div>

May seem like cheating posting this on here, but kinda stuck on this, as we are helping move alot of shared customers to nginx. Stuck on these: RewriteRule ^(.)-p-(.).html$ index.php?main\_page=product\_info&products\_i…

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

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