# Server

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

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

---

## [ÐŸÐ¾Ð´ÑÑ‚Ð°Ð½Ð¾Ð²ÐºÐ° Ð½ÐµÐ¿Ñ€Ð°Ð²Ð¸Ð»ÑŒÐ½Ð¾Ð³ Ð¾ Ñ…Ð¾ÑÑ‚Ð° Ð² Ñ€ÐµÐ´Ð¸Ñ€ÐµÐºÑ‚, ÐºÐ¾Ð³Ð´Ð° Ð¸Ð´Ñ](https://www.ruby-forum.com/t/dyd-d-n-n-d-d-d-d-d-d-d-d-d-n-d-d-d-d-noed-d-d-d-n-d-n-n-d-d-n-d-d-d-n-d-d-n-d-d-d-d-d-d-d-n/183680)

<div class="topic-metadata">

**Author:** [@Oleg\_Serov](https://www.ruby-forum.com/u/Oleg_Serov)\
**Replies:** 1\
**Last updated:** [February 18, 2010, 5:25pm UTC](https://www.ruby-forum.com/t/dyd-d-n-n-d-d-d-d-d-d-d-d-d-n-d-d-d-d-noed-d-d-d-n-d-n-n-d-d-n-d-d-d-n-d-d-n-d-d-d-d-d-d-d-n/183680 "2010-02-18T17:25:13Z")

</div>

ðÒÉÍÅÒ: äÅËÌÁÒÁÃÉÑ ÓÅÒ×ÅÒÁ: server { … server\_name badhost.com goodhost.com; root /html; … } × /html ÅÓÔØ ÐÁÐËÁ test, ÐÕÔØ ÄÏ ÎÅ£ /html/test ÅÓÌÉ ÏÔËÒÙÔØ ÕÒÌ This Domain Name is registered at Epik.com (ÂÅÚ ÓÌÅÛÁ…

---

## [Nginx ESI Module](https://www.ruby-forum.com/t/nginx-esi-module/183653)

<div class="topic-metadata">

**Author:** [@Kingsley\_F](https://www.ruby-forum.com/u/Kingsley_F)\
**Replies:** 8\
**Last updated:** [February 18, 2010, 1:09pm UTC](https://www.ruby-forum.com/t/nginx-esi-module/183653 "2010-02-18T13:09:23Z")

</div>

Hi guys, Just wondering if anyone has done any work on a nginx ESI plugin? Kingsley

---

## [Bug with X-Accel-Expires 0?](https://www.ruby-forum.com/t/bug-with-x-accel-expires-0/183662)

<div class="topic-metadata">

**Author:** [@JSSSSrSSSSme\_Loyet](https://www.ruby-forum.com/u/JSSSSrSSSSme_Loyet)\
**Replies:** 0\
**Last updated:** [February 18, 2010, 11:49am UTC](https://www.ruby-forum.com/t/bug-with-x-accel-expires-0/183662 "2010-02-18T11:49:11Z")

</div>

Hi, I have a strange behaviour, I think it’s a bug. I have set nginx as a frontend to apache using proxy\_pass. I also set up proxy\_cache to cache everyhting from the proxy: log\_format my\_combined ‘$remote\_addr - $rem…

---

## [Nginx + HAProxy, custom 503 Error](https://www.ruby-forum.com/t/nginx-haproxy-custom-503-error/183655)

<div class="topic-metadata">

**Author:** [@jmadtech](https://www.ruby-forum.com/u/jmadtech)\
**Replies:** 1\
**Last updated:** [February 18, 2010, 10:58am UTC](https://www.ruby-forum.com/t/nginx-haproxy-custom-503-error/183655 "2010-02-18T10:58:51Z")

</div>

Hey all, I’m currently using Nginx & HAProxy with a Rails Application on the backend (using mongrels). I’ve configured my Nginx config file with a custom 50x error page: error\_page 500 502 503 /500.html; location = …

---

## [Some Ajax requests hang](https://www.ruby-forum.com/t/some-ajax-requests-hang/183624)

<div class="topic-metadata">

**Author:** [@tomuhs](https://www.ruby-forum.com/u/tomuhs)\
**Replies:** 0\
**Last updated:** [February 17, 2010, 4:04pm UTC](https://www.ruby-forum.com/t/some-ajax-requests-hang/183624 "2010-02-17T16:04:32Z")

</div>

I have a Rails 2.2.2 site that is running on four mongrels, balanced via Apache and mod\_balancer. This architecture has worked very efficiently in the past, but I’m now observing requests hanging almost indefinitely w…

---

## [Nginx + Thin cluster of 3. Which Thin took the request?](https://www.ruby-forum.com/t/nginx-thin-cluster-of-3-which-thin-took-the-request/183234)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 6\
**Last updated:** [February 17, 2010, 1:32pm UTC](https://www.ruby-forum.com/t/nginx-thin-cluster-of-3-which-thin-took-the-request/183234 "2010-02-17T13:32:30Z")

</div>

Hi, I just managed to setup a front end web server with Nginx and then a cluster of 3 Thin servers behind it who serve instances of the same app. At least the app responds properly through Nginx. After making a reques…

---

## [Is there any definitive guide to wordpress-mu + nginx?](https://www.ruby-forum.com/t/is-there-any-definitive-guide-to-wordpress-mu-nginx/183614)

<div class="topic-metadata">

**Author:** [@shaktale](https://www.ruby-forum.com/u/shaktale)\
**Replies:** 0\
**Last updated:** [February 17, 2010, 12:25pm UTC](https://www.ruby-forum.com/t/is-there-any-definitive-guide-to-wordpress-mu-nginx/183614 "2010-02-17T12:25:33Z")

</div>

Hello. I can find too many docs about wordpress-mu and nginx, but none of them follows the “IfisEvil” directive, some one can point me to a good guide or document to configure rewrite rules (including supercache) ? T…

---

## [Rewrite to lowercase?](https://www.ruby-forum.com/t/rewrite-to-lowercase/182655)

<div class="topic-metadata">

**Author:** [@arianna](https://www.ruby-forum.com/u/arianna)\
**Replies:** 2\
**Last updated:** [February 17, 2010, 8:59am UTC](https://www.ruby-forum.com/t/rewrite-to-lowercase/182655 "2010-02-17T08:59:30Z")

</div>

can it be done? need case insensitivity on ubuntu Posted at Nginx Forum:

---

## [Centos+Nginx+glype problem. Who can help me?](https://www.ruby-forum.com/t/centos-nginx-glype-problem-who-can-help-me/183573)

<div class="topic-metadata">

**Author:** [@cw723](https://www.ruby-forum.com/u/cw723)\
**Replies:** 0\
**Last updated:** [February 16, 2010, 7:36pm UTC](https://www.ruby-forum.com/t/centos-nginx-glype-problem-who-can-help-me/183573 "2010-02-16T19:36:32Z")

</div>

Firstly sorry for my bad enligsh. Now my VPS is Centos+NGINX+GLYPE. When many vistor use glype in a short time. I cant visit my website. I login in the vps load is fine. and the ping is fine. Just wait in the whit…

---

## [Nginx + wordpress rewrite question](https://www.ruby-forum.com/t/nginx-wordpress-rewrite-question/183152)

<div class="topic-metadata">

**Author:** [@Jaime\_Magiera](https://www.ruby-forum.com/u/Jaime_Magiera)\
**Replies:** 12\
**Last updated:** [February 16, 2010, 7:02pm UTC](https://www.ruby-forum.com/t/nginx-wordpress-rewrite-question/183152 "2010-02-16T19:02:00Z")

</div>

Hello, This is a really basic question. I’m unfamiliar with nginx (didn’t even know it existed until a couple days ago) and not a master at URL rewrites. I have been tasked with hooking up Wordpress to nginx. The bas…

---

## [Nginx calls post body handler with no content?](https://www.ruby-forum.com/t/nginx-calls-post-body-handler-with-no-content/183564)

<div class="topic-metadata">

**Author:** [@Tronman](https://www.ruby-forum.com/u/Tronman)\
**Replies:** 0\
**Last updated:** [February 16, 2010, 5:15pm UTC](https://www.ruby-forum.com/t/nginx-calls-post-body-handler-with-no-content/183564 "2010-02-16T17:15:28Z")

</div>

Hey folks, Is there something which might cause Nginx to call the post body handler (set with ngx\_http\_read\_client\_request\_body) before it actually reads the body? Maybe like a timeout or something? I’ve been analyzi…

---

## [Location based on querystring](https://www.ruby-forum.com/t/location-based-on-querystring/183538)

<div class="topic-metadata">

**Author:** [@budala10](https://www.ruby-forum.com/u/budala10)\
**Replies:** 2\
**Last updated:** [February 16, 2010, 2:17pm UTC](https://www.ruby-forum.com/t/location-based-on-querystring/183538 "2010-02-16T14:17:30Z")

</div>

Hi. Let’s say ia have 2 different url’s to a backend. On is http://domain.com/a.b.c.d, this i just want to proxy to a backend. But if the reguest is like, http://domain.com/a.b.c.d?id=1222 then i would like to proxy …

---

## [Token bucket to limit bots and site grabbers](https://www.ruby-forum.com/t/token-bucket-to-limit-bots-and-site-grabbers/183482)

<div class="topic-metadata">

**Author:** [@Tobia\_C](https://www.ruby-forum.com/u/Tobia_C)\
**Replies:** 1\
**Last updated:** [February 15, 2010, 12:34pm UTC](https://www.ruby-forum.com/t/token-bucket-to-limit-bots-and-site-grabbers/183482 "2010-02-15T12:34:36Z")

</div>

Hello Is there any module I can use to limit or deny access to bots and site grabbers, based on the long-term request rate? I’m thinking of a token bucket with a timeframe of hours or days, where a legitimate user wi…

---

## [Possible bug/missing hook: init\_master, init\_thread, etc](https://www.ruby-forum.com/t/possible-bug-missing-hook-init-master-init-thread-etc/183469)

<div class="topic-metadata">

**Author:** [@cep221](https://www.ruby-forum.com/u/cep221)\
**Replies:** 0\
**Last updated:** [February 15, 2010, 6:44am UTC](https://www.ruby-forum.com/t/possible-bug-missing-hook-init-master-init-thread-etc/183469 "2010-02-15T06:44:01Z")

</div>

Many of ngx\_module\_s hooks have a place in the ngx\_module\_s struct, but aren’t actually called. The particular one I’m interested in is init\_master, which isn’t called by nginx. As a substitute, I’m using init\_modul…

---

## [Setting memcache keys in eval block](https://www.ruby-forum.com/t/setting-memcache-keys-in-eval-block/183117)

<div class="topic-metadata">

**Author:** [@mflive](https://www.ruby-forum.com/u/mflive)\
**Replies:** 14\
**Last updated:** [February 14, 2010, 9:01pm UTC](https://www.ruby-forum.com/t/setting-memcache-keys-in-eval-block/183117 "2010-02-14T21:01:43Z")

</div>

Hello, How can i set a memcache key using an arbitrary variable? It seems so straightforward but i cannot get it up and running. I try to fetch memcache results using eval, which i will then pass to memcache once aga…

---

## [Primary and fallback to backup -- try\_files, proxy\_pass, upstream?](https://www.ruby-forum.com/t/primary-and-fallback-to-backup-try-files-proxy-pass-upstream/183446)

<div class="topic-metadata">

**Author:** [@Denis\_Arh](https://www.ruby-forum.com/u/Denis_Arh)\
**Replies:** 2\
**Last updated:** [February 14, 2010, 2:12pm UTC](https://www.ruby-forum.com/t/primary-and-fallback-to-backup-try-files-proxy-pass-upstream/183446 "2010-02-14T14:12:00Z")

</div>

What I would like to have is nginx first to try primary service and then to fallback to the backup if primary is not available. What I’ve tried: try\_files: location /api { try\_files @primary @backup; } location…

---

## [Nginx 0.7.64 and CVE-2009-3555 TLS / SSL renegotiation](https://www.ruby-forum.com/t/nginx-0-7-64-and-cve-2009-3555-tls-ssl-renegotiation/183399)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [February 14, 2010, 12:37pm UTC](https://www.ruby-forum.com/t/nginx-0-7-64-and-cve-2009-3555-tls-ssl-renegotiation/183399 "2010-02-14T12:37:47Z")

</div>

I’m running nginx/0.7.64, compiled from source. The top of the changelog that came with the source says: Changes with nginx 0.7.64 16 Nov 2009 \*) Security: now SSL/TLS renegotia…

---

## [I have a module to parse serialized php sessions](https://www.ruby-forum.com/t/i-have-a-module-to-parse-serialized-php-sessions/183437)

<div class="topic-metadata">

**Author:** [@Mauro\_Stettler](https://www.ruby-forum.com/u/Mauro_Stettler)\
**Replies:** 0\
**Last updated:** [February 14, 2010, 3:14am UTC](https://www.ruby-forum.com/t/i-have-a-module-to-parse-serialized-php-sessions/183437 "2010-02-14T03:14:12Z")

</div>

hi i recently wrote an nginx module that can extract certain values out of a serialized php session. in my case i’m retrieving the php session from a memcache. this thing isn’t tested in prod, in fact i started it ye…

---

## [Nginx and traffic shaping](https://www.ruby-forum.com/t/nginx-and-traffic-shaping/183422)

<div class="topic-metadata">

**Author:** [@hibernaculus](https://www.ruby-forum.com/u/hibernaculus)\
**Replies:** 1\
**Last updated:** [February 14, 2010, 3:06am UTC](https://www.ruby-forum.com/t/nginx-and-traffic-shaping/183422 "2010-02-14T03:06:00Z")

</div>

Hi there. I wanna ask how you guys dealing with traffic shaping with nginx? I searching for something like “server.kbytes-per-second” from lighttpd, this is “Limit the throughput for all connections to the given limit …

---

## [Ngx\_drizzle: make nginx talk directly to mysql, drizzle, and sqlite3 	by libdrizzle](https://www.ruby-forum.com/t/ngx-drizzle-make-nginx-talk-directly-to-mysql-drizzle-and-sqlite3-by-libdrizzle/180911)

<div class="topic-metadata">

**Author:** [@agentzh](https://www.ruby-forum.com/u/agentzh)\
**Replies:** 6\
**Last updated:** [February 13, 2010, 11:20am UTC](https://www.ruby-forum.com/t/ngx-drizzle-make-nginx-talk-directly-to-mysql-drizzle-and-sqlite3-by-libdrizzle/180911 "2010-02-13T11:20:53Z")

</div>

Hi, guys! This is the last day in 2009 and I’m too impatient to hold the first release (version v0.0.1) of our ngx\_drizzle module, an upstream module that talks directly to RDBMS backends like mysql, drizzle, and the …

---

## [Nginx 0.8.30 + Windows XP SP2 - error notice WSAIoctl?](https://www.ruby-forum.com/t/nginx-0-8-30-windows-xp-sp2-error-notice-wsaioctl/180592)

<div class="topic-metadata">

**Author:** [@George](https://www.ruby-forum.com/u/George)\
**Replies:** 1\
**Last updated:** [February 13, 2010, 1:36am UTC](https://www.ruby-forum.com/t/nginx-0-8-30-windows-xp-sp2-error-notice-wsaioctl/180592 "2010-02-13T01:36:17Z")

</div>

Came across an interesting error in error log with Nginx 0.8.30 with WinXP Pro SP2 causing all php/mysql scripts to hang and not load pages ? 2009/12/22 22:37:45 2468#1464: WSAIoctl(SIO\_GET\_EXTENSION\_FUNCTION\_POINTER…

---

## [Amazon S3 authentication patch and X-Accell-Redirect](https://www.ruby-forum.com/t/amazon-s3-authentication-patch-and-x-accell-redirect/183384)

<div class="topic-metadata">

**Author:** [@Rafael\_Steil](https://www.ruby-forum.com/u/Rafael_Steil)\
**Replies:** 0\
**Last updated:** [February 12, 2010, 7:57pm UTC](https://www.ruby-forum.com/t/amazon-s3-authentication-patch-and-x-accell-redirect/183384 "2010-02-12T19:57:58Z")

</div>

Hello, I’ve been using the “Amazon S3 Auth Patch” (which was sent to the list some days ago) for a while, and it works nicely, helping on a lot of issues. What I would like to know is how to get it to work with X-Ac…

---

## [Nginix not servic static content as part of page](https://www.ruby-forum.com/t/nginix-not-servic-static-content-as-part-of-page/182972)

<div class="topic-metadata">

**Author:** [@JohnSchulze](https://www.ruby-forum.com/u/JohnSchulze)\
**Replies:** 8\
**Last updated:** [February 12, 2010, 4:21pm UTC](https://www.ruby-forum.com/t/nginix-not-servic-static-content-as-part-of-page/182972 "2010-02-12T16:21:40Z")

</div>

I have a Mongrel cluster behind nginx and am trying to get nginx to serve up the static contents of my site with the following rule (RESTful URLs): location / { if (-f $request\_filename) { break; } …

---

## [Nginx doesn't switch upstream in some cases](https://www.ruby-forum.com/t/nginx-doesnt-switch-upstream-in-some-cases/183241)

<div class="topic-metadata">

**Author:** [@Guillaume\_F](https://www.ruby-forum.com/u/Guillaume_F)\
**Replies:** 6\
**Last updated:** [February 12, 2010, 2:54pm UTC](https://www.ruby-forum.com/t/nginx-doesnt-switch-upstream-in-some-cases/183241 "2010-02-12T14:54:27Z")

</div>

Hi all, We’re running nginx as a load balancer in front of two reverse proxies (Apache2/mod\_security) for our web site. It’s been working great except last night apache stopped on one of the reverse proxy and nginx w…

---

## [Nginx, static files and local caching](https://www.ruby-forum.com/t/nginx-static-files-and-local-caching/183233)

<div class="topic-metadata">

**Author:** [@rkappert](https://www.ruby-forum.com/u/rkappert)\
**Replies:** 11\
**Last updated:** [February 11, 2010, 4:20pm UTC](https://www.ruby-forum.com/t/nginx-static-files-and-local-caching/183233 "2010-02-11T16:20:34Z")

</div>

I’m currently using nginx for my static files. Apache is still being used to serve my dynamic PHP scripts. This configuration works perfectly Is it possible to cache the static files served bij nginx? Because I’m usi…

---

## [Horde with nginx(Mail)](https://www.ruby-forum.com/t/horde-with-nginx-mail/183306)

<div class="topic-metadata">

**Author:** [@derwyn](https://www.ruby-forum.com/u/derwyn)\
**Replies:** 0\
**Last updated:** [February 11, 2010, 2:33pm UTC](https://www.ruby-forum.com/t/horde-with-nginx-mail/183306 "2010-02-11T14:33:25Z")

</div>

Hi I have horde running on apache passing imap/pop request to nginx. Is there any way that I can get the connection address from apache as currently it’s showing as localhost address. Derwyn

---

## [Nginx Rails + Php](https://www.ruby-forum.com/t/nginx-rails-php/183275)

<div class="topic-metadata">

**Author:** [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Replies:** 0\
**Last updated:** [February 11, 2010, 2:23am UTC](https://www.ruby-forum.com/t/nginx-rails-php/183275 "2010-02-11T02:23:02Z")

</div>

Hi Guys, How can I make a config to set up both Rails and PHP, diff request will go to diff server, what’s wrong with the following, can I setup RailsWThin and Php as below: upstream thin\_cluster { server unix:/usr…

---

## [Howto to modify headers returned by proxied server](https://www.ruby-forum.com/t/howto-to-modify-headers-returned-by-proxied-server/183262)

<div class="topic-metadata">

**Author:** [@azgar](https://www.ruby-forum.com/u/azgar)\
**Replies:** 0\
**Last updated:** [February 10, 2010, 11:11pm UTC](https://www.ruby-forum.com/t/howto-to-modify-headers-returned-by-proxied-server/183262 "2010-02-10T23:11:58Z")

</div>

Hi all, I am trying to create a reverse proxy towards various web-enabled equipment. Things are starting to work. I run into the following problem: Sometimes my some of web enabled equipment returns a request for ba…

---

## [Filesize issue with Nginx Upload Progress Module](https://www.ruby-forum.com/t/filesize-issue-with-nginx-upload-progress-module/183259)

<div class="topic-metadata">

**Author:** [@MSc](https://www.ruby-forum.com/u/MSc)\
**Replies:** 1\
**Last updated:** [February 10, 2010, 10:38pm UTC](https://www.ruby-forum.com/t/filesize-issue-with-nginx-upload-progress-module/183259 "2010-02-10T22:38:42Z")

</div>

Hi all, we are using nginx in front of a mongrel cluster to serve our Rails application. I am now trying to run a Rails Metal in front of the Rails stack to handle file uploads. Some of the files are then transferred…

---

## [Nginx as proxy for Amazon S3 protected files](https://www.ruby-forum.com/t/nginx-as-proxy-for-amazon-s3-protected-files/180325)

<div class="topic-metadata">

**Author:** [@Smrchy](https://www.ruby-forum.com/u/Smrchy)\
**Replies:** 3\
**Last updated:** [February 10, 2010, 8:05am UTC](https://www.ruby-forum.com/t/nginx-as-proxy-for-amazon-s3-protected-files/180325 "2010-02-10T08:05:21Z")

</div>

Hi everyone, i know Nginx could make for an excellent proxy for Amazon S3 files when there are publicly accessible. Did anyone ever setup Nginx to proxy files where the ACL ist set to “authenticated-read”? Nginx wou…

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

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