# Server

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

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

---

## [Configuration options](https://www.ruby-forum.com/t/configuration-options/177235)

<div class="topic-metadata">

**Author:** [@steve](https://www.ruby-forum.com/u/steve)\
**Replies:** 3\
**Last updated:** [October 15, 2009, 4:42pm UTC](https://www.ruby-forum.com/t/configuration-options/177235 "2009-10-15T16:42:19Z")

</div>

Hallo all I have a bunch of questions regarding the configuration switches at compile time. Assuming I would set “–without-http” does that then automatically sets the following switches as well or do I need to set …

---

## [Rewrite\_module patch: 'if (-z)' checks for zero-length files](https://www.ruby-forum.com/t/rewrite-module-patch-if-z-checks-for-zero-length-files/177355)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [October 15, 2009, 3:09pm UTC](https://www.ruby-forum.com/t/rewrite-module-patch-if-z-checks-for-zero-length-files/177355 "2009-10-15T15:09:14Z")

</div>

Hi! I’ve a heavy loaded reverse proxy for large video files on nginx/http\_proxy\_module. Sometimes I cache a zero-length file due to a problem of the upstream server and it’s a headache for my client. I found that, th…

---

## [Mongrel behind Apache server as reverse proxy](https://www.ruby-forum.com/t/mongrel-behind-apache-server-as-reverse-proxy/177336)

<div class="topic-metadata">

**Author:** [@jayco](https://www.ruby-forum.com/u/jayco)\
**Replies:** 0\
**Last updated:** [October 15, 2009, 7:43am UTC](https://www.ruby-forum.com/t/mongrel-behind-apache-server-as-reverse-proxy/177336 "2009-10-15T07:43:19Z")

</div>

Hello Have set up reverse proxy for running a ruby app on mongrel (on windows)? Apache has error in balancer log client denied by server configuration Is there something in Mongrel which is causing this? And on bro…

---

## [Deleting from cache by disk usage alone](https://www.ruby-forum.com/t/deleting-from-cache-by-disk-usage-alone/177337)

<div class="topic-metadata">

**Author:** [@spamjoshua](https://www.ruby-forum.com/u/spamjoshua)\
**Replies:** 0\
**Last updated:** [October 15, 2009, 7:14am UTC](https://www.ruby-forum.com/t/deleting-from-cache-by-disk-usage-alone/177337 "2009-10-15T07:14:29Z")

</div>

I have a proxy\_cache\_path : proxy\_cache\_path /local/cache/nginx levels=1:2 keys\_zone=cache:10m inactive=9d max\_size=50G; and also proxy\_cache\_valid statements: proxy\_cache\_valid 200 9d; I am wondering, however, if t…

---

## [Help with autoindex on; missing slash for directories](https://www.ruby-forum.com/t/help-with-autoindex-on-missing-slash-for-directories/171370)

<div class="topic-metadata">

**Author:** [@Yazz\_Atlas](https://www.ruby-forum.com/u/Yazz_Atlas)\
**Replies:** 8\
**Last updated:** [October 14, 2009, 11:19pm UTC](https://www.ruby-forum.com/t/help-with-autoindex-on-missing-slash-for-directories/171370 "2009-10-14T23:19:47Z")

</div>

I’m working on upgrading some servers running nginx-0.6.34 to either nginx-0.8.4 or nginx-0.7.61. The problem is I have another tool that was crawling the nginx directory and following all the directories it found. Wi…

---

## [Rate limiting and tarpitting](https://www.ruby-forum.com/t/rate-limiting-and-tarpitting/177316)

<div class="topic-metadata">

**Author:** [@Avleen\_Vig](https://www.ruby-forum.com/u/Avleen_Vig)\
**Replies:** 0\
**Last updated:** [October 14, 2009, 8:22pm UTC](https://www.ruby-forum.com/t/rate-limiting-and-tarpitting/177316 "2009-10-14T20:22:24Z")

</div>

Hi everyone :slight\_smile: I’ve been looking to implement the limit\_req\_zone stuff but it doesn’t do quite what I want. Ideally what I want to do is check to see if someone is making a large number of requests in a s…

---

## [Default error page for nginx](https://www.ruby-forum.com/t/default-error-page-for-nginx/177301)

<div class="topic-metadata">

**Author:** [@jemminger](https://www.ruby-forum.com/u/jemminger)\
**Replies:** 2\
**Last updated:** [October 14, 2009, 5:37pm UTC](https://www.ruby-forum.com/t/default-error-page-for-nginx/177301 "2009-10-14T17:37:52Z")

</div>

I’m starting to occasionally get “nginx error! this is the default error page for nginx”. I’m running a php application via the lighty-spawn method. Any ideas on why this error would occur? -Jeff

---

## [Apache Server-status alternative](https://www.ruby-forum.com/t/apache-server-status-alternative/177293)

<div class="topic-metadata">

**Author:** [@alberto](https://www.ruby-forum.com/u/alberto)\
**Replies:** 0\
**Last updated:** [October 14, 2009, 4:49pm UTC](https://www.ruby-forum.com/t/apache-server-status-alternative/177293 "2009-10-14T16:49:15Z")

</div>

We have Varnish → nginx → php-fcgi Since yesterday, and from time to time we get a blank page from the php-fcgi. And an increased memory consumption. We have changed php-fcgi to die each 100 requests instead of 1000, …

---

## [Index.php 301 redirect](https://www.ruby-forum.com/t/index-php-301-redirect/177283)

<div class="topic-metadata">

**Author:** [@SE7EN](https://www.ruby-forum.com/u/SE7EN)\
**Replies:** 5\
**Last updated:** [October 14, 2009, 4:25pm UTC](https://www.ruby-forum.com/t/index-php-301-redirect/177283 "2009-10-14T16:25:49Z")

</div>

I want to redirect all calls to http://mydomain.com/index.php to http://mydomain.com to avoid duplicate pages.I use this if ($request\_uri ~\* “^/index.php??$”) { rewrite ^.\*$ http://$host? permanent; } but it doesn’t…

---

## [Nginx-0.8.20](https://www.ruby-forum.com/t/nginx-0-8-20/177285)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 0\
**Last updated:** [October 14, 2009, 3:17pm UTC](https://www.ruby-forum.com/t/nginx-0-8-20/177285 "2009-10-14T15:17:19Z")

</div>

Changes with nginx 0.8.20 14 Oct 2009 \*) Change: now default SSL ciphers are "HIGH:!ADH:!MD5". \*) Bugfix: the ngx\_http\_autoindex\_module did not show the trailing slash in link…

---

## [Poor performance of sendfile in high load big file download](https://www.ruby-forum.com/t/poor-performance-of-sendfile-in-high-load-big-file-download/177255)

<div class="topic-metadata">

**Author:** [@arnoldguo](https://www.ruby-forum.com/u/arnoldguo)\
**Replies:** 0\
**Last updated:** [October 14, 2009, 7:49am UTC](https://www.ruby-forum.com/t/poor-performance-of-sendfile-in-high-load-big-file-download/177255 "2009-10-14T07:49:24Z")

</div>

My server is using to download big file(10M~20M each), when using sendfile on ,if the conn reach 800-1.2k conn/s(limit\_rate 150k), the perfmance get poor,time\_starttransfer may be 20~30s. When I change to sendfile of…

---

## [FastCGI upstream timeout question](https://www.ruby-forum.com/t/fastcgi-upstream-timeout-question/177253)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 0\
**Last updated:** [October 14, 2009, 7:40am UTC](https://www.ruby-forum.com/t/fastcgi-upstream-timeout-question/177253 "2009-10-14T07:40:37Z")

</div>

I have switched around my architecture now, and I have one nginx server that is serving up all static content and proxying FastCGI (php) stuff to one of three servers that are basically just running PHP-FPM. I have a…

---

## [Requests going to the wrong upstream](https://www.ruby-forum.com/t/requests-going-to-the-wrong-upstream/177227)

<div class="topic-metadata">

**Author:** [@Rainer\_D](https://www.ruby-forum.com/u/Rainer_D)\
**Replies:** 1\
**Last updated:** [October 13, 2009, 10:03pm UTC](https://www.ruby-forum.com/t/requests-going-to-the-wrong-upstream/177227 "2009-10-13T22:03:23Z")

</div>

Hi, I have a configuration that has worked nicely in the past: http { upstream appservers { # ip\_hash; server ip1:80 ; server ip2:80 ; } include mime.types; default\_type application/octet-stream…

---

## [How to disable buffering when using FastCGI?](https://www.ruby-forum.com/t/how-to-disable-buffering-when-using-fastcgi/177212)

<div class="topic-metadata">

**Author:** [@Nicolas\_Grilly](https://www.ruby-forum.com/u/Nicolas_Grilly)\
**Replies:** 10\
**Last updated:** [October 13, 2009, 9:52pm UTC](https://www.ruby-forum.com/t/how-to-disable-buffering-when-using-fastcgi/177212 "2009-10-13T21:52:16Z")

</div>

Is there a way to disable buffering when using FastCGI? (for a Comet style application) Is there an option “fastcgi\_buffering off”, working like the option “proxy\_buffering off” in the HTTP proxy module? Thanks, Nic…

---

## [Problem with certificate and Nginx as Reverse SSL proxy](https://www.ruby-forum.com/t/problem-with-certificate-and-nginx-as-reverse-ssl-proxy/177209)

<div class="topic-metadata">

**Author:** [@michaelvv](https://www.ruby-forum.com/u/michaelvv)\
**Replies:** 0\
**Last updated:** [October 13, 2009, 1:07pm UTC](https://www.ruby-forum.com/t/problem-with-certificate-and-nginx-as-reverse-ssl-proxy/177209 "2009-10-13T13:07:43Z")

</div>

Hi Nginx. I have tried to setup at Reverse SSL proxy with nginx… I need to have login.blabla.com to fetch data from a http server behind it… I go a certificate Error in both mozilla/IE even if they say that the cert…

---

## [Nginx flv module and amazon storage](https://www.ruby-forum.com/t/nginx-flv-module-and-amazon-storage/177111)

<div class="topic-metadata">

**Author:** [@Fernando\_FlSSS\_rez](https://www.ruby-forum.com/u/Fernando_FlSSS_rez)\
**Replies:** 12\
**Last updated:** [October 13, 2009, 7:09am UTC](https://www.ruby-forum.com/t/nginx-flv-module-and-amazon-storage/177111 "2009-10-13T07:09:29Z")

</div>

Hello, Quick question before trying it for myself. Is it possible to use nginx’s flv module with flv files stores on amazon’s storage cloud? What i’m trying to achieve is to host the flv files on amazon and serve the…

---

## [Documentation of $slow variable](https://www.ruby-forum.com/t/documentation-of-slow-variable/177163)

<div class="topic-metadata">

**Author:** [@William\_Dode](https://www.ruby-forum.com/u/William_Dode)\
**Replies:** 3\
**Last updated:** [October 12, 2009, 11:34pm UTC](https://www.ruby-forum.com/t/documentation-of-slow-variable/177163 "2009-10-12T23:34:37Z")

</div>

Hi, Where can i find the documentation about the $slow variable ? I see it in lot of example, but cannot find the description… I search for a way to don’t pass through proxy if the load of the system is high. Instead…

---

## [Qustion for reverse-proxy for virtual host](https://www.ruby-forum.com/t/qustion-for-reverse-proxy-for-virtual-host/176707)

<div class="topic-metadata">

**Author:** [@quan\_nexthop](https://www.ruby-forum.com/u/quan_nexthop)\
**Replies:** 7\
**Last updated:** [October 12, 2009, 5:25pm UTC](https://www.ruby-forum.com/t/qustion-for-reverse-proxy-for-virtual-host/176707 "2009-10-12T17:25:45Z")

</div>

Hi all: I try to setup the NGINX as a reverse-proxy to protect several webservers, which lots of websites are running on. Yes, it is a virtual host :slight\_smile: abc.com |-----------\[nginx reverse proxy\] ------- |vi…

---

## [Help cifs mount under document root does not work for nginx](https://www.ruby-forum.com/t/help-cifs-mount-under-document-root-does-not-work-for-nginx/177088)

<div class="topic-metadata">

**Author:** [@pninoh](https://www.ruby-forum.com/u/pninoh)\
**Replies:** 2\
**Last updated:** [October 12, 2009, 2:10pm UTC](https://www.ruby-forum.com/t/help-cifs-mount-under-document-root-does-not-work-for-nginx/177088 "2009-10-12T14:10:12Z")

</div>

Hi all I am a newer for nginx. When is want to set the nginx webroot to a cifs mount disk , a error report : sendfile() failed (75: Value too large for defined data type) while sending response to client My env: n…

---

## [Nginx to use libatomic\_ops](https://www.ruby-forum.com/t/nginx-to-use-libatomic-ops/176180)

<div class="topic-metadata">

**Author:** [@W-Mark\_K](https://www.ruby-forum.com/u/W-Mark_K)\
**Replies:** 8\
**Last updated:** [October 12, 2009, 1:25pm UTC](https://www.ruby-forum.com/t/nginx-to-use-libatomic-ops/176180 "2009-10-12T13:25:43Z")

</div>

Dear developers, I have experienced SEGFAULTs on ARM using fastcgi and discovered it compiles with “NGX\_HAVE\_ATOMIC\_OPS 0” on ‘other’ architectures than x86, amd64, sparc and the such defined in src/os/unix/ngx\_atomic…

---

## [Patch install error](https://www.ruby-forum.com/t/patch-install-error/176869)

<div class="topic-metadata">

**Author:** [@gedakos](https://www.ruby-forum.com/u/gedakos)\
**Replies:** 3\
**Last updated:** [October 12, 2009, 10:43am UTC](https://www.ruby-forum.com/t/patch-install-error/176869 "2009-10-12T10:43:33Z")

</div>

Hello. Wonder if you could help me please. I’ve installed nginx 0.7.59 or 0.7.62 and i wish to apply the patch by witch I can do ssl\_crl verifications.But i get the following error: cc1: warnings being treated as err…

---

## [Why not support multithread?](https://www.ruby-forum.com/t/why-not-support-multithread/177096)

<div class="topic-metadata">

**Author:** [@bit\_bull](https://www.ruby-forum.com/u/bit_bull)\
**Replies:** 4\
**Last updated:** [October 12, 2009, 5:30am UTC](https://www.ruby-forum.com/t/why-not-support-multithread/177096 "2009-10-12T05:30:58Z")

</div>

hi, all: I saw multithread is supported at Nginx SourceCode. But complie configure hiden this feature. I modified some source to open it, then run Nginx. DeathLock(lock and lock again) happened, Nginx is Hanging. I…

---

## [Proxy\_pass AND module\_perl](https://www.ruby-forum.com/t/proxy-pass-and-module-perl/177050)

<div class="topic-metadata">

**Author:** [@tsukasagenesis](https://www.ruby-forum.com/u/tsukasagenesis)\
**Replies:** 5\
**Last updated:** [October 11, 2009, 5:30pm UTC](https://www.ruby-forum.com/t/proxy-pass-and-module-perl/177050 "2009-10-11T17:30:10Z")

</div>

Hi, I want to know how set url of proxy\_pass with perl\_module. It’s possible to do it ? Thank’s for your help, tsukasa. Posted at Nginx Forum:

---

## [HELP, I need write a module, upload a single file](https://www.ruby-forum.com/t/help-i-need-write-a-module-upload-a-single-file/177079)

<div class="topic-metadata">

**Author:** [@gaosboy](https://www.ruby-forum.com/u/gaosboy)\
**Replies:** 1\
**Last updated:** [October 11, 2009, 11:00am UTC](https://www.ruby-forum.com/t/help-i-need-write-a-module-upload-a-single-file/177079 "2009-10-11T11:00:56Z")

</div>

I need write a nginx module to upload a single file by POST method. Just get post request and move the file to a specified path. It is simple but I cannot get the POST data now. I want to know how to move the file fro…

---

## [Reverse proxy with caching](https://www.ruby-forum.com/t/reverse-proxy-with-caching/177047)

<div class="topic-metadata">

**Author:** [@Ranjith\_Parasuraman](https://www.ruby-forum.com/u/Ranjith_Parasuraman)\
**Replies:** 0\
**Last updated:** [October 10, 2009, 12:48pm UTC](https://www.ruby-forum.com/t/reverse-proxy-with-caching/177047 "2009-10-10T12:48:46Z")

</div>

Hi, I am a newbie to nginx. I have come to test nginx after unsuccessfuly trying to configure squid. I want to run nginx as a reverse proxy and cache full page dynamic content. It should pass requests to apache for …

---

## [DDoS Attack Log Analysis Question](https://www.ruby-forum.com/t/ddos-attack-log-analysis-question/177029)

<div class="topic-metadata">

**Author:** [@joviyach](https://www.ruby-forum.com/u/joviyach)\
**Replies:** 7\
**Last updated:** [October 10, 2009, 12:12pm UTC](https://www.ruby-forum.com/t/ddos-attack-log-analysis-question/177029 "2009-10-10T12:12:29Z")

</div>

The nginx forum had a DDoS attack which took the site down this morning. In approximately 23 seconds there were just under 900,000 lines in the error log that looked like: 2009/10/09 10:21:38 \[alert\] 32576#0: accept()…

---

## [Error\_log cannot be reopened when kill a USR1 signal](https://www.ruby-forum.com/t/error-log-cannot-be-reopened-when-kill-a-usr1-signal/176970)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 8\
**Last updated:** [October 10, 2009, 8:55am UTC](https://www.ruby-forum.com/t/error-log-cannot-be-reopened-when-kill-a-usr1-signal/176970 "2009-10-10T08:55:51Z")

</div>

\[root@tupian\_web logs\]# ls -l /proc/cat nginx.pid/fd total 15 lrwx------ 1 root root 64 Oct 9 11:08 0 -\> /dev/null lrwx------ 1 root root 64 Oct 9 11:08 1 -\> /dev/null lrwx------ 1 root root 64 Oct 9 11:08 10 -\>…

---

## [Serving static content from a sub url?](https://www.ruby-forum.com/t/serving-static-content-from-a-sub-url/177038)

<div class="topic-metadata">

**Author:** [@cjbottaro](https://www.ruby-forum.com/u/cjbottaro)\
**Replies:** 2\
**Last updated:** [October 10, 2009, 8:28am UTC](https://www.ruby-forum.com/t/serving-static-content-from-a-sub-url/177038 "2009-10-10T08:28:22Z")

</div>

Hello, I have a static website on my machine at /home/me/www/public I simply want to serve that from a sub url on my domain: http://www.mydomain.com/mysite How do I do that? I tried this but it didn’t work… server…

---

## [Error page and internal command](https://www.ruby-forum.com/t/error-page-and-internal-command/176960)

<div class="topic-metadata">

**Author:** [@Fernando\_FlSSS\_rez](https://www.ruby-forum.com/u/Fernando_FlSSS_rez)\
**Replies:** 7\
**Last updated:** [October 10, 2009, 12:31am UTC](https://www.ruby-forum.com/t/error-page-and-internal-command/176960 "2009-10-10T00:31:19Z")

</div>

Hello, I’m currently running nginx-0.7.62. My conf goes like: error\_page 404 /404/ error\_page 500 /500/ location = /404/ { internal; } location = /500/ { internal; } It works fine but if i visit 404 Error | MyDoma…

---

## [How to disable FastCGI buffering?](https://www.ruby-forum.com/t/how-to-disable-fastcgi-buffering/176993)

<div class="topic-metadata">

**Author:** [@Nicolas\_Grilly](https://www.ruby-forum.com/u/Nicolas_Grilly)\
**Replies:** 0\
**Last updated:** [October 9, 2009, 2:24pm UTC](https://www.ruby-forum.com/t/how-to-disable-fastcgi-buffering/176993 "2009-10-09T14:24:14Z")

</div>

Hello, I’m trying to disable FastCGI buffering (for a Comet style application), but I’ve been unable to find an adequate solution. The HTTP proxy module provides an option “proxy\_buffering off”. Does the FastCGI modu…

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

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