# Server

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

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

---

## [NGinx Load Balancing](https://www.ruby-forum.com/t/nginx-load-balancing/166911)

<div class="topic-metadata">

**Author:** [@Payam\_C](https://www.ruby-forum.com/u/Payam_C)\
**Replies:** 2\
**Last updated:** [May 1, 2009, 4:36pm UTC](https://www.ruby-forum.com/t/nginx-load-balancing/166911 "2009-05-01T16:36:16Z")

</div>

Hey Guys, Question, How can you create an nginx proxy server so it uses x-forward-header to load balance connections to its downstream web servers? Im using a nginx load balancer and attaching x-forward-header down t…

---

## [Set part of path as variable](https://www.ruby-forum.com/t/set-part-of-path-as-variable/166970)

<div class="topic-metadata">

**Author:** [@Joseph\_Jacobs](https://www.ruby-forum.com/u/Joseph_Jacobs)\
**Replies:** 1\
**Last updated:** [May 1, 2009, 3:48pm UTC](https://www.ruby-forum.com/t/set-part-of-path-as-variable/166970 "2009-05-01T15:48:49Z")

</div>

Hey guys, I’m trying to configure trac with nginx. I’m using nginx\_auth\_mysql to authenticate trac users against a mysql database so I have to use FCGI to call trac instead of a proxy pass to tracd. The problem I’m h…

---

## [Rewrite rules. Please help!](https://www.ruby-forum.com/t/rewrite-rules-please-help/166964)

<div class="topic-metadata">

**Author:** [@ksenux](https://www.ruby-forum.com/u/ksenux)\
**Replies:** 0\
**Last updated:** [May 1, 2009, 2:30pm UTC](https://www.ruby-forum.com/t/rewrite-rules-please-help/166964 "2009-05-01T14:30:55Z")

</div>

Hi. Please help to convert rewrite rules for nginx from .htaccess file. Very much I hope for your help! RewriteCond %{REQUEST\_FILENAME} !-f RewriteRule ^shop/(repo\_themes|js|3rdparty|images\_common|products\_pictures…

---

## [Nginx + ip\_nonlocal\_bind](https://www.ruby-forum.com/t/nginx-ip-nonlocal-bind/166943)

<div class="topic-metadata">

**Author:** [@Tristan\_Griffiths](https://www.ruby-forum.com/u/Tristan_Griffiths)\
**Replies:** 8\
**Last updated:** [May 1, 2009, 1:12pm UTC](https://www.ruby-forum.com/t/nginx-ip-nonlocal-bind/166943 "2009-05-01T13:12:24Z")

</div>

Greetings. We would like to setup our Nginx instances in a HA pair. Using Heartbeat, we have Nginx listening on virtual addresses on the active server. On the passive server, we cannot get Nginx to start up because t…

---

## [Having issues with nginx / root captures (0.7.53)](https://www.ruby-forum.com/t/having-issues-with-nginx-root-captures-0-7-53/166929)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 9\
**Last updated:** [May 1, 2009, 8:59am UTC](https://www.ruby-forum.com/t/having-issues-with-nginx-root-captures-0-7-53/166929 "2009-05-01T08:59:59Z")

</div>

i have this, which seemed like it would work according to my attempt just a week ago… server { listen 80; index index.php index.html; server\_name ~^foo(.\*?).bar.ssgisp.com$; root /home/mike/web/foo$1; include /etc…

---

## [Ssl accelerator](https://www.ruby-forum.com/t/ssl-accelerator/166787)

<div class="topic-metadata">

**Author:** [@lovewadhwa](https://www.ruby-forum.com/u/lovewadhwa)\
**Replies:** 9\
**Last updated:** [May 1, 2009, 8:04am UTC](https://www.ruby-forum.com/t/ssl-accelerator/166787 "2009-05-01T08:04:22Z")

</div>

Hi I m using nginx to configure ssl accelerator.Have specified the following in my configuration file to accomplish the same: upstream dev1.magazine.com{ server dev1.magazine.com:8000; } server { list…

---

## [Floating Point exception w/ down server in upstream](https://www.ruby-forum.com/t/floating-point-exception-w-down-server-in-upstream/166874)

<div class="topic-metadata">

**Author:** [@JacobSingh](https://www.ruby-forum.com/u/JacobSingh)\
**Replies:** 1\
**Last updated:** [April 30, 2009, 1:28pm UTC](https://www.ruby-forum.com/t/floating-point-exception-w-down-server-in-upstream/166874 "2009-04-30T13:28:04Z")

</div>

Hello, I’ve been using nginx pretty successfully for awhile, and this problem started recently. I’ve got CentOS 5 and the nginx from yum (nginx/0.6.32). Here is my config: upstream search1.us\_seach { server …

---

## [Default\_type should default to nothing (RFC 2616)](https://www.ruby-forum.com/t/default-type-should-default-to-nothing-rfc-2616/166844)

<div class="topic-metadata">

**Author:** [@sbwoodside](https://www.ruby-forum.com/u/sbwoodside)\
**Replies:** 0\
**Last updated:** [April 30, 2009, 4:50am UTC](https://www.ruby-forum.com/t/default-type-should-default-to-nothing-rfc-2616/166844 "2009-04-30T04:50:42Z")

</div>

I am new to nginx but I just noticed that, at least on ubuntu, default\_type application/octet-stream; is the default setting, and the wiki says that if I remove it, the default will go to text/plain. This is not good…

---

## [Php flush() are not effective](https://www.ruby-forum.com/t/php-flush-are-not-effective/166799)

<div class="topic-metadata">

**Author:** [@Ken\_Chen](https://www.ruby-forum.com/u/Ken_Chen)\
**Replies:** 4\
**Last updated:** [April 30, 2009, 3:35am UTC](https://www.ruby-forum.com/t/php-flush-are-not-effective/166799 "2009-04-30T03:35:44Z")

</div>

Hi all, I am trying to flush content before the end of PHP script. With below script, it works under lighttpd, but not work after changing to nginx. \<?php ob\_flush(); echo "The first line "; flush(); sleep(2); for (…

---

## [Nginx-0.7.53](https://www.ruby-forum.com/t/nginx-0-7-53/166569)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 26\
**Last updated:** [April 30, 2009, 3:15am UTC](https://www.ruby-forum.com/t/nginx-0-7-53/166569 "2009-04-30T03:15:42Z")

</div>

Changes with nginx 0.7.53 27 Apr 2009 \*) Change: now a log set by --error-log-path is created from the very start-up. \*) Feature: now the start up errors and warnings are outp…

---

## [Minor "bug" in nginx](https://www.ruby-forum.com/t/minor-bug-in-nginx/166822)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 5\
**Last updated:** [April 30, 2009, 2:23am UTC](https://www.ruby-forum.com/t/minor-bug-in-nginx/166822 "2009-04-30T02:23:40Z")

</div>

This is not really a ‘bug’ I think, but it is something that raises a security flag, we got dinged on it. Now, it does not appear to actually execute the proxy request, but it should return something other than HTTP 2…

---

## [Caching content from other handlers](https://www.ruby-forum.com/t/caching-content-from-other-handlers/166797)

<div class="topic-metadata">

**Author:** [@kastorilo](https://www.ruby-forum.com/u/kastorilo)\
**Replies:** 0\
**Last updated:** [April 29, 2009, 5:16pm UTC](https://www.ruby-forum.com/t/caching-content-from-other-handlers/166797 "2009-04-29T17:16:36Z")

</div>

Hi, I am developing a module which includes a handler that I would like to be able to cache the content of. AFAIK you can only cache content passed to an upstream (using proxy\_cache directives) or fastcgi (using fast…

---

## [Mediawiki + nginx](https://www.ruby-forum.com/t/mediawiki-nginx/166724)

<div class="topic-metadata">

**Author:** [@tuatha](https://www.ruby-forum.com/u/tuatha)\
**Replies:** 5\
**Last updated:** [April 29, 2009, 5:10pm UTC](https://www.ruby-forum.com/t/mediawiki-nginx/166724 "2009-04-29T17:10:09Z")

</div>

still sorta confused about running those two together. my end goal is to have simple urls like: wiki.something.com/TheArticleThingie right now under my current configs i get urls that look like this: wiki.something.c…

---

## [Mongrel\_rails will not autostart](https://www.ruby-forum.com/t/mongrel-rails-will-not-autostart/166760)

<div class="topic-metadata">

**Author:** [@alexander](https://www.ruby-forum.com/u/alexander)\
**Replies:** 3\
**Last updated:** [April 29, 2009, 4:00pm UTC](https://www.ruby-forum.com/t/mongrel-rails-will-not-autostart/166760 "2009-04-29T16:00:17Z")

</div>

Hi, I’m running a ubuntu 8.04.2 LTS server. Using ruby 1.8.6 and Rails 2.0.2 I added the mongrel\_rails start -d -c /app/ to the /etc/rc.local sofar so good… Mongrel will start but will log Missing the rails 2.0.2 g…

---

## [Redmine + rails + nginx](https://www.ruby-forum.com/t/redmine-rails-nginx/166658)

<div class="topic-metadata">

**Author:** [@Harald\_L](https://www.ruby-forum.com/u/Harald_L)\
**Replies:** 6\
**Last updated:** [April 29, 2009, 8:27am UTC](https://www.ruby-forum.com/t/redmine-rails-nginx/166658 "2009-04-29T08:27:31Z")

</div>

hello, i’m currently using nginx as proxy for webrick running redmine. i’m not very happy with this, i would like to run redmine using fastcgi with nginx (without proxying to webrick, mongrel, etc.). however, as i’m …

---

## [Some question about server listen](https://www.ruby-forum.com/t/some-question-about-server-listen/166577)

<div class="topic-metadata">

**Author:** [@zhijianpeng](https://www.ruby-forum.com/u/zhijianpeng)\
**Replies:** 3\
**Last updated:** [April 28, 2009, 11:49pm UTC](https://www.ruby-forum.com/t/some-question-about-server-listen/166577 "2009-04-28T23:49:15Z")

</div>

========my nginx.conf=========== server { listen 10.1.1.1:80; server\_name www.test1.com; root /opt/test1; } server { listen 8…

---

## [Setting location header](https://www.ruby-forum.com/t/setting-location-header/166494)

<div class="topic-metadata">

**Author:** [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Replies:** 1\
**Last updated:** [April 28, 2009, 9:50pm UTC](https://www.ruby-forum.com/t/setting-location-header/166494 "2009-04-28T21:50:56Z")

</div>

I have a URL stored in memcached in the key “some-key”. I have the following location defined: location /redirect-from-memcached { set $memcached\_key some-key; memcached\_pass localhost:11211; …

---

## [Shared memory across mongrels](https://www.ruby-forum.com/t/shared-memory-across-mongrels/135329)

<div class="topic-metadata">

**Author:** [@sgudibanda](https://www.ruby-forum.com/u/sgudibanda)\
**Replies:** 5\
**Last updated:** [April 28, 2009, 6:18pm UTC](https://www.ruby-forum.com/t/shared-memory-across-mongrels/135329 "2009-04-28T18:18:37Z")

</div>

Hi, I have written an application which on initiliazation calculates a graph based on data in DB. And then any updates on the graph(global variable) , i am doing both on graph and db. Everything works fine as long as…

---

## [Compiling nginx 64-bit on opensolaris](https://www.ruby-forum.com/t/compiling-nginx-64-bit-on-opensolaris/166598)

<div class="topic-metadata">

**Author:** [@Edho\_P\_Arief](https://www.ruby-forum.com/u/Edho_P_Arief)\
**Replies:** 3\
**Last updated:** [April 28, 2009, 2:58pm UTC](https://www.ruby-forum.com/t/compiling-nginx-64-bit-on-opensolaris/166598 "2009-04-28T14:58:37Z")

</div>

I’ve tried and unless I missed something, it doesn’t look trivial. Is there switch for amd64 somewhere in configure or environment variables? using CC="/opt/SSX0903/bin/cc -m64" ./configure --prefix=/usr/local/nginx d…

---

## [EY Load balancer - Does this work with the newest dev version?](https://www.ruby-forum.com/t/ey-load-balancer-does-this-work-with-the-newest-dev-version/163089)

<div class="topic-metadata">

**Author:** [@Asif\_A](https://www.ruby-forum.com/u/Asif_A)\
**Replies:** 6\
**Last updated:** [April 28, 2009, 2:28pm UTC](https://www.ruby-forum.com/t/ey-load-balancer-does-this-work-with-the-newest-dev-version/163089 "2009-04-28T14:28:40Z")

</div>

Just checking if the EY load balancer has been tested with the latest development version… regards Asif A.

---

## [nginx-0.7.53/Windows select error and dead loop](https://www.ruby-forum.com/t/nginx-0-7-53-windows-select-error-and-dead-loop/166659)

<div class="topic-metadata">

**Author:** [@diogin](https://www.ruby-forum.com/u/diogin)\
**Replies:** 4\
**Last updated:** [April 28, 2009, 11:27am UTC](https://www.ruby-forum.com/t/nginx-0-7-53-windows-select-error-and-dead-loop/166659 "2009-04-28T11:27:55Z")

</div>

Hello, I started 0.7.53 Windows build hours ago and it come into crazy dead loop minutes later, these have been occured two times. The CPU is 100% since I started two worker, and the error.log file has been increasing …

---

## [Trying to set timer\_resolution - but... 'unknown directive "timer\_resolution"'](https://www.ruby-forum.com/t/trying-to-set-timer-resolution-but-unknown-directive-timer-resolution/166644)

<div class="topic-metadata">

**Author:** [@jfl](https://www.ruby-forum.com/u/jfl)\
**Replies:** 3\
**Last updated:** [April 28, 2009, 7:25am UTC](https://www.ruby-forum.com/t/trying-to-set-timer-resolution-but-unknown-directive-timer-resolution/166644 "2009-04-28T07:25:21Z")

</div>

as per subject, I’m trying to set timer\_resolution in my nginx.conf file - but to no avail. When i do an “nginx -t”, I get the “unknown directive” error message - despite the fact that this should be a known directive…

---

## [Could not install nginx-0.7.53 with ports www/nginx-devel in freebsd6.2](https://www.ruby-forum.com/t/could-not-install-nginx-0-7-53-with-ports-www-nginx-devel-in-freebsd6-2/166647)

<div class="topic-metadata">

**Author:** [@Mars](https://www.ruby-forum.com/u/Mars)\
**Replies:** 0\
**Last updated:** [April 28, 2009, 7:13am UTC](https://www.ruby-forum.com/t/could-not-install-nginx-0-7-53-with-ports-www-nginx-devel-in-freebsd6-2/166647 "2009-04-28T07:13:05Z")

</div>

The Makefile file seems has some problems, when I make install ,there is a error: “Makefile”, line 57: Could not find bsd.port.options.mk make: fatal errors encountered – cannot continue it seems because there is no…

---

## [Update to 0.6.36](https://www.ruby-forum.com/t/update-to-0-6-36/166645)

<div class="topic-metadata">

**Author:** [@pixel75](https://www.ruby-forum.com/u/pixel75)\
**Replies:** 0\
**Last updated:** [April 28, 2009, 6:05am UTC](https://www.ruby-forum.com/t/update-to-0-6-36/166645 "2009-04-28T06:05:47Z")

</div>

Hi I’m trying to upgrade nginx from 0.5.35 to 0.6.36 using: ./configure --prefix=/etc/nginx --conf-path=/etc/nginx –add-module=/etc/nginx/upload-progress-module Then “make install clean” (I try too with “make” and th…

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/166607)

<div class="topic-metadata">

**Author:** [@1arryb](https://www.ruby-forum.com/u/1arryb)\
**Replies:** 1\
**Last updated:** [April 28, 2009, 1:09am UTC](https://www.ruby-forum.com/t/unsubscribe/166607 "2009-04-28T01:09:13Z")

</div>

unsubscribe

---

## [Variables in FreeBSD](https://www.ruby-forum.com/t/variables-in-freebsd/166508)

<div class="topic-metadata">

**Author:** [@dalspenguin](https://www.ruby-forum.com/u/dalspenguin)\
**Replies:** 2\
**Last updated:** [April 28, 2009, 12:53am UTC](https://www.ruby-forum.com/t/variables-in-freebsd/166508 "2009-04-28T00:53:25Z")

</div>

Hello, I have created nginx module (compile by gcc) and found that nginx does not support VARIABLES on the FreeBSD os. I try to use it like ngx\_str\_t name = {r-\>variables\[1\].len, (unsigned char \*) r-\>variables\[1\].da…

---

## [Uploadprogress\_module - ngx\_http\_reportuploads\_handler](https://www.ruby-forum.com/t/uploadprogress-module-ngx-http-reportuploads-handler/166545)

<div class="topic-metadata">

**Author:** [@pixel75](https://www.ruby-forum.com/u/pixel75)\
**Replies:** 2\
**Last updated:** [April 27, 2009, 8:56pm UTC](https://www.ruby-forum.com/t/uploadprogress-module-ngx-http-reportuploads-handler/166545 "2009-04-27T20:56:20Z")

</div>

Hi how are you all? I have an issue trying to install the upload progress module for nginx. When I run “make” after “./compile –add-module=path/to/nginx\_uploadprogress\_module”, I got this error: ... cc1: warnings bei…

---

## [Mongrel, cross compilation, Echoe and rake-compiler](https://www.ruby-forum.com/t/mongrel-cross-compilation-echoe-and-rake-compiler/166539)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [April 27, 2009, 4:18pm UTC](https://www.ruby-forum.com/t/mongrel-cross-compilation-echoe-and-rake-compiler/166539 "2009-04-27T16:18:37Z")

</div>

Hello G.s, mainly Evan, With the goal to move One-Click Ruby Installer to use MinGW (GCC) compiler, I found there is no binary for mongrel for that platform. Because of that, the migration for lot of folks will requir…

---

## [Access error?](https://www.ruby-forum.com/t/access-error/166247)

<div class="topic-metadata">

**Author:** [@Glen\_L](https://www.ruby-forum.com/u/Glen_L)\
**Replies:** 2\
**Last updated:** [April 27, 2009, 1:02pm UTC](https://www.ruby-forum.com/t/access-error/166247 "2009-04-27T13:02:30Z")

</div>

location /administrator/ { allow 1.1.1.1; allow 2.2.2.2; deny all; I tried to use that configuration. If someone accessing www.domain.com/administrator/ it’s forbidden. But if someone accessing…

---

## [Writev() failed (104: Connection reset by peer)](https://www.ruby-forum.com/t/writev-failed-104-connection-reset-by-peer/159604)

<div class="topic-metadata">

**Author:** [@zsufrog](https://www.ruby-forum.com/u/zsufrog)\
**Replies:** 3\
**Last updated:** [April 27, 2009, 10:35am UTC](https://www.ruby-forum.com/t/writev-failed-104-connection-reset-by-peer/159604 "2009-04-27T10:35:21Z")

</div>

every time, when I login in my site ,they happened. I just can get a error blank page. —LOGS------------------------------------------------------------------------ 2009/02/06 11:19:51 \[info\] 32745#0: \*1 client 202.…

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

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