# Server

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

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

---

## [Patch to support peer\_connection bind address](https://www.ruby-forum.com/t/patch-to-support-peer-connection-bind-address/167465)

<div class="topic-metadata">

**Author:** [@mschwab](https://www.ruby-forum.com/u/mschwab)\
**Replies:** 0\
**Last updated:** [May 8, 2009, 1:05am UTC](https://www.ruby-forum.com/t/patch-to-support-peer-connection-bind-address/167465 "2009-05-08T01:05:34Z")

</div>

Hi All, I’ve found situations where I need to make a peer connection from a specific IP address due to an upstream policy for who can connect. The attached patch enables support for a bind address in ngx\_event\_connec…

---

## [Can nginx support FastCGI Authorizers?](https://www.ruby-forum.com/t/can-nginx-support-fastcgi-authorizers/156432)

<div class="topic-metadata">

**Author:** [@lhmwzy](https://www.ruby-forum.com/u/lhmwzy)\
**Replies:** 23\
**Last updated:** [May 7, 2009, 1:25pm UTC](https://www.ruby-forum.com/t/can-nginx-support-fastcgi-authorizers/156432 "2009-05-07T13:25:33Z")

</div>

I search the wiki of nginx,but can’t find any thing about FastCGI Authorizers. can or How to use FastCGI Authorizers under nginx?

---

## [URL encoded URLs and regex locations](https://www.ruby-forum.com/t/url-encoded-urls-and-regex-locations/167241)

<div class="topic-metadata">

**Author:** [@wannabe-coder](https://www.ruby-forum.com/u/wannabe-coder)\
**Replies:** 2\
**Last updated:** [May 7, 2009, 6:58am UTC](https://www.ruby-forum.com/t/url-encoded-urls-and-regex-locations/167241 "2009-05-07T06:58:53Z")

</div>

I found this post (http://thread.gmane.org/gmane.comp.web.nginx.english/9526) regarding URL encoding, example from the email (e.g. /foo/bar%2Fbaz → /foo/bar/baz). I have a regex location (location ~ /my\_url\*) for a …

---

## [Internal redirects to upstream](https://www.ruby-forum.com/t/internal-redirects-to-upstream/167333)

<div class="topic-metadata">

**Author:** [@Arvind\_Jayaprakash](https://www.ruby-forum.com/u/Arvind_Jayaprakash)\
**Replies:** 3\
**Last updated:** [May 6, 2009, 11:57pm UTC](https://www.ruby-forum.com/t/internal-redirects-to-upstream/167333 "2009-05-06T23:57:57Z")

</div>

Is it possible to do an internal redirect to another url within nginx? Say I access url “/u1” which is handled by an upstream server. I need to be able to return a redirect to url “/u2” which is not a file but needs t…

---

## [Denying certain file types within a location](https://www.ruby-forum.com/t/denying-certain-file-types-within-a-location/167346)

<div class="topic-metadata">

**Author:** [@Atif\_G](https://www.ruby-forum.com/u/Atif_G)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 10:16pm UTC](https://www.ruby-forum.com/t/denying-certain-file-types-within-a-location/167346 "2009-05-06T22:16:29Z")

</div>

Dear all, I would like to deny all php|cgi|pl files in a certain location. Whats the best way to do that. I have something like this location /some/path { root /fs/path; } Shall I do a check with script\_filename?

---

## [Modifying response body](https://www.ruby-forum.com/t/modifying-response-body/167322)

<div class="topic-metadata">

**Author:** [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Replies:** 3\
**Last updated:** [May 6, 2009, 9:57pm UTC](https://www.ruby-forum.com/t/modifying-response-body/167322 "2009-05-06T21:57:05Z")

</div>

2 questions: Is it possible to return an empty response? i.e. location /empty-response { add\_header(“some-header”, “foo-bar”); # nothing in response body } Is it possible have the response body be only the unique …

---

## [Nginx 301 redirection problem](https://www.ruby-forum.com/t/nginx-301-redirection-problem/167278)

<div class="topic-metadata">

**Author:** [@akyrho](https://www.ruby-forum.com/u/akyrho)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 10:27am UTC](https://www.ruby-forum.com/t/nginx-301-redirection-problem/167278 "2009-05-06T10:27:00Z")

</div>

Hi all, I’m new on this list and (nearly) newbie with Nginx, so, please, be patient with my poor brain :wink: Here’s the problem i got : on my blog, i’ve got some reference on old directories . I tried a rewrite rule…

---

## [A question for transparent proxy of NGINX](https://www.ruby-forum.com/t/a-question-for-transparent-proxy-of-nginx/167127)

<div class="topic-metadata">

**Author:** [@quan\_nexthop](https://www.ruby-forum.com/u/quan_nexthop)\
**Replies:** 3\
**Last updated:** [May 6, 2009, 4:14am UTC](https://www.ruby-forum.com/t/a-question-for-transparent-proxy-of-nginx/167127 "2009-05-06T04:14:53Z")

</div>

Does NGINX has a plan to support the transparent proxy modeï¼Ÿ thanks NextHop

---

## [Question about workers and proxying to dead upstream](https://www.ruby-forum.com/t/question-about-workers-and-proxying-to-dead-upstream/167168)

<div class="topic-metadata">

**Author:** [@Adrian\_Bak](https://www.ruby-forum.com/u/Adrian_Bak)\
**Replies:** 2\
**Last updated:** [May 5, 2009, 8:50pm UTC](https://www.ruby-forum.com/t/question-about-workers-and-proxying-to-dead-upstream/167168 "2009-05-05T20:50:02Z")

</div>

Hey guys… We have a setup where we serve static files from our nginx servers and if the file doesn’t exist we proxy to a backend server (that generates a static file, and we have another app to delete the static files…

---

## [Performance tuning](https://www.ruby-forum.com/t/performance-tuning/167237)

<div class="topic-metadata">

**Author:** [@Gabri\_Mate](https://www.ruby-forum.com/u/Gabri_Mate)\
**Replies:** 0\
**Last updated:** [May 5, 2009, 8:33pm UTC](https://www.ruby-forum.com/t/performance-tuning/167237 "2009-05-05T20:33:37Z")

</div>

Dear List, I’m quite newbie concerning nginx so please forgive me for my really basic questions. I’d like to use nginx as a caching reverse proxy. After reading the docs i’m not quite sure about the proxy\_buffer\_size…

---

## [Rewrite Rules HELP needed](https://www.ruby-forum.com/t/rewrite-rules-help-needed/167197)

<div class="topic-metadata">

**Author:** [@Glen\_L](https://www.ruby-forum.com/u/Glen_L)\
**Replies:** 8\
**Last updated:** [May 5, 2009, 5:39pm UTC](https://www.ruby-forum.com/t/rewrite-rules-help-needed/167197 "2009-05-05T17:39:00Z")

</div>

Can you please tell me how can I translate this rewrite so it can work with nginx? DirectoryIndex index.php RewriteEngine on RewriteCond $1 !^(index.php|images|css|js|robots.txt|favicon.ico) RewriteCond %{REQUEST\_F…

---

## [\--conf-path does not work](https://www.ruby-forum.com/t/conf-path-does-not-work/167077)

<div class="topic-metadata">

**Author:** [@SSSSSSSSS\_SSSSSSSSS](https://www.ruby-forum.com/u/SSSSSSSSS_SSSSSSSSS)\
**Replies:** 6\
**Last updated:** [May 5, 2009, 3:30pm UTC](https://www.ruby-forum.com/t/conf-path-does-not-work/167077 "2009-05-05T15:30:49Z")

</div>

./configure --conf-path=PATH does not work

---

## [Re: Rewrite Rules HELP needed](https://www.ruby-forum.com/t/re-rewrite-rules-help-needed/167199)

<div class="topic-metadata">

**Author:** [@Glen\_L](https://www.ruby-forum.com/u/Glen_L)\
**Replies:** 0\
**Last updated:** [May 5, 2009, 1:12pm UTC](https://www.ruby-forum.com/t/re-rewrite-rules-help-needed/167199 "2009-05-05T13:12:02Z")

</div>

Is that posibble not to use it on root dir? Just change location / to location /test

---

## [Nginx serving wrong website under proxy\_cache](https://www.ruby-forum.com/t/nginx-serving-wrong-website-under-proxy-cache/166743)

<div class="topic-metadata">

**Author:** [@Payam\_C](https://www.ruby-forum.com/u/Payam_C)\
**Replies:** 16\
**Last updated:** [May 5, 2009, 10:54am UTC](https://www.ruby-forum.com/t/nginx-serving-wrong-website-under-proxy-cache/166743 "2009-05-05T10:54:42Z")

</div>

hey guys, So I had 3 sites configured to use caching on my nginx box (tried with .50, 52 and 53 build) however of the three websites kept redirecting me to the first site that I was doing caching for. Example Sites: …

---

## [Rewrite assistance needed](https://www.ruby-forum.com/t/rewrite-assistance-needed/167176)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 6\
**Last updated:** [May 5, 2009, 8:47am UTC](https://www.ruby-forum.com/t/rewrite-assistance-needed/167176 "2009-05-05T08:47:22Z")

</div>

Hi, im hoping i can get some insight into why the following rewrite rules are not working (or if I am missing the boat alltogether in using rewrites at all for this problem). I am currently using nginx to support a ba…

---

## [NginxHttpSecureLinkModule](https://www.ruby-forum.com/t/nginxhttpsecurelinkmodule/167131)

<div class="topic-metadata">

**Author:** [@Payam\_C](https://www.ruby-forum.com/u/Payam_C)\
**Replies:** 6\
**Last updated:** [May 5, 2009, 8:26am UTC](https://www.ruby-forum.com/t/nginxhttpsecurelinkmodule/167131 "2009-05-05T08:26:51Z")

</div>

Hey, Is there a way where you can re-write and allow the secure link to function for “/” ? I know the module states that it must not be / however, there has to be around this or better questions, why must this only b…

---

## [Nginx upload module bug? (proxy\_temp\_path ignored)](https://www.ruby-forum.com/t/nginx-upload-module-bug-proxy-temp-path-ignored/166768)

<div class="topic-metadata">

**Author:** [@Wincent\_C](https://www.ruby-forum.com/u/Wincent_C)\
**Replies:** 1\
**Last updated:** [May 4, 2009, 6:24pm UTC](https://www.ruby-forum.com/t/nginx-upload-module-bug-proxy-temp-path-ignored/166768 "2009-05-04T18:24:43Z")

</div>

I’ve just been testing out nginx (0.6.36) and the nginx upload module (2.0.9) and think I might have discovered a bug. nginx without the upload module works. But with the upload module it fails to launch with: 2009/0…

---

## [Re: --conf-path does not work](https://www.ruby-forum.com/t/re-conf-path-does-not-work/167143)

<div class="topic-metadata">

**Author:** [@joviyach](https://www.ruby-forum.com/u/joviyach)\
**Replies:** 0\
**Last updated:** [May 4, 2009, 6:01pm UTC](https://www.ruby-forum.com/t/re-conf-path-does-not-work/167143 "2009-05-04T18:01:13Z")

</div>

Hits self in head and says “Dumkopf!”. I always use default location. Does that explain why make install failed?

---

## [Nginx-0.7.54](https://www.ruby-forum.com/t/nginx-0-7-54/166998)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 9\
**Last updated:** [May 4, 2009, 4:41pm UTC](https://www.ruby-forum.com/t/nginx-0-7-54/166998 "2009-05-04T16:41:17Z")

</div>

Changes with nginx 0.7.54 01 May 2009 \*) Feature: the ngx\_http\_image\_filter\_module. \*) Feature: the "proxy\_ignore\_headers" and "fastcgi\_ignore\_headers" directives. \*) Bugfix:…

---

## [One last question about root captures/etc](https://www.ruby-forum.com/t/one-last-question-about-root-captures-etc/167120)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 7\
**Last updated:** [May 4, 2009, 1:56pm UTC](https://www.ruby-forum.com/t/one-last-question-about-root-captures-etc/167120 "2009-05-04T13:56:02Z")

</div>

The first one always gets matched. Is there a way to make nginx use the one that matches the best? i.e. foo123.mike.bar.com should go to #2 foo.mike.bar.com should go to #2 blah.mike.bar.com should go to #1 etc. i…

---

## [Possible bug in nginx or upstream fair module?](https://www.ruby-forum.com/t/possible-bug-in-nginx-or-upstream-fair-module/166012)

<div class="topic-metadata">

**Author:** [@Momchil\_I](https://www.ruby-forum.com/u/Momchil_I)\
**Replies:** 2\
**Last updated:** [May 4, 2009, 12:55pm UTC](https://www.ruby-forum.com/t/possible-bug-in-nginx-or-upstream-fair-module/166012 "2009-05-04T12:55:48Z")

</div>

Hi, I am seeing some strange behavior with nginx 0.6.32, 0.6.35 and 0.6.36 with upstream fair load balancer and the patches from \[1\] for statistics. On \[2\] you can see the statistics taken from nginx via the stub st…

---

## [Post action after client closes connection](https://www.ruby-forum.com/t/post-action-after-client-closes-connection/166792)

<div class="topic-metadata">

**Author:** [@romez777](https://www.ruby-forum.com/u/romez777)\
**Replies:** 2\
**Last updated:** [May 4, 2009, 11:21am UTC](https://www.ruby-forum.com/t/post-action-after-client-closes-connection/166792 "2009-05-04T11:21:36Z")

</div>

Hello, This is my scenario: client connects to nginx (proxy\_ignore\_client\_abort is on at this location) nginx sends data from upstream (received by subrequests) back to client when request finishes I want to send co…

---

## [Global PHP Rule](https://www.ruby-forum.com/t/global-php-rule/167101)

<div class="topic-metadata">

**Author:** [@mathew\_d](https://www.ruby-forum.com/u/mathew_d)\
**Replies:** 6\
**Last updated:** [May 4, 2009, 3:42am UTC](https://www.ruby-forum.com/t/global-php-rule/167101 "2009-05-04T03:42:53Z")

</div>

Hi, Is there a way to specify a global PHP location rule? As you can see below, the PHP block is repeated which is no good. domain1.tld server { server\_name domain1.tld; root html/domain1; location ~ .php$ { fa…

---

## [Gzip issues \[bug?\] Content-type has charset set](https://www.ruby-forum.com/t/gzip-issues-bug-content-type-has-charset-set/167014)

<div class="topic-metadata">

**Author:** [@icebofh](https://www.ruby-forum.com/u/icebofh)\
**Replies:** 7\
**Last updated:** [May 4, 2009, 12:08am UTC](https://www.ruby-forum.com/t/gzip-issues-bug-content-type-has-charset-set/167014 "2009-05-04T00:08:53Z")

</div>

I have 2 sites set up, one gzips the js and css as requested with no issues and the other does not. I spent some time scratching my head on this one till I noticed the following The site that does not compress when r…

---

## [How to make the Nginx-0.7.54(Windows official release) RUN AS WINDOWS SERVICE?](https://www.ruby-forum.com/t/how-to-make-the-nginx-0-7-54-windows-official-release-run-as-windows-service/167025)

<div class="topic-metadata">

**Author:** [@kernelforce](https://www.ruby-forum.com/u/kernelforce)\
**Replies:** 5\
**Last updated:** [May 3, 2009, 3:04pm UTC](https://www.ruby-forum.com/t/how-to-make-the-nginx-0-7-54-windows-official-release-run-as-windows-service/167025 "2009-05-03T15:04:45Z")

</div>

Recently, I got Nginx-0.7.54(official Windows binary), it is simply to install, I’m very apperciate it. But in this version, Nginx must be started as cd c:\\nginx start nginx My question is how to make it run as a wi…

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/196955)

<div class="topic-metadata">

**Author:** [@AMP\_Admin](https://www.ruby-forum.com/u/AMP_Admin)\
**Replies:** 0\
**Last updated:** [May 2, 2009, 6:39pm UTC](https://www.ruby-forum.com/t/no-subject/196955 "2009-05-02T18:39:51Z")

</div>

I just can’t seem to get rid of my logs filling up with ‘closed keepalive connection’. Thoughts?

---

## [Best practices for running Perl?](https://www.ruby-forum.com/t/best-practices-for-running-perl/166913)

<div class="topic-metadata">

**Author:** [@Mark\_Aiken](https://www.ruby-forum.com/u/Mark_Aiken)\
**Replies:** 19\
**Last updated:** [May 2, 2009, 4:56pm UTC](https://www.ruby-forum.com/t/best-practices-for-running-perl/166913 "2009-05-02T16:56:48Z")

</div>

Hello, My apologies for the newbie question; I have poked around quite a bit and can’t find a definitive answer. I’m planning to use nginx to set up a lightweight server on a slim virtual-slice host where resources a…

---

## [Nginx - keep-alive close - how to?](https://www.ruby-forum.com/t/nginx-keep-alive-close-how-to/167019)

<div class="topic-metadata">

**Author:** [@Payam\_C](https://www.ruby-forum.com/u/Payam_C)\
**Replies:** 1\
**Last updated:** [May 2, 2009, 3:59pm UTC](https://www.ruby-forum.com/t/nginx-keep-alive-close-how-to/167019 "2009-05-02T15:59:59Z")

</div>

hey Guys, Any ideas on how to kill keep-alive ? I need to simulate http 1.0 keep-alive close; does not work Thanks,

---

## [Matching data within the host field of the header](https://www.ruby-forum.com/t/matching-data-within-the-host-field-of-the-header/166999)

<div class="topic-metadata">

**Author:** [@Payam\_C](https://www.ruby-forum.com/u/Payam_C)\
**Replies:** 3\
**Last updated:** [May 2, 2009, 1:30pm UTC](https://www.ruby-forum.com/t/matching-data-within-the-host-field-of-the-header/166999 "2009-05-02T13:30:42Z")

</div>

hey guys, I cant seem to get this working… im trying to look at the host field within the header and match it against an ip, if it a hit, I want to redirect to 403 Normally there should be a domain set as the host, n…

---

## [Doc of nginx](https://www.ruby-forum.com/t/doc-of-nginx/166983)

<div class="topic-metadata">

**Author:** [@ZhenDongSXu](https://www.ruby-forum.com/u/ZhenDongSXu)\
**Replies:** 1\
**Last updated:** [May 1, 2009, 6:34pm UTC](https://www.ruby-forum.com/t/doc-of-nginx/166983 "2009-05-01T18:34:24Z")

</div>

I want to set up a enviroment with PHP5 ,nginx ,freebsd. Is there anybody who have the documents of that ,i need it ,thanks.

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

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