# Server

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

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

---

## [How to ensure 5xx pages served by nginx dont get cached by users?](https://www.ruby-forum.com/t/how-to-ensure-5xx-pages-served-by-nginx-dont-get-cached-by-users/156065)

<div class="topic-metadata">

**Author:** [@nginx.mailinglist](https://www.ruby-forum.com/u/nginx.mailinglist)\
**Replies:** 2\
**Last updated:** [December 20, 2008, 2:06am UTC](https://www.ruby-forum.com/t/how-to-ensure-5xx-pages-served-by-nginx-dont-get-cached-by-users/156065 "2008-12-20T02:06:39Z")

</div>

I noticed that under heavy loads nginx returns a default 5xx response (503) Anyways sometimes users email me saying they encountered the error and it wont go away, me telling them to clear their browser cache usually …

---

## [Proxy\_store binary encoding?](https://www.ruby-forum.com/t/proxy-store-binary-encoding/156031)

<div class="topic-metadata">

**Author:** [@Olivier\_B.valet](https://www.ruby-forum.com/u/Olivier_B.valet)\
**Replies:** 2\
**Last updated:** [December 19, 2008, 5:26pm UTC](https://www.ruby-forum.com/t/proxy-store-binary-encoding/156031 "2008-12-19T17:26:47Z")

</div>

Hello, I have a problem with proxy\_store, files are stored in a “binary format” (see below). The size of it is exactly the same as the original contents, so it’s not a “compression”. What can I do to avoid this ? I …

---

## [Nginx problem with allow when forwarding through 2 proxy's](https://www.ruby-forum.com/t/nginx-problem-with-allow-when-forwarding-through-2-proxys/155954)

<div class="topic-metadata">

**Author:** [@Tomasz\_P](https://www.ruby-forum.com/u/Tomasz_P)\
**Replies:** 3\
**Last updated:** [December 19, 2008, 3:15pm UTC](https://www.ruby-forum.com/t/nginx-problem-with-allow-when-forwarding-through-2-proxys/155954 "2008-12-19T15:15:19Z")

</div>

Schema: nginx1 -\> nginx2 -\> apache On nginx2 i’ve got stub status module, and I want to allow only one ip to view the data. But when I add the directive, it won’t work, because nginx2 sees that connection came from …

---

## [Training screencast on Nginx](https://www.ruby-forum.com/t/training-screencast-on-nginx/155993)

<div class="topic-metadata">

**Author:** [@thomas](https://www.ruby-forum.com/u/thomas)\
**Replies:** 2\
**Last updated:** [December 19, 2008, 12:04pm UTC](https://www.ruby-forum.com/t/training-screencast-on-nginx/155993 "2008-12-19T12:04:05Z")

</div>

Hi list, I wanted to let you know that I have released a training screencast about Nginx. The current language is french and it is sold only 9€. I cover mainly: installing Nginx from source, plugging in PHP support, …

---

## [About 'init\_master'](https://www.ruby-forum.com/t/about-init-master/155943)

<div class="topic-metadata">

**Author:** [@Yingbo\_Qiu](https://www.ruby-forum.com/u/Yingbo_Qiu)\
**Replies:** 0\
**Last updated:** [December 18, 2008, 11:24am UTC](https://www.ruby-forum.com/t/about-init-master/155943 "2008-12-18T11:24:51Z")

</div>

I’m a module developer, I found nginx start process is: blahblahblah listen invoke ‘init\_module’ register signal handler fork master. master setsid() master getpid() and write to nginx.pid master mainloop() Now I want…

---

## [How to add one more Third-Party modules?](https://www.ruby-forum.com/t/how-to-add-one-more-third-party-modules/155922)

<div class="topic-metadata">

**Author:** [@nbubingo](https://www.ruby-forum.com/u/nbubingo)\
**Replies:** 1\
**Last updated:** [December 18, 2008, 10:26am UTC](https://www.ruby-forum.com/t/how-to-add-one-more-third-party-modules/155922 "2008-12-18T10:26:09Z")

</div>

Everyone: As we knows, adding one third-party module can deal with the ‘configure’ option of ‘–add-module’. But how could I add one more modules? Any answer is appreciated. 2008-12-18 YaoWeibin

---

## [Rails 2.2 upload progress handler](https://www.ruby-forum.com/t/rails-2-2-upload-progress-handler/155935)

<div class="topic-metadata">

**Author:** [@surendra\_s](https://www.ruby-forum.com/u/surendra_s)\
**Replies:** 0\
**Last updated:** [December 18, 2008, 10:15am UTC](https://www.ruby-forum.com/t/rails-2-2-upload-progress-handler/155935 "2008-12-18T10:15:35Z")

</div>

Hello, I am trying to change my rails 1.2.6 application to rails 2.2 I have made all the other changes and able to make everything work except upload progress. When I try to start the mongrel server using the command …

---

## [Howto block Range request header](https://www.ruby-forum.com/t/howto-block-range-request-header/155925)

<div class="topic-metadata">

**Author:** [@Phuwadon\_Danrahan](https://www.ruby-forum.com/u/Phuwadon_Danrahan)\
**Replies:** 1\
**Last updated:** [December 18, 2008, 8:27am UTC](https://www.ruby-forum.com/t/howto-block-range-request-header/155925 "2008-12-18T08:27:05Z")

</div>

Hi All, I’m running NGinx with PHP fastcgi to provide file download by using “X-Accel-Redirect”. Almost all of our users use download manager such as Flashget, Download Accelerator Plus (DAP) which try to open the sec…

---

## [Problem compiling nginx-0-6-34 on CentOS 5.2 x86\_64](https://www.ruby-forum.com/t/problem-compiling-nginx-0-6-34-on-centos-5-2-x86-64/155457)

<div class="topic-metadata">

**Author:** [@Yazz\_Atlas](https://www.ruby-forum.com/u/Yazz_Atlas)\
**Replies:** 5\
**Last updated:** [December 18, 2008, 1:26am UTC](https://www.ruby-forum.com/t/problem-compiling-nginx-0-6-34-on-centos-5-2-x86-64/155457 "2008-12-18T01:26:30Z")

</div>

I am unable to compile nginx with SSL support under CentOS 5.2 x86\_64 currently. ./configure --prefix=/opt/nginx --with-openssl=/usr/lib64 –with-md5=/usr/lib64 --with-sha1=/usr/lib64 –with-http\_ssl\_module Configur…

---

## [SSL support in Debian (etch) package](https://www.ruby-forum.com/t/ssl-support-in-debian-etch-package/138472)

<div class="topic-metadata">

**Author:** [@BjSSSSrn\_Keil](https://www.ruby-forum.com/u/BjSSSSrn_Keil)\
**Replies:** 11\
**Last updated:** [December 17, 2008, 6:43pm UTC](https://www.ruby-forum.com/t/ssl-support-in-debian-etch-package/138472 "2008-12-17T18:43:26Z")

</div>

Hello, I was experimenting with nginx and, since I want all dependencies and updates managed easily and without regular compilation on my own, I chose a Debian package. However, upon trying to start my initial test s…

---

## [Bug (or my fault) in nginx-0.7.27?](https://www.ruby-forum.com/t/bug-or-my-fault-in-nginx-0-7-27/155829)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [December 17, 2008, 10:41am UTC](https://www.ruby-forum.com/t/bug-or-my-fault-in-nginx-0-7-27/155829 "2008-12-17T10:41:51Z")

</div>

When I run: nginx -t to test my nginx.conf I get: 2008/12/17 02:59:58 \[warn\] 9391#0: duplicate MIME type “text/html” in /home/scardig/local/nginx/conf/nginx.conf:30 2008/12/17 02:59:58 \[info\] 9391#0: the configuration…

---

## [Problem launching mongrel](https://www.ruby-forum.com/t/problem-launching-mongrel/155788)

<div class="topic-metadata">

**Author:** [@sobert](https://www.ruby-forum.com/u/sobert)\
**Replies:** 4\
**Last updated:** [December 16, 2008, 9:48pm UTC](https://www.ruby-forum.com/t/problem-launching-mongrel/155788 "2008-12-16T21:48:05Z")

</div>

Hello. I use capistrano with mongrel and apache. When I cap deploy:start, It launches nothing. So I : sd-17133:/var/rails/canardps3/current# mongrel\_cluster\_ctl start Starting all mongrel\_clusters… /usr/local/bin/mo…

---

## [Syslog support for 0.7.27 (should work on other 0.7.x versions as well)](https://www.ruby-forum.com/t/syslog-support-for-0-7-27-should-work-on-other-0-7-x-versions-as-well/155775)

<div class="topic-metadata">

**Author:** [@Marlon\_de\_Boer](https://www.ruby-forum.com/u/Marlon_de_Boer)\
**Replies:** 2\
**Last updated:** [December 16, 2008, 8:04pm UTC](https://www.ruby-forum.com/t/syslog-support-for-0-7-27-should-work-on-other-0-7-x-versions-as-well/155775 "2008-12-16T20:04:05Z")

</div>

Hi, Attached you can find a patch to enable syslog for nginx 0.7.27. It’s based on my original patch for the 0.6.x branch. Regards Marlon de Boer System Engineer www.hyves.nl

---

## [Mongrel\_cluster hangs](https://www.ruby-forum.com/t/mongrel-cluster-hangs/155786)

<div class="topic-metadata">

**Author:** [@WeilS\_Mark\_T](https://www.ruby-forum.com/u/WeilS_Mark_T)\
**Replies:** 0\
**Last updated:** [December 16, 2008, 7:46pm UTC](https://www.ruby-forum.com/t/mongrel-cluster-hangs/155786 "2008-12-16T19:46:27Z")

</div>

Hello, I am having to restart my mongrel\_cluster instances every morning because they are hung. Has anyone else had this problem. I am running Red-Hat 5.0 and Mongrel\_cluster (1.0.5) and Apache (2.2.3). I have a str…

---

## [Passing port number at run time](https://www.ruby-forum.com/t/passing-port-number-at-run-time/155766)

<div class="topic-metadata">

**Author:** [@brian](https://www.ruby-forum.com/u/brian)\
**Replies:** 0\
**Last updated:** [December 16, 2008, 3:49pm UTC](https://www.ruby-forum.com/t/passing-port-number-at-run-time/155766 "2008-12-16T15:49:19Z")

</div>

Hi all, I would like to able to pass the port number (and a couple other things) in the http section to nginx at run time. I know the -g switch disallows block parameters, I’ve played around a bit with patching the …

---

## [Recently seeing a bunch of 400s](https://www.ruby-forum.com/t/recently-seeing-a-bunch-of-400s/154706)

<div class="topic-metadata">

**Author:** [@unclouded](https://www.ruby-forum.com/u/unclouded)\
**Replies:** 17\
**Last updated:** [December 16, 2008, 9:40am UTC](https://www.ruby-forum.com/t/recently-seeing-a-bunch-of-400s/154706 "2008-12-16T09:40:35Z")

</div>

Hello, I’m seeing a bunch of entries like the following in my nginx access log: 88.147.21.24 - - \[02/Dec/2008:04:16:43 -0600\] “-” 400 0 “-” “-” 72.14.204.136 - - \[02/Dec/2008:04:16:43 -0600\] “-” 400 0 “-” “-” 88.147.…

---

## [Nginx + cookies + firefox = 400 Bad Request](https://www.ruby-forum.com/t/nginx-cookies-firefox-400-bad-request/155600)

<div class="topic-metadata">

**Author:** [@oliver-peng](https://www.ruby-forum.com/u/oliver-peng)\
**Replies:** 10\
**Last updated:** [December 16, 2008, 3:12am UTC](https://www.ruby-forum.com/t/nginx-cookies-firefox-400-bad-request/155600 "2008-12-16T03:12:10Z")

</div>

Hi guys, this week is was about to move partially to nginx for all static content. The full switch was planned in about a month on a new server. I followed this guide http://www.dikant.de/2008/07/10/nginx-as-a-reverse…

---

## [NGINX + Subversion + HTTPS and 502 Bad Gateway error](https://www.ruby-forum.com/t/nginx-subversion-https-and-502-bad-gateway-error/155680)

<div class="topic-metadata">

**Author:** [@Mario\_Gazzo](https://www.ruby-forum.com/u/Mario_Gazzo)\
**Replies:** 2\
**Last updated:** [December 15, 2008, 9:32pm UTC](https://www.ruby-forum.com/t/nginx-subversion-https-and-502-bad-gateway-error/155680 "2008-12-15T21:32:07Z")

</div>

Hi, Could only find one entry about this on the NGINX mailinglist but without any answer, so maybe there is someone who can help me with this. I get the following svn error when I try to create a branch: “svn: Server…

---

## [Error\_log doesn't accept a DRY variable](https://www.ruby-forum.com/t/error-log-doesnt-accept-a-dry-variable/155706)

<div class="topic-metadata">

**Author:** [@thomas](https://www.ruby-forum.com/u/thomas)\
**Replies:** 0\
**Last updated:** [December 15, 2008, 7:37pm UTC](https://www.ruby-forum.com/t/error-log-doesnt-accept-a-dry-variable/155706 "2008-12-15T19:37:01Z")

</div>

Here is my configuration file: Let’s set some vars to be DRY set $log\_path /usr/local/nginx/logs; set $rails\_path /home/thomas/rails\_apps; access\_log $log\_path/traffic.log traffic; access\_log $log\_path/access.video\_…

---

## [Nginx-0.7.27](https://www.ruby-forum.com/t/nginx-0-7-27/155667)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 6\
**Last updated:** [December 15, 2008, 3:50pm UTC](https://www.ruby-forum.com/t/nginx-0-7-27/155667 "2008-12-15T15:50:02Z")

</div>

Changes with nginx 0.7.27 15 Dec 2008 \*) Feature: the "try\_files" directive. \*) Feature: variables support in the "fastcgi\_pass" directive. \*) Feature: now the $geo variable may…

---

## [Nginx-0.7.27](https://www.ruby-forum.com/t/nginx-0-7-27/155665)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 0\
**Last updated:** [December 15, 2008, 12:43pm UTC](https://www.ruby-forum.com/t/nginx-0-7-27/155665 "2008-12-15T12:43:44Z")

</div>

éÚÍÅÎÅÎÉÑ × nginx 0.7.27 15.12.2008 \*) äÏÂÁ×ÌÅÎÉÅ: ÄÉÒÅËÔÉ×Á try\_files. \*) äÏÂÁ×ÌÅÎÉÅ: ÄÉÒÅËÔÉ×Á fastcgi\_pass ÐÏÄÄÅÒÖÉ×ÁÅÔ ÐÅÒÅÍÅÎÎÙÅ. \*) äÏÂÁ×ÌÅÎÉÅ: ÔÅÐÅÒØ ÄÉÒÅËÔÉ×Á geo ÍÏÖÅÔ…

---

## [Variable on userid\_domain](https://www.ruby-forum.com/t/variable-on-userid-domain/155597)

<div class="topic-metadata">

**Author:** [@danmezzetti](https://www.ruby-forum.com/u/danmezzetti)\
**Replies:** 1\
**Last updated:** [December 14, 2008, 4:25pm UTC](https://www.ruby-forum.com/t/variable-on-userid-domain/155597 "2008-12-14T16:25:29Z")

</div>

Hi all, I’m trying to pass a variable $domain on userid\_domain switch but it doesn’t work: this is the result: daniele@lara:~$ HEAD http://localhost 200 OK Connection: close Date: Fri, 12 Dec 2008 16:31:59 GMT Ac…

---

## [Nanoki online demo](https://www.ruby-forum.com/t/nanoki-online-demo/155601)

<div class="topic-metadata">

**Author:** [@Petite\_A](https://www.ruby-forum.com/u/Petite_A)\
**Replies:** 0\
**Last updated:** [December 14, 2008, 1:39pm UTC](https://www.ruby-forum.com/t/nanoki-online-demo/155601 "2008-12-14T13:39:09Z")

</div>

Hello, The online demo of Nanoki, a simple wiki engine implemented in Lua, has been updated to version 1.11: http://svr225.stepx.com:3388/a In its “Flickr Killr 0.3” configuration \[1\], Nanoki runs as a cluster of Lu…

---

## [Upstream doesn't rewrite the host name?](https://www.ruby-forum.com/t/upstream-doesnt-rewrite-the-host-name/155529)

<div class="topic-metadata">

**Author:** [@Mark\_Swanson](https://www.ruby-forum.com/u/Mark_Swanson)\
**Replies:** 2\
**Last updated:** [December 13, 2008, 1:34am UTC](https://www.ruby-forum.com/t/upstream-doesnt-rewrite-the-host-name/155529 "2008-12-13T01:34:58Z")

</div>

This example from the documentation does not work for me: http { upstream myproject { server 127.0.0.1:8000 weight=3; server 127.0.0.1:8001; server 127.0.0.1:8002; server 127.0.0.1:8003; } server { listen 80;…

---

## [Vhost problem (only last vhost works)](https://www.ruby-forum.com/t/vhost-problem-only-last-vhost-works/155335)

<div class="topic-metadata">

**Author:** [@kyrre](https://www.ruby-forum.com/u/kyrre)\
**Replies:** 13\
**Last updated:** [December 13, 2008, 12:49am UTC](https://www.ruby-forum.com/t/vhost-problem-only-last-vhost-works/155335 "2008-12-13T00:49:19Z")

</div>

Hey you all, I’m trying to run 3 sites / virtual hosts: http://pastie.org/335739 But only the last site works. The first and second redirects me to that last site. What have I done wrong? Thank you.

---

## [Mongrel\_cluster](https://www.ruby-forum.com/t/mongrel-cluster/155531)

<div class="topic-metadata">

**Author:** [@WeilS\_Mark\_T](https://www.ruby-forum.com/u/WeilS_Mark_T)\
**Replies:** 1\
**Last updated:** [December 13, 2008, 12:05am UTC](https://www.ruby-forum.com/t/mongrel-cluster/155531 "2008-12-13T00:05:59Z")

</div>

Hello, I am having to restart my mongrel\_cluster instances every morning because they are hung. Has anyone else had this problem. I am running Red-Hat 5.0 and Mongrel\_cluster (1.0.5) and Apache (2.2.3). I have a str…

---

## [Recommendations for nginx stats capturing](https://www.ruby-forum.com/t/recommendations-for-nginx-stats-capturing/138351)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 4\
**Last updated:** [December 12, 2008, 8:05pm UTC](https://www.ruby-forum.com/t/recommendations-for-nginx-stats-capturing/138351 "2008-12-12T20:05:42Z")

</div>

I am looking for a tool to help me understand the # of requests nginx is processing over time. I came across this which looks pretty good Monitoring nginx Server Statistics With rrdtool :: Oleksiy Kovyrin but I canno…

---

## [Disabling static file lookups?](https://www.ruby-forum.com/t/disabling-static-file-lookups/155461)

<div class="topic-metadata">

**Author:** [@Cody\_Caughlan](https://www.ruby-forum.com/u/Cody_Caughlan)\
**Replies:** 3\
**Last updated:** [December 12, 2008, 6:11pm UTC](https://www.ruby-forum.com/t/disabling-static-file-lookups/155461 "2008-12-12T18:11:03Z")

</div>

In looking at a running mongrel process in strace and at the code itself Mongrel will always look for a file under “public” (with and without a .html extension). When those filesystem lookups fail, it then passes the …

---

## [Nginx + windows integrated auth/ntlm/ldap/etc/etc](https://www.ruby-forum.com/t/nginx-windows-integrated-auth-ntlm-ldap-etc-etc/141483)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 1\
**Last updated:** [December 12, 2008, 10:20am UTC](https://www.ruby-forum.com/t/nginx-windows-integrated-auth-ntlm-ldap-etc-etc/141483 "2008-12-12T10:20:44Z")

</div>

Igor, et al: Anyone here know the internals of an XP-based network (running the newer Active Directory-like LDAP stuff, not the old style samba domain controller stuff) and if it would be easy to support it in nginx? …

---

## [Upstream prematurely closed connection while reading response header from upstream](https://www.ruby-forum.com/t/upstream-prematurely-closed-connection-while-reading-response-header-from-upstream/155465)

<div class="topic-metadata">

**Author:** [@Glen\_L](https://www.ruby-forum.com/u/Glen_L)\
**Replies:** 0\
**Last updated:** [December 12, 2008, 3:36am UTC](https://www.ruby-forum.com/t/upstream-prematurely-closed-connection-while-reading-response-header-from-upstream/155465 "2008-12-12T03:36:01Z")

</div>

I always got this error on my error.log 2008/12/12 09:20:06 \[error\] 7624#0: \*5598 upstream prematurely closed connection while reading response header from upstream, client: 125.160.44.41, server: domain.com, request:…

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

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