# Server

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

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

---

## [Lots of 2009/09/27 00:49:21 22383#0: accept() failed (24: Too many open files)](https://www.ruby-forum.com/t/lots-of-2009-09-27-0021-22383-0-accept-failed-24-too-many-open-files/176211)

<div class="topic-metadata">

**Author:** [@jkadarusman](https://www.ruby-forum.com/u/jkadarusman)\
**Replies:** 6\
**Last updated:** [September 27, 2009, 7:58am UTC](https://www.ruby-forum.com/t/lots-of-2009-09-27-0021-22383-0-accept-failed-24-too-many-open-files/176211 "2009-09-27T07:58:53Z")

</div>

Hello, I’m using nginx to send static files and reverse proxing to an apache of the same server for serving PHP files. I’m getting a large amount of 500 internal server errors and Lots of 2009/09/27 00:49:21 \[alert…

---

## [How to start off this rule?](https://www.ruby-forum.com/t/how-to-start-off-this-rule/176137)

<div class="topic-metadata">

**Author:** [@filebackup](https://www.ruby-forum.com/u/filebackup)\
**Replies:** 7\
**Last updated:** [September 27, 2009, 5:06am UTC](https://www.ruby-forum.com/t/how-to-start-off-this-rule/176137 "2009-09-27T05:06:50Z")

</div>

Hi. I want to create an nginx rule, but I don’t known how to start off. Please help me. Thanks. the .htaccess file is in the /download/ directory, and the rule is Order deny,allow Deny from all How to convert it to…

---

## [Windows intergraded auth](https://www.ruby-forum.com/t/windows-intergraded-auth/176222)

<div class="topic-metadata">

**Author:** [@Brian\_Henson](https://www.ruby-forum.com/u/Brian_Henson)\
**Replies:** 2\
**Last updated:** [September 27, 2009, 2:29am UTC](https://www.ruby-forum.com/t/windows-intergraded-auth/176222 "2009-09-27T02:29:58Z")

</div>

I’m looking for a way to use windows intergraded auth with nginx. Right now I have it running using basic but it is insecure so I would like to run it using the intergraded auth. Has anyone been able to get this wo…

---

## [Requests per Second](https://www.ruby-forum.com/t/requests-per-second/176176)

<div class="topic-metadata">

**Author:** [@Hector\_Danniel\_Paz\_S](https://www.ruby-forum.com/u/Hector_Danniel_Paz_S)\
**Replies:** 2\
**Last updated:** [September 26, 2009, 4:55am UTC](https://www.ruby-forum.com/t/requests-per-second/176176 "2009-09-26T04:55:17Z")

</div>

Hi, I’m using stub\_status module as a source collect metrics from my nginx servers. I’m doing this: (1) wget the stats page (2) wait 1 second (3) wget the stats page again (4) Get the difference of the requests val…

---

## [SMF Pretty URL rewrite rule problem](https://www.ruby-forum.com/t/smf-pretty-url-rewrite-rule-problem/176191)

<div class="topic-metadata">

**Author:** [@gregbugaj](https://www.ruby-forum.com/u/gregbugaj)\
**Replies:** 1\
**Last updated:** [September 26, 2009, 12:39am UTC](https://www.ruby-forum.com/t/smf-pretty-url-rewrite-rule-problem/176191 "2009-09-26T00:39:24Z")

</div>

Hello. I have a little problem with rewite rule for Pretty URL Mod for SMF. first part is easy: RewriteRule ^(\[-!~\*’()$a-zA-Z0-9\]+)/?$ ./index.php?pretty;board=$1.0 \[L,QSA\] RewriteRule ^(\[-!~’()$a-zA-Z0-9\]+)/(\[0-9\])…

---

## [WP Super Cache: "try\_files" aren't allowed in "if" blocks](https://www.ruby-forum.com/t/wp-super-cache-try-files-arent-allowed-in-if-blocks/176121)

<div class="topic-metadata">

**Author:** [@igorclark](https://www.ruby-forum.com/u/igorclark)\
**Replies:** 2\
**Last updated:** [September 25, 2009, 9:58pm UTC](https://www.ruby-forum.com/t/wp-super-cache-try-files-arent-allowed-in-if-blocks/176121 "2009-09-25T21:58:35Z")

</div>

Hi there, hope you’re all well! I’m trying to configure nginx for the Wordpress Super Cache plugin, using the “Don’t cache pages for logged in users” option. I have the following config which works well once the cache…

---

## [Bug?](https://www.ruby-forum.com/t/bug/176104)

<div class="topic-metadata">

**Author:** [@amichelin](https://www.ruby-forum.com/u/amichelin)\
**Replies:** 11\
**Last updated:** [September 25, 2009, 4:30pm UTC](https://www.ruby-forum.com/t/bug/176104 "2009-09-25T16:30:31Z")

</div>

i keep getting: 2009/09/24 18:21:09 \[crit\] 11956#0: \*50 pwrite() has written only 266240 of 524288, client: 10.100.0.115, server: contentdata.spacash.com, request: “POST /store.php HTTP/1.1”, host: “10.100.0.155” 200…

---

## [Help, I need write a nginx module](https://www.ruby-forum.com/t/help-i-need-write-a-nginx-module/176145)

<div class="topic-metadata">

**Author:** [@fuji246](https://www.ruby-forum.com/u/fuji246)\
**Replies:** 6\
**Last updated:** [September 25, 2009, 11:28am UTC](https://www.ruby-forum.com/t/help-i-need-write-a-nginx-module/176145 "2009-09-25T11:28:33Z")

</div>

I need to write a nginx module to enhance the performance of our service.The following is what our service doing, 1. When getting the http request from the client, our service send http request to another server to …

---

## [Proxy\_cache max-size and range request](https://www.ruby-forum.com/t/proxy-cache-max-size-and-range-request/176091)

<div class="topic-metadata">

**Author:** [@leki75](https://www.ruby-forum.com/u/leki75)\
**Replies:** 2\
**Last updated:** [September 25, 2009, 9:56am UTC](https://www.ruby-forum.com/t/proxy-cache-max-size-and-range-request/176091 "2009-09-25T09:56:03Z")

</div>

Hi all, We would like to use nginx (0.8.15) as a proxy/cache for downloading big files. Wihtout configuring proxy\_cache we got ‘206 Partial Content’ for range requests. With proxy\_cache the first range request (which …

---

## [Set a particular location for address starting with '?'](https://www.ruby-forum.com/t/set-a-particular-location-for-address-starting-with/176047)

<div class="topic-metadata">

**Author:** [@mvip](https://www.ruby-forum.com/u/mvip)\
**Replies:** 4\
**Last updated:** [September 24, 2009, 5:13pm UTC](https://www.ruby-forum.com/t/set-a-particular-location-for-address-starting-with/176047 "2009-09-24T17:13:46Z")

</div>

I think I’ve tried all different approaches for this, but here is the problem: I need to separate all URLs starting with ‘/?’ from the remaining ones (eg /?p=12). I’ve tried a bunch of different regex matches, but non…

---

## [How configure nginx to talk http 1.1 to my backend servers](https://www.ruby-forum.com/t/how-configure-nginx-to-talk-http-1-1-to-my-backend-servers/176031)

<div class="topic-metadata">

**Author:** [@c4milo](https://www.ruby-forum.com/u/c4milo)\
**Replies:** 2\
**Last updated:** [September 24, 2009, 2:51pm UTC](https://www.ruby-forum.com/t/how-configure-nginx-to-talk-http-1-1-to-my-backend-servers/176031 "2009-09-24T14:51:28Z")

</div>

I want to think that I can use nginx as my reverse proxy and load balancer. If nginx can’t speak http 1.1 to my backend servers I will have to use apache :frowning: and I want nginx ! it’s an amazing project and its c…

---

## [\[Bug Report\]nginx Windows access log can't turn off](https://www.ruby-forum.com/t/bug-report-nginx-windows-access-log-cant-turn-off/175850)

<div class="topic-metadata">

**Author:** [@ahu](https://www.ruby-forum.com/u/ahu)\
**Replies:** 3\
**Last updated:** [September 24, 2009, 12:16pm UTC](https://www.ruby-forum.com/t/bug-report-nginx-windows-access-log-cant-turn-off/175850 "2009-09-24T12:16:19Z")

</div>

Hi Igor S., It seems that the “access\_log off” directive never turn off the logging on nginx Windows. Is it a bug or did you do this by design or by accident?

---

## [Nginx\_upstream\_hash module](https://www.ruby-forum.com/t/nginx-upstream-hash-module/175933)

<div class="topic-metadata">

**Author:** [@dennis\_cao](https://www.ruby-forum.com/u/dennis_cao)\
**Replies:** 3\
**Last updated:** [September 24, 2009, 5:03am UTC](https://www.ruby-forum.com/t/nginx-upstream-hash-module/175933 "2009-09-24T05:03:44Z")

</div>

dear allï¼š can someone give a new module can support the new stable version? thanks

---

## [Get Many 499 error, Who can help me?](https://www.ruby-forum.com/t/get-many-499-error-who-can-help-me/176051)

<div class="topic-metadata">

**Author:** [@lslmail](https://www.ruby-forum.com/u/lslmail)\
**Replies:** 0\
**Last updated:** [September 24, 2009, 4:52am UTC](https://www.ruby-forum.com/t/get-many-499-error-who-can-help-me/176051 "2009-09-24T04:52:37Z")

</div>

hi, In my nginx log, i fund many 499 status code log, please help me resolve the problem. Posted at Nginx Forum:

---

## [Cgi.fix\_pathinfo](https://www.ruby-forum.com/t/cgi-fix-pathinfo/176025)

<div class="topic-metadata">

**Author:** [@myschizobuddy](https://www.ruby-forum.com/u/myschizobuddy)\
**Replies:** 2\
**Last updated:** [September 24, 2009, 1:27am UTC](https://www.ruby-forum.com/t/cgi-fix-pathinfo/176025 "2009-09-24T01:27:08Z")

</div>

Whats the recommended setting of these php parameters for nginx server cgi.fix\_pathinfo = 1 cgi.force\_redirect = 0

---

## [$host doesn't work with case insensitive domains](https://www.ruby-forum.com/t/host-doesnt-work-with-case-insensitive-domains/175971)

<div class="topic-metadata">

**Author:** [@ami](https://www.ruby-forum.com/u/ami)\
**Replies:** 7\
**Last updated:** [September 23, 2009, 9:55pm UTC](https://www.ruby-forum.com/t/host-doesnt-work-with-case-insensitive-domains/175971 "2009-09-23T21:55:48Z")

</div>

Hi for example, domain.com will work fine. but if I will request Domain.com/DOMAIN.COM/domAin.com it will result in a Not Found 404 (because there is no “/var/www/html/domAin.com” etc.) I used the $host variable fo…

---

## [Path\_info](https://www.ruby-forum.com/t/path-info/176015)

<div class="topic-metadata">

**Author:** [@Neves](https://www.ruby-forum.com/u/Neves)\
**Replies:** 3\
**Last updated:** [September 23, 2009, 8:47pm UTC](https://www.ruby-forum.com/t/path-info/176015 "2009-09-23T20:47:17Z")

</div>

why when I set fastcgi\_param PATH\_INFO whatever; At PHP, I got the value from $\_SERVER\[“ORIG\_PATH\_INFO”\] and not from $\_SERVER\[“PATH\_INFO”\] nginx version: nginx/0.7.61 PHP 5.2.0-8+etch15 (cgi-fcgi) (built: May 1 200…

---

## [Nginx as reverse proxy, returns garbage symbols](https://www.ruby-forum.com/t/nginx-as-reverse-proxy-returns-garbage-symbols/176018)

<div class="topic-metadata">

**Author:** [@Camilo\_Aguilar](https://www.ruby-forum.com/u/Camilo_Aguilar)\
**Replies:** 5\
**Last updated:** [September 23, 2009, 8:05pm UTC](https://www.ruby-forum.com/t/nginx-as-reverse-proxy-returns-garbage-symbols/176018 "2009-09-23T20:05:08Z")

</div>

Hi everyone, I am trying to use nginx as a reverse proxy and I am getting garbage symbols in my json responses: 6a {“codedField”:\[{“code”:“01”,“name”:“Dpto01”},{“code”:“02”,“name”:“Dpto02”},{“code”:“03”,“name”:“Dpto…

---

## [Nginx adds extra chunked header while proxying anytermd](https://www.ruby-forum.com/t/nginx-adds-extra-chunked-header-while-proxying-anytermd/137120)

<div class="topic-metadata">

**Author:** [@san](https://www.ruby-forum.com/u/san)\
**Replies:** 7\
**Last updated:** [September 23, 2009, 7:59pm UTC](https://www.ruby-forum.com/t/nginx-adds-extra-chunked-header-while-proxying-anytermd/137120 "2009-09-23T19:59:19Z")

</div>

Hi guys, I have a problem while using nginx to proxy anytermd. anytermd is a simple web server which always outputs chunked data. The following is the data that nginx gave to me: HTTP/1.1 200 OK Server: nginx/0.5.3…

---

## [Fastcgi\_param in server context does not work](https://www.ruby-forum.com/t/fastcgi-param-in-server-context-does-not-work/175916)

<div class="topic-metadata">

**Author:** [@Tomasz\_P](https://www.ruby-forum.com/u/Tomasz_P)\
**Replies:** 11\
**Last updated:** [September 23, 2009, 7:44pm UTC](https://www.ruby-forum.com/t/fastcgi-param-in-server-context-does-not-work/175916 "2009-09-23T19:44:39Z")

</div>

When I set fastcgi\_param in server context it is not set, if in location it is set. Wiki says it should work in http, server, location context. server { listen 80; server\_name .landingpage.dev; access\_log off; err…

---

## [Controlling HTTP Methods in a location directive](https://www.ruby-forum.com/t/controlling-http-methods-in-a-location-directive/176026)

<div class="topic-metadata">

**Author:** [@WSandrew\_L](https://www.ruby-forum.com/u/WSandrew_L)\
**Replies:** 0\
**Last updated:** [September 23, 2009, 7:38pm UTC](https://www.ruby-forum.com/t/controlling-http-methods-in-a-location-directive/176026 "2009-09-23T19:38:12Z")

</div>

I would like to restrict a location block to only POST requests. I think should be able to do this using limit\_except, but I am not sure if I should allow all; or deny all; location @backends { passenger\_enabled on; …

---

## [CreateFile() error](https://www.ruby-forum.com/t/createfile-error/175574)

<div class="topic-metadata">

**Author:** [@myschizobuddy](https://www.ruby-forum.com/u/myschizobuddy)\
**Replies:** 5\
**Last updated:** [September 23, 2009, 5:35pm UTC](https://www.ruby-forum.com/t/createfile-error/175574 "2009-09-23T17:35:13Z")

</div>

The url is http://dev.flow3.local/flow3/welcome Here is the error CreateFile() “C:\\nginx/htmlindex.php/flow3/welcome” failed (3: The system cannot find the path specified) This is horribly wrong. I’m using try\_files…

---

## [Setting or clearing request-\>args](https://www.ruby-forum.com/t/setting-or-clearing-request-args/175901)

<div class="topic-metadata">

**Author:** [@leki75](https://www.ruby-forum.com/u/leki75)\
**Replies:** 7\
**Last updated:** [September 23, 2009, 4:33am UTC](https://www.ruby-forum.com/t/setting-or-clearing-request-args/175901 "2009-09-23T04:33:00Z")

</div>

Hello, I try to write a nginx http module which decides to enable or forbid a HTTP request sent in the request parameters (r-\>args). At the end of decision I would like to clear the whole args or just a part of it, so …

---

## [Proxying Bittorrent](https://www.ruby-forum.com/t/proxying-bittorrent/175942)

<div class="topic-metadata">

**Author:** [@Michael\_Baudino](https://www.ruby-forum.com/u/Michael_Baudino)\
**Replies:** 2\
**Last updated:** [September 23, 2009, 1:42am UTC](https://www.ruby-forum.com/t/proxying-bittorrent/175942 "2009-09-23T01:42:33Z")

</div>

Hello, I’m trying to proxy BitTorrent tracker traffic through nginx (0.6.32) using the following configuration : \_\_\_\_\_\_\_\_\_\_ ±-------+ ±----------+ ( ) ±-----------+ | BT Box |----| Nginx Box |---…

---

## [Nginx-0.8.16](https://www.ruby-forum.com/t/nginx-0-8-16/175914)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 2\
**Last updated:** [September 23, 2009, 12:41am UTC](https://www.ruby-forum.com/t/nginx-0-8-16/175914 "2009-09-23T00:41:33Z")

</div>

Changes with nginx 0.8.16 22 Sep 2009 \*) Feature: the "image\_filter\_transparency" directive. \*) Bugfix: "addition\_types" directive was incorrectly named "addtion\_types". \*) B…

---

## [Ngx\_http\_redis-0.2.0](https://www.ruby-forum.com/t/ngx-http-redis-0-2-0/175934)

<div class="topic-metadata">

**Author:** [@Sergey\_ASOsokin](https://www.ruby-forum.com/u/Sergey_ASOsokin)\
**Replies:** 0\
**Last updated:** [September 23, 2009, 12:34am UTC](https://www.ruby-forum.com/t/ngx-http-redis-0-2-0/175934 "2009-09-23T00:34:32Z")

</div>

Hello, redis module for ngnix (ngx\_http\_redis) version 0.2.0 released. http://people.FreeBSD.ORG/~osa/ngx\_http\_redis-0.2.0.tar.gz MD5 (ngx\_http\_redis-0.2.0.tar.gz) = 4055ed2b19e7634c40384c13e680b103 SHA256 (ngx\_http\_…

---

## [ProxySSL with client certificate - error redirection problem](https://www.ruby-forum.com/t/proxyssl-with-client-certificate-error-redirection-problem/175851)

<div class="topic-metadata">

**Author:** [@adileso](https://www.ruby-forum.com/u/adileso)\
**Replies:** 3\
**Last updated:** [September 22, 2009, 10:04pm UTC](https://www.ruby-forum.com/t/proxyssl-with-client-certificate-error-redirection-problem/175851 "2009-09-22T22:04:03Z")

</div>

Hi all, I have published an internal web site with HTTPS and set the ssl\_verify\_client on. I need some fields from the client certificate to send them to the back-end web server, so I can correctly access a specific …

---

## [Fixing a typo in the addition filter module's config directive name "addition\_types"](https://www.ruby-forum.com/t/fixing-a-typo-in-the-addition-filter-modules-config-directive-name-addition-types/175917)

<div class="topic-metadata">

**Author:** [@agentzh](https://www.ruby-forum.com/u/agentzh)\
**Replies:** 0\
**Last updated:** [September 22, 2009, 8:01pm UTC](https://www.ruby-forum.com/t/fixing-a-typo-in-the-addition-filter-modules-config-directive-name-addition-types/175917 "2009-09-22T20:01:08Z")

</div>

Hi, I’ve noticed a bug in nginx 0.7.x’s addition filter module and I’ve confirmed that it also exists in 0.8.15. Here’s a patch for the 0.8.15 release: — src/http/modules/ngx\_http\_addition\_filter\_module.c 2009-06-…

---

## [HEAD and Nginx nginx-0.6.36-1.el5](https://www.ruby-forum.com/t/head-and-nginx-nginx-0-6-36-1-el5/175301)

<div class="topic-metadata">

**Author:** [@xmichielx](https://www.ruby-forum.com/u/xmichielx)\
**Replies:** 17\
**Last updated:** [September 21, 2009, 7:27pm UTC](https://www.ruby-forum.com/t/head-and-nginx-nginx-0-6-36-1-el5/175301 "2009-09-21T19:27:11Z")

</div>

Hi, We are trying to setup Nginx as a reverse proxy in front of Apache. A HEAD gives a 404 with Nginx, when connecting directly to port 81 (Apache) we get an 301 and then a 200 error. Is my nginx version (0.6.36 allo…

---

## [Connect() failed (113: No route to host)](https://www.ruby-forum.com/t/connect-failed-113-no-route-to-host/175808)

<div class="topic-metadata">

**Author:** [@gogobu](https://www.ruby-forum.com/u/gogobu)\
**Replies:** 2\
**Last updated:** [September 21, 2009, 9:23am UTC](https://www.ruby-forum.com/t/connect-failed-113-no-route-to-host/175808 "2009-09-21T09:23:38Z")

</div>

Hi, I’ve seen lots of errors like “connect() failed (113: No route to host) while connecting to upstream” in the nginx error log. The upstream server is a Tomcat sitting behind nginx. I’ve checked the tomcat status a…

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

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