# Server

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

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

---

## [Proxy pass and TIME\_WAIT states](https://www.ruby-forum.com/t/proxy-pass-and-time-wait-states/162244)

<div class="topic-metadata">

**Author:** [@AnSSSSl\_SSSSSetin](https://www.ruby-forum.com/u/AnSSSSl_SSSSSetin)\
**Replies:** 0\
**Last updated:** [March 7, 2009, 12:35pm UTC](https://www.ruby-forum.com/t/proxy-pass-and-time-wait-states/162244 "2009-03-07T12:35:48Z")

</div>

Hi all I am running nginx as a proxy server to apache, on 3 of my production servers. In all servers there becomes thousands of connections that are in state of “TIME\_WAIT” . I know that, a tcp connection in TIME\_WAI…

---

## [FCGI.pm?](https://www.ruby-forum.com/t/fcgi-pm/161411)

<div class="topic-metadata">

**Author:** [@Chris\_Cortese](https://www.ruby-forum.com/u/Chris_Cortese)\
**Replies:** 37\
**Last updated:** [March 7, 2009, 3:23am UTC](https://www.ruby-forum.com/t/fcgi-pm/161411 "2009-03-07T03:23:43Z")

</div>

I’m trying to learn how to use the fastcgi-wrapper.pl from this link: http://www.ruby-forum.com/topic/145858 This requires FCGI.pm. The only one I found on cpan.org throws a great many errors when I try to run perl…

---

## [Sendfile fails from livecd](https://www.ruby-forum.com/t/sendfile-fails-from-livecd/162212)

<div class="topic-metadata">

**Author:** [@J.pSLien](https://www.ruby-forum.com/u/J.pSLien)\
**Replies:** 1\
**Last updated:** [March 6, 2009, 8:32pm UTC](https://www.ruby-forum.com/t/sendfile-fails-from-livecd/162212 "2009-03-06T20:32:00Z")

</div>

My company makes an rails app that we serve using nginx. I’m trying to make a livecd that we can use distribute the app to customers. This has gone remarkably smoothly so far, with one small sticking point. When bo…

---

## [Get](https://www.ruby-forum.com/t/get/162162)

<div class="topic-metadata">

**Author:** [@Huy\_Phan](https://www.ruby-forum.com/u/Huy_Phan)\
**Replies:** 0\
**Last updated:** [March 6, 2009, 11:23am UTC](https://www.ruby-forum.com/t/get/162162 "2009-03-06T11:23:23Z")

</div>

Hi everybody, I’m trying to implement a nginx module that gets the value from memcached server in access phase. The module is working properly for single request, but when using Apache Benchmark to test, I always ge…

---

## [Too many sites, change server\_names\_hash\_max\_size?](https://www.ruby-forum.com/t/too-many-sites-change-server-names-hash-max-size/162138)

<div class="topic-metadata">

**Author:** [@max](https://www.ruby-forum.com/u/max)\
**Replies:** 3\
**Last updated:** [March 6, 2009, 10:00am UTC](https://www.ruby-forum.com/t/too-many-sites-change-server-names-hash-max-size/162138 "2009-03-06T10:00:29Z")

</div>

Hello, My nginx is hosting more than 200 sites. But when I reload it, it said I need to increase the following size: server\_names\_hash\_max\_size server\_names\_hash\_bucket\_size So I just increased it to: server\_names\_…

---

## [Using Perl Mod to populate Memcached on the fly](https://www.ruby-forum.com/t/using-perl-mod-to-populate-memcached-on-the-fly/162020)

<div class="topic-metadata">

**Author:** [@Daniel\_Rhoden](https://www.ruby-forum.com/u/Daniel_Rhoden)\
**Replies:** 10\
**Last updated:** [March 6, 2009, 6:16am UTC](https://www.ruby-forum.com/t/using-perl-mod-to-populate-memcached-on-the-fly/162020 "2009-03-06T06:16:24Z")

</div>

This is purely speculative, so please don’t think I know how to do this. I’m throwing this out so hopefully, if a good idea, the right people can create the example. Memcached has a good assortment of Perl clients. N…

---

## [Apache rewrite to nginx rewrite](https://www.ruby-forum.com/t/apache-rewrite-to-nginx-rewrite/162133)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [March 6, 2009, 5:58am UTC](https://www.ruby-forum.com/t/apache-rewrite-to-nginx-rewrite/162133 "2009-03-06T05:58:31Z")

</div>

apache rewrite rules RewriteBase / RewriteCond %{REQUEST\_URI} !.(gif|jpeg|png|jpg|bmp)$ RewriteCond %{REQUEST\_FILENAME} !-f RewriteCond %{REQUEST\_FILENAME} !-d RewriteRule . index.php \[L\]

---

## [Nginx rewrite for wordpress MU problem](https://www.ruby-forum.com/t/nginx-rewrite-for-wordpress-mu-problem/151503)

<div class="topic-metadata">

**Author:** [@Glen\_L](https://www.ruby-forum.com/u/Glen_L)\
**Replies:** 7\
**Last updated:** [March 6, 2009, 3:51am UTC](https://www.ruby-forum.com/t/nginx-rewrite-for-wordpress-mu-problem/151503 "2009-03-06T03:51:01Z")

</div>

I’ve seen on wordpress website for the rewrite rule for nginx But when I access the blog, it always show me http://blog.mysite.com/\* index.php\* How can I rewrite the index.php so that i just have http://blog.mysite.c…

---

## [A try\_files problem](https://www.ruby-forum.com/t/a-try-files-problem/162112)

<div class="topic-metadata">

**Author:** [@MichaSSSSSJaszczyk](https://www.ruby-forum.com/u/MichaSSSSSJaszczyk)\
**Replies:** 2\
**Last updated:** [March 5, 2009, 11:24pm UTC](https://www.ruby-forum.com/t/a-try-files-problem/162112 "2009-03-05T23:24:26Z")

</div>

Hi, I’m having some hard time with try\_files and rewrite directives. I already spent few hours on this and my brain is exploding :). Can anyone help me? My situation is as follows: I use Nginx to serve static files a…

---

## [Can you make Mongrel listen on a specific IP](https://www.ruby-forum.com/t/can-you-make-mongrel-listen-on-a-specific-ip/162101)

<div class="topic-metadata">

**Author:** [@jngo](https://www.ruby-forum.com/u/jngo)\
**Replies:** 1\
**Last updated:** [March 5, 2009, 8:18pm UTC](https://www.ruby-forum.com/t/can-you-make-mongrel-listen-on-a-specific-ip/162101 "2009-03-05T20:18:29Z")

</div>

Shared hosting environment where each domain has it’s own IP. Some use mongrel server to run their rails apps. Mongrels of course listen on their own port. But … If client1.com has a mongrel listening on 12001 you can…

---

## [È¯·é—®è¿™ä¸ªè§„åˆ™å¦‚ä½•è½¬æ¢](https://www.ruby-forum.com/t/e-e-e-a-e-a-a-a-e-ae/161961)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [March 5, 2009, 10:29am UTC](https://www.ruby-forum.com/t/e-e-e-a-e-a-a-a-e-ae/161961 "2009-03-05T10:29:08Z")

</div>

RewriteBase / RewriteCond %{REQUEST\_URI} !.(gif|jpeg|png|jpg|bmp)$ RewriteCond %{REQUEST\_FILENAME} !-f RewriteCond %{REQUEST\_FILENAME} !-d RewriteRule . index.php \[L\] å¦‚ä½•è½¬æ¢æˆnginxçš„rewriteè§„åˆ™ è°¢è°¢å…

---

## [Ey-balancer?](https://www.ruby-forum.com/t/ey-balancer/161154)

<div class="topic-metadata">

**Author:** [@archfiend997](https://www.ruby-forum.com/u/archfiend997)\
**Replies:** 2\
**Last updated:** [March 5, 2009, 2:15am UTC](https://www.ruby-forum.com/t/ey-balancer/161154 "2009-03-05T02:15:12Z")

</div>

Hello, Has anyone tried ey-balancer: http://github.com/ry/nginx-ey-balancer/tree/master. From the README: "haproxy maxconn for nginx Adds a request queue to Nginx that allows the limiting of concurrent requests pa…

---

## [Captures in regex locations](https://www.ruby-forum.com/t/captures-in-regex-locations/162012)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 4\
**Last updated:** [March 4, 2009, 11:31pm UTC](https://www.ruby-forum.com/t/captures-in-regex-locations/162012 "2009-03-04T23:31:16Z")

</div>

The patch against 0.7.39 to support captures in regex location an “alias” inside these locations location ~\* ^/files/(.+.(?:gif|jpe?g|png))$ { alias /path/to/$1; } captures became global and may be used as …

---

## [Memcached vs. static pages](https://www.ruby-forum.com/t/memcached-vs-static-pages/161946)

<div class="topic-metadata">

**Author:** [@Daniel\_Rhoden](https://www.ruby-forum.com/u/Daniel_Rhoden)\
**Replies:** 3\
**Last updated:** [March 4, 2009, 8:03am UTC](https://www.ruby-forum.com/t/memcached-vs-static-pages/161946 "2009-03-04T08:03:51Z")

</div>

Hopefully this is a simple question to answer. Is there any performance benefit of going to the trouble of setting up memcached for static pages? I guess the question is, does nginx have its own form of storing freq…

---

## [Nginx Modules Indexing](https://www.ruby-forum.com/t/nginx-modules-indexing/161893)

<div class="topic-metadata">

**Author:** [@abhishek](https://www.ruby-forum.com/u/abhishek)\
**Replies:** 2\
**Last updated:** [March 4, 2009, 4:21am UTC](https://www.ruby-forum.com/t/nginx-modules-indexing/161893 "2009-03-04T04:21:41Z")

</div>

Hi , Can anyone please let me know how can i see installed nginx modules like apache httpd -l. Thanks Abhishek

---

## [Mp3 pass through?](https://www.ruby-forum.com/t/mp3-pass-through/161926)

<div class="topic-metadata">

**Author:** [@iberci](https://www.ruby-forum.com/u/iberci)\
**Replies:** 1\
**Last updated:** [March 4, 2009, 2:22am UTC](https://www.ruby-forum.com/t/mp3-pass-through/161926 "2009-03-04T02:22:48Z")

</div>

Hi All, Currently we are doing a lot of MP3 transfers on our webserver (downloads) and this month we exceeded our bandwidth, which is fine, but can be costly. We have a separate DB server that I’m thinking of off lo…

---

## [Stripping out query parameter?](https://www.ruby-forum.com/t/stripping-out-query-parameter/161870)

<div class="topic-metadata">

**Author:** [@unclouded](https://www.ruby-forum.com/u/unclouded)\
**Replies:** 5\
**Last updated:** [March 4, 2009, 12:04am UTC](https://www.ruby-forum.com/t/stripping-out-query-parameter/161870 "2009-03-04T00:04:47Z")

</div>

Hello, I’m trying to rewrite some urls that are incorrect. An example would be: www.mysite.com/test.php?x=123&extra=yes I want to rewrite this to www.mysite.com/test.php?x=123 I’m trying something like the followi…

---

## [Expiring content mirrored using proxy\_store?](https://www.ruby-forum.com/t/expiring-content-mirrored-using-proxy-store/161884)

<div class="topic-metadata">

**Author:** [@ewildgoose](https://www.ruby-forum.com/u/ewildgoose)\
**Replies:** 0\
**Last updated:** [March 3, 2009, 12:49pm UTC](https://www.ruby-forum.com/t/expiring-content-mirrored-using-proxy-store/161884 "2009-03-03T12:49:40Z")

</div>

Hi, apart from cron, is there a good way to expire content mirrored using proxy\_store? My scenario is that I have a slow upstream server generating some javascript and I have set nginx to proxy this request and store …

---

## [Nginx vs apache as a reverse proxy](https://www.ruby-forum.com/t/nginx-vs-apache-as-a-reverse-proxy/161763)

<div class="topic-metadata">

**Author:** [@Linden\_Varley](https://www.ruby-forum.com/u/Linden_Varley)\
**Replies:** 5\
**Last updated:** [March 3, 2009, 5:23am UTC](https://www.ruby-forum.com/t/nginx-vs-apache-as-a-reverse-proxy/161763 "2009-03-03T05:23:30Z")

</div>

I’m doing some simple testing on a FreeBSD 7.0 server comparing Apache2 vs Nginx as a reverse proxy to an Apache backend server. The backend serves mainly static images using mod\_python. I have yet to do thorough test…

---

## [Rewrite rule](https://www.ruby-forum.com/t/rewrite-rule/161708)

<div class="topic-metadata">

**Author:** [@max](https://www.ruby-forum.com/u/max)\
**Replies:** 5\
**Last updated:** [March 3, 2009, 12:55am UTC](https://www.ruby-forum.com/t/rewrite-rule/161708 "2009-03-03T00:55:30Z")

</div>

Hello, I tried to change the following apache rewrite to work under nginx. But it’s still not working. RewriteEngine On RewriteBase / RewriteRule ^item-(.)\_(.)(.\*)(.).html$ auction.php?title=$1&item=$2&country=$3&c…

---

## [Need a quick Windows Release please!](https://www.ruby-forum.com/t/need-a-quick-windows-release-please/161718)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [March 3, 2009, 12:42am UTC](https://www.ruby-forum.com/t/need-a-quick-windows-release-please/161718 "2009-03-03T00:42:03Z")

</div>

I’d tested Nginx under Cygwin, I like his/her abilities and tried many times. I’d found that Nginx under Cygwin 1.7.0 always cause a CPU 100% matter, while Nginx under Cygwin 1.5.25 always cause a CPU 0% matter, When …

---

## [Nginx h.264 streaming module updated](https://www.ruby-forum.com/t/nginx-h-264-streaming-module-updated/161190)

<div class="topic-metadata">

**Author:** [@SS\_S\_SSSSS\_SS](https://www.ruby-forum.com/u/SS_S_SSSSS_SS)\
**Replies:** 9\
**Last updated:** [March 2, 2009, 11:30pm UTC](https://www.ruby-forum.com/t/nginx-h-264-streaming-module-updated/161190 "2009-03-02T23:30:42Z")

</div>

Dear all, ngx\_http\_mp4\_module.c v 0.2 ngx\_http\_mp4\_module - nginx module for pseudo-streaming Quicktime/MPEG4 files. Based on http://h264.code-shop.com/trac compile & intall wget http://218.244.191.134:8081/mp4.t…

---

## [Nginx-0.7.39](https://www.ruby-forum.com/t/nginx-0-7-39/161786)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 3\
**Last updated:** [March 2, 2009, 9:31pm UTC](https://www.ruby-forum.com/t/nginx-0-7-39/161786 "2009-03-02T21:31:57Z")

</div>

Changes with nginx 0.7.39 02 Mar 2009 \*) Bugfix: large response with SSI might hang, if gzipping was enabled; the bug had appeared in 0.7.28. Thanks to Artem Bokhan. \*) Bugfi…

---

## [Re: New to nginx](https://www.ruby-forum.com/t/re-new-to-nginx/161791)

<div class="topic-metadata">

**Author:** [@ileider](https://www.ruby-forum.com/u/ileider)\
**Replies:** 0\
**Last updated:** [March 2, 2009, 2:31pm UTC](https://www.ruby-forum.com/t/re-new-to-nginx/161791 "2009-03-02T14:31:56Z")

</div>

Thank you very much! ----- Original Message ---- From: Igor S. removed\_email\_address@domain.invalid To: removed\_email\_address@domain.invalid Sent: Sunday, March 1, 2009 7:29:37 PM Subject: Re: New to nginx On Sat, …

---

## [Mmagic word in nginx?](https://www.ruby-forum.com/t/mmagic-word-in-nginx/161741)

<div class="topic-metadata">

**Author:** [@deinspanjer](https://www.ruby-forum.com/u/deinspanjer)\
**Replies:** 4\
**Last updated:** [March 2, 2009, 9:40am UTC](https://www.ruby-forum.com/t/mmagic-word-in-nginx/161741 "2009-03-02T09:40:34Z")

</div>

Hi, I’m using nginx 0.6.32 on my server and I ran into misterious an issue. One of my client is istalled the Drupal CMS and noticed that one part of the portal is not working. When you enter somedomain/mypage it work…

---

## [Weird problem](https://www.ruby-forum.com/t/weird-problem/161749)

<div class="topic-metadata">

**Author:** [@joviyach](https://www.ruby-forum.com/u/joviyach)\
**Replies:** 5\
**Last updated:** [March 2, 2009, 8:14am UTC](https://www.ruby-forum.com/t/weird-problem/161749 "2009-03-02T08:14:54Z")

</div>

I’m setting up a new server, consolidating some smaller ones into the new one. I’ve installed nginx 0.7.38 and I’m using BIND as a nameserver. I have checked my domain.host files and they all look fine. I’m moving d…

---

## [Anyone using urchin?](https://www.ruby-forum.com/t/anyone-using-urchin/161705)

<div class="topic-metadata">

**Author:** [@max](https://www.ruby-forum.com/u/max)\
**Replies:** 2\
**Last updated:** [March 1, 2009, 9:29pm UTC](https://www.ruby-forum.com/t/anyone-using-urchin/161705 "2009-03-01T21:29:16Z")

</div>

Hello, I am using Urchin to process the log file. It works fine for apache log file. But if I process nginx log file, it seems urchin can’t understand the nginx log file format. What should I change the log format of…

---

## [Figured out javascript, now just $\_POST issue remaining](https://www.ruby-forum.com/t/figured-out-javascript-now-just-post-issue-remaining/161704)

<div class="topic-metadata">

**Author:** [@Chris\_Cortese](https://www.ruby-forum.com/u/Chris_Cortese)\
**Replies:** 1\
**Last updated:** [March 1, 2009, 5:15pm UTC](https://www.ruby-forum.com/t/figured-out-javascript-now-just-post-issue-remaining/161704 "2009-03-01T17:15:09Z")

</div>

I fixed the javascript problem. Now I understand that only one “location” directive can be hit. So in the following case: location ~\* (jpg|jpeg|gif|png|js|css) { expires 30d; access\_log off; } location /javasc…

---

## [Got it!](https://www.ruby-forum.com/t/got-it/161706)

<div class="topic-metadata">

**Author:** [@Chris\_Cortese](https://www.ruby-forum.com/u/Chris_Cortese)\
**Replies:** 1\
**Last updated:** [March 1, 2009, 5:13pm UTC](https://www.ruby-forum.com/t/got-it/161706 "2009-03-01T17:13:59Z")

</div>

ok, sorry I’ve sent so many messages on this topic but just now I got everything going, the javascript, the php-ajax-perl photo upload… that should be everything. Here is my config. This might be useful to other Code…

---

## [Config questions](https://www.ruby-forum.com/t/config-questions/161700)

<div class="topic-metadata">

**Author:** [@Chris\_Cortese](https://www.ruby-forum.com/u/Chris_Cortese)\
**Replies:** 0\
**Last updated:** [March 1, 2009, 11:48am UTC](https://www.ruby-forum.com/t/config-questions/161700 "2009-03-01T11:48:13Z")

</div>

ok so I still have a couple issues. Something about my latest config has now broken my javascript loader again. I need to be able to post to, for example, /myController/myFormHandler and have it send the $\_POST, so j…

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

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