# Server

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

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

---

## [Setting up nginx as reverse proxy to Apache, what's wrong?](https://www.ruby-forum.com/t/setting-up-nginx-as-reverse-proxy-to-apache-whats-wrong/182501)

<div class="topic-metadata">

**Author:** [@Thuan\_Nguyen](https://www.ruby-forum.com/u/Thuan_Nguyen)\
**Replies:** 1\
**Last updated:** [January 29, 2010, 9:53am UTC](https://www.ruby-forum.com/t/setting-up-nginx-as-reverse-proxy-to-apache-whats-wrong/182501 "2010-01-29T09:53:39Z")

</div>

Hi all, I’ve been trying to setup nginx to run as front of Apache on my busy server but things seem not fine to me. nginx (0.6.39), Apache (2.2.3) are installed from yum, mod\_rpaf (0.6) built from source. For test…

---

## [Ngx\_memc v0.06: new directive memc\_flags\_to\_last\_modified](https://www.ruby-forum.com/t/ngx-memc-v0-06-new-directive-memc-flags-to-last-modified/182513)

<div class="topic-metadata">

**Author:** [@agentzh](https://www.ruby-forum.com/u/agentzh)\
**Replies:** 0\
**Last updated:** [January 29, 2010, 8:26am UTC](https://www.ruby-forum.com/t/ngx-memc-v0-06-new-directive-memc-flags-to-last-modified/182513 "2010-01-29T08:26:26Z")

</div>

Hi, folks! I’m pleased to announce the v0.06 release of the ngx\_memc module: http://wiki.nginx.org/NginxHttpMemcModule This release has the highlight of a new directive named “memc\_flags\_to\_last\_modified”. If this d…

---

## [Fastcgi\_cache optimization question](https://www.ruby-forum.com/t/fastcgi-cache-optimization-question/182507)

<div class="topic-metadata">

**Author:** [@hone](https://www.ruby-forum.com/u/hone)\
**Replies:** 0\
**Last updated:** [January 29, 2010, 3:57am UTC](https://www.ruby-forum.com/t/fastcgi-cache-optimization-question/182507 "2010-01-29T03:57:47Z")

</div>

Is there certain settings more likely to cause disk I/O problems in fastcgi\_cache? Is it better to have multiple smaller zones for different locations? What are the effects of a big max\_size? What are the effects of …

---

## [How to determine upload\_progress zone size](https://www.ruby-forum.com/t/how-to-determine-upload-progress-zone-size/182419)

<div class="topic-metadata">

**Author:** [@zdennis](https://www.ruby-forum.com/u/zdennis)\
**Replies:** 0\
**Last updated:** [January 27, 2010, 7:28pm UTC](https://www.ruby-forum.com/t/how-to-determine-upload-progress-zone-size/182419 "2010-01-27T19:28:38Z")

</div>

We are tracking upload progress and we have the following configuration: upload\_progress proxied 1m; Is there a good rule of thumb as to what size the zone should be for connection tracking? Is 1m a good default, too …

---

## [Should I send patch here? - xslt\_enable "only enable xslt transform for certain user agent"](https://www.ruby-forum.com/t/should-i-send-patch-here-xslt-enable-only-enable-xslt-transform-for-certain-user-agent/182384)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [January 27, 2010, 1:50pm UTC](https://www.ruby-forum.com/t/should-i-send-patch-here-xslt-enable-only-enable-xslt-transform-for-certain-user-agent/182384 "2010-01-27T13:50:14Z")

</div>

Maybe not many people using xslt as main web layout. but I do. This patch is similar to gzip\_disable. xslt\_enable only enable xslt transform for certain user agent. e.g. xslt\_enable “Googlebot” will only enable xsl…

---

## [Writing a module to check validity of user sessions](https://www.ruby-forum.com/t/writing-a-module-to-check-validity-of-user-sessions/182186)

<div class="topic-metadata">

**Author:** [@Mauro\_Stettler](https://www.ruby-forum.com/u/Mauro_Stettler)\
**Replies:** 3\
**Last updated:** [January 27, 2010, 11:20am UTC](https://www.ruby-forum.com/t/writing-a-module-to-check-validity-of-user-sessions/182186 "2010-01-27T11:20:57Z")

</div>

hi i am currently writing a module which should send the session\_id cookie to an upstream, receive the upstreams answer, and based on the answer decide if it should deliver a page for authenticated users or a page fo…

---

## [Any way to read file contents into a variable?](https://www.ruby-forum.com/t/any-way-to-read-file-contents-into-a-variable/181972)

<div class="topic-metadata">

**Author:** [@arianna](https://www.ruby-forum.com/u/arianna)\
**Replies:** 3\
**Last updated:** [January 27, 2010, 8:59am UTC](https://www.ruby-forum.com/t/any-way-to-read-file-contents-into-a-variable/181972 "2010-01-27T08:59:17Z")

</div>

want to store urls (locations) in files and issue redirects based on file contents. $request\_body looks like it’s only available on proxy… Posted at Nginx Forum:

---

## [100% with upstream / backup server](https://www.ruby-forum.com/t/100-with-upstream-backup-server/182333)

<div class="topic-metadata">

**Author:** [@reima](https://www.ruby-forum.com/u/reima)\
**Replies:** 6\
**Last updated:** [January 26, 2010, 6:32pm UTC](https://www.ruby-forum.com/t/100-with-upstream-backup-server/182333 "2010-01-26T18:32:13Z")

</div>

Hi, I’ve noticed a strange issue. I’ve a configuration like: … upstream \_backend { server 10.0.0.1:80 down; server 10.0.0.2:80 down; server 127.0.0.1:80 backup; } … the purpose is to disable all backends and swi…

---

## [Mongrels Hanging in mysql\_adapter.rb](https://www.ruby-forum.com/t/mongrels-hanging-in-mysql-adapter-rb/182328)

<div class="topic-metadata">

**Author:** [@serty2\_serty2](https://www.ruby-forum.com/u/serty2_serty2)\
**Replies:** 0\
**Last updated:** [January 26, 2010, 5:11pm UTC](https://www.ruby-forum.com/t/mongrels-hanging-in-mysql-adapter-rb/182328 "2010-01-26T17:11:25Z")

</div>

Hi everyone, I have been trying to solve this problem for quite some time now and I really don’t have any further clue to investigate. I am running a mongrel\_cluster 1.0.5-2 (mongrel verison : 1.1.5-5) on a ubuntu bo…

---

## [Disabling HTTP keepalive by User-Agent](https://www.ruby-forum.com/t/disabling-http-keepalive-by-user-agent/182261)

<div class="topic-metadata">

**Author:** [@joshua](https://www.ruby-forum.com/u/joshua)\
**Replies:** 2\
**Last updated:** [January 26, 2010, 4:08pm UTC](https://www.ruby-forum.com/t/disabling-http-keepalive-by-user-agent/182261 "2010-01-26T16:08:48Z")

</div>

A long-standing bug in Safari causes file uploads to hang when keepalive connections are improperly reused. https://bugs.webkit.org/show\_bug.cgi?id=5760 In Apache, disabling keepalive support for Webkit solves this pr…

---

## [Nginx project/contract work available](https://www.ruby-forum.com/t/nginx-project-contract-work-available/182116)

<div class="topic-metadata">

**Author:** [@crania](https://www.ruby-forum.com/u/crania)\
**Replies:** 5\
**Last updated:** [January 26, 2010, 8:54am UTC](https://www.ruby-forum.com/t/nginx-project-contract-work-available/182116 "2010-01-26T08:54:24Z")

</div>

I have a small nginx project on hand that requires some custom code - we have no one on staff that can knock this out so if you are available for some work in the next couple weeks please reply to this message. Basica…

---

## [Ip\_hash and real\_ip\_header](https://www.ruby-forum.com/t/ip-hash-and-real-ip-header/182280)

<div class="topic-metadata">

**Author:** [@Laurence\_Rowe](https://www.ruby-forum.com/u/Laurence_Rowe)\
**Replies:** 1\
**Last updated:** [January 26, 2010, 1:47am UTC](https://www.ruby-forum.com/t/ip-hash-and-real-ip-header/182280 "2010-01-26T01:47:10Z")

</div>

Hi, I’ve got Nginx 0.7.64 running as a loadbalancer / transformation proxy behind varnish. I’d like to use ip\_hash so users get the benefit of session affinity on my app servers. Though I seem to have real\_ip\_header …

---

## [Blocking blank useragent requests](https://www.ruby-forum.com/t/blocking-blank-useragent-requests/182194)

<div class="topic-metadata">

**Author:** [@bob](https://www.ruby-forum.com/u/bob)\
**Replies:** 5\
**Last updated:** [January 25, 2010, 11:58pm UTC](https://www.ruby-forum.com/t/blocking-blank-useragent-requests/182194 "2010-01-25T23:58:54Z")

</div>

Does anyone know how I can achieve this? I want to block all requests with blank useragents, however I’m not exactly sure how would I go about setting that up in nginx’s configuration. Posted at Nginx Forum:

---

## [Disabling cache on remote\_addr](https://www.ruby-forum.com/t/disabling-cache-on-remote-addr/182232)

<div class="topic-metadata">

**Author:** [@Davide\_DSAmico](https://www.ruby-forum.com/u/Davide_DSAmico)\
**Replies:** 0\
**Last updated:** [January 25, 2010, 2:35pm UTC](https://www.ruby-forum.com/t/disabling-cache-on-remote-addr/182232 "2010-01-25T14:35:38Z")

</div>

Hi, I’m using this stanza to configure caching on jpeg|css|gif files: location ~ .(gif|jpg|png|css)$ { proxy\_pass http://1\_2\_4\_backend; proxy\_cache STANZA00; proxy\_cache\_valid 200 10m; proxy\_cache\_use\_stale error t…

---

## [Preventing rewrite loops with "index"](https://www.ruby-forum.com/t/preventing-rewrite-loops-with-index/182094)

<div class="topic-metadata">

**Author:** [@Dennis\_J](https://www.ruby-forum.com/u/Dennis_J)\
**Replies:** 12\
**Last updated:** [January 25, 2010, 1:58pm UTC](https://www.ruby-forum.com/t/preventing-rewrite-loops-with-index/182094 "2010-01-25T13:58:45Z")

</div>

Hi, So with my first rewrite issue solved I now move closer towards the real configuration and run into a problem with the index directive. My location looks like this: location ~\* ^/((\[A-Za-z\])(\[A-Za-z0-9\])(\[A-Za-z0…

---

## [Reverse proxying towards various hardware devices](https://www.ruby-forum.com/t/reverse-proxying-towards-various-hardware-devices/182157)

<div class="topic-metadata">

**Author:** [@azgar](https://www.ruby-forum.com/u/azgar)\
**Replies:** 3\
**Last updated:** [January 24, 2010, 1:54pm UTC](https://www.ruby-forum.com/t/reverse-proxying-towards-various-hardware-devices/182157 "2010-01-24T13:54:10Z")

</div>

Hi all, I need some help with NGINX reverse proxying setup. The problem: make several devices accessible through a single IP address. my current configuration works: For some devices: fine For other devices: for a …

---

## [Limit\_zone and limit\_conn problem](https://www.ruby-forum.com/t/limit-zone-and-limit-conn-problem/182118)

<div class="topic-metadata">

**Author:** [@hibernaculus](https://www.ruby-forum.com/u/hibernaculus)\
**Replies:** 3\
**Last updated:** [January 23, 2010, 7:28pm UTC](https://www.ruby-forum.com/t/limit-zone-and-limit-conn-problem/182118 "2010-01-23T19:28:50Z")

</div>

Hi list, I have smillar problem like http://markmail.org/message/m5mau3i4yxkw46rj \[ Problems using limit\_zone and limit\_conn \] How this limit\_conn work? I have limit\_conn one 1; but still I can do many connections…

---

## [Nginx supports idn domain?](https://www.ruby-forum.com/t/nginx-supports-idn-domain/182137)

<div class="topic-metadata">

**Author:** [@max](https://www.ruby-forum.com/u/max)\
**Replies:** 1\
**Last updated:** [January 23, 2010, 3:08pm UTC](https://www.ruby-forum.com/t/nginx-supports-idn-domain/182137 "2010-01-23T15:08:26Z")

</div>

Hello, I remember that I got some problem to run idn domains on nginx. I can’t remember whether it’s the problem of nginx itself (ver 0.6) or the problem of wordpress supercache. So I moved all the idn domains to apa…

---

## [Can I extract the last IP address in X-Forwarded-For and assign it to a variable](https://www.ruby-forum.com/t/can-i-extract-the-last-ip-address-in-x-forwarded-for-and-assign-it-to-a-variable/182131)

<div class="topic-metadata">

**Author:** [@chittis](https://www.ruby-forum.com/u/chittis)\
**Replies:** 3\
**Last updated:** [January 23, 2010, 2:56pm UTC](https://www.ruby-forum.com/t/can-i-extract-the-last-ip-address-in-x-forwarded-for-and-assign-it-to-a-variable/182131 "2010-01-23T14:56:08Z")

</div>

Hi, I want to get the last IP address in the X-Forwarded-For header and assign it to a variable. I’m doing this using embeded perl now. Is there a way I can do this using the map module and regular expressions? Poste…

---

## [Fastcgi buffering](https://www.ruby-forum.com/t/fastcgi-buffering/182144)

<div class="topic-metadata">

**Author:** [@djeyewater](https://www.ruby-forum.com/u/djeyewater)\
**Replies:** 0\
**Last updated:** [January 23, 2010, 12:19pm UTC](https://www.ruby-forum.com/t/fastcgi-buffering/182144 "2010-01-23T12:19:54Z")

</div>

I have a php script that uses ImageMagick to process an image. What I’d like to do is to flush the buffers just before the script calls ImageMagick, that way the user at least gets some output in their browser instead…

---

## [Override /usr/local/html](https://www.ruby-forum.com/t/override-usr-local-html/182112)

<div class="topic-metadata">

**Author:** [@Juan\_FcoSGiordana](https://www.ruby-forum.com/u/Juan_FcoSGiordana)\
**Replies:** 1\
**Last updated:** [January 23, 2010, 1:16am UTC](https://www.ruby-forum.com/t/override-usr-local-html/182112 "2010-01-23T01:16:54Z")

</div>

Hello Igor, Are there any plans to include a configure option to change the default location of the html dir? Regards.

---

## [Very odd reverse proxy problem](https://www.ruby-forum.com/t/very-odd-reverse-proxy-problem/182125)

<div class="topic-metadata">

**Author:** [@kiorky](https://www.ruby-forum.com/u/kiorky)\
**Replies:** 0\
**Last updated:** [January 22, 2010, 10:47pm UTC](https://www.ruby-forum.com/t/very-odd-reverse-proxy-problem/182125 "2010-01-22T22:47:05Z")

</div>

The things: I have a nginx handmade compiled under the hood I have an official zope+plone installation on native windows I have a django based application inside the cygwin I have a tomcat+cas installation on native wi…

---

## [Having dot in the header name](https://www.ruby-forum.com/t/having-dot-in-the-header-name/182114)

<div class="topic-metadata">

**Author:** [@vys](https://www.ruby-forum.com/u/vys)\
**Replies:** 1\
**Last updated:** [January 22, 2010, 8:26pm UTC](https://www.ruby-forum.com/t/having-dot-in-the-header-name/182114 "2010-01-22T20:26:00Z")

</div>

Hi, I see that nginx as proxy rejects headers with name like “auth.client” or “auth.token” (with dot in their name) and stops parsing further headers. Thus the request to the upstream server doesn’t contain these hea…

---

## ["root" directive weirdness](https://www.ruby-forum.com/t/root-directive-weirdness/182040)

<div class="topic-metadata">

**Author:** [@Dennis\_J](https://www.ruby-forum.com/u/Dennis_J)\
**Replies:** 7\
**Last updated:** [January 22, 2010, 1:54pm UTC](https://www.ruby-forum.com/t/root-directive-weirdness/182040 "2010-01-22T13:54:20Z")

</div>

Hi, I’m trying to configure a vhost where in the default case I want it to get the files from /opt/nginx/html but when the uri starts with “/users/” I want to to deliver the files from /web/users/ instead: loca…

---

## [Restrict/Deny access to all paths starting with \_](https://www.ruby-forum.com/t/restrict-deny-access-to-all-paths-starting-with/182083)

<div class="topic-metadata">

**Author:** [@Smrchy](https://www.ruby-forum.com/u/Smrchy)\
**Replies:** 1\
**Last updated:** [January 22, 2010, 11:44am UTC](https://www.ruby-forum.com/t/restrict-deny-access-to-all-paths-starting-with/182083 "2010-01-22T11:44:59Z")

</div>

Hi, this is probably a noob question but i’m wondering what would be the best way to allow access to a directory e.g.: location /foo { … } this will allow access to /foo /foo/bar /foo/bar/somefile.txt But now…

---

## [Multiple nginx in one server?](https://www.ruby-forum.com/t/multiple-nginx-in-one-server/182061)

<div class="topic-metadata">

**Author:** [@max](https://www.ruby-forum.com/u/max)\
**Replies:** 5\
**Last updated:** [January 22, 2010, 8:45am UTC](https://www.ruby-forum.com/t/multiple-nginx-in-one-server/182061 "2010-01-22T08:45:17Z")

</div>

Hello, Can I run multiple nginx in a server? One server wll be used for mp4 streaming and the other one will be used for web server. Is it a good idea to use multiple nginx in a server? Thanks. Max

---

## [Version 0.7 or 0.8?](https://www.ruby-forum.com/t/version-0-7-or-0-8/182060)

<div class="topic-metadata">

**Author:** [@max](https://www.ruby-forum.com/u/max)\
**Replies:** 4\
**Last updated:** [January 22, 2010, 5:37am UTC](https://www.ruby-forum.com/t/version-0-7-or-0-8/182060 "2010-01-22T05:37:24Z")

</div>

Hello, I want to upgrade from 0.6. I just want to ask whether I should use ver 0.7 or 0.8? Is ver 0.8 stable enough? Thanks a lot. Max

---

## [Limiting bandwith by querying mysql possible?](https://www.ruby-forum.com/t/limiting-bandwith-by-querying-mysql-possible/180422)

<div class="topic-metadata">

**Author:** [@partysoft](https://www.ruby-forum.com/u/partysoft)\
**Replies:** 5\
**Last updated:** [January 22, 2010, 4:01am UTC](https://www.ruby-forum.com/t/limiting-bandwith-by-querying-mysql-possible/180422 "2010-01-22T04:01:24Z")

</div>

Hi, i haven’t found a solution regarding nginx, and it’s driving me nuts… what i’m trying to do is limit the bandwith for each user that i have in a mysqlDB for some mp3. I already have the DB , and i’ve been trying …

---

## [How to increase the size of the gateway header buffer?](https://www.ruby-forum.com/t/how-to-increase-the-size-of-the-gateway-header-buffer/182049)

<div class="topic-metadata">

**Author:** [@zmre](https://www.ruby-forum.com/u/zmre)\
**Replies:** 1\
**Last updated:** [January 22, 2010, 1:23am UTC](https://www.ruby-forum.com/t/how-to-increase-the-size-of-the-gateway-header-buffer/182049 "2010-01-22T01:23:24Z")

</div>

Hello, nginx is currently giving me this error: upstream sent too big header while reading response header and returning a 502 Bad Gateway message to the browser. With debugging turned on, I can see that my PHP appli…

---

## [Future of mod\_wsgi](https://www.ruby-forum.com/t/future-of-mod-wsgi/182023)

<div class="topic-metadata">

**Author:** [@Manlio\_P](https://www.ruby-forum.com/u/Manlio_P)\
**Replies:** 0\
**Last updated:** [January 21, 2010, 6:33pm UTC](https://www.ruby-forum.com/t/future-of-mod-wsgi/182023 "2010-01-21T18:33:04Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all. I’m finally allocating some time to update mod\_wsgi to recent Nginx versions. The target is the development branch. While doing so I plan to remove some features…

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

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