# Server

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

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

---

## [Nginx proxying do not locally save/buffer uploaded files?](https://www.ruby-forum.com/t/nginx-proxying-do-not-locally-save-buffer-uploaded-files/206567)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [May 9, 2011, 8:34am UTC](https://www.ruby-forum.com/t/nginx-proxying-do-not-locally-save-buffer-uploaded-files/206567 "2011-05-09T08:34:23Z")

</div>

Hello, I’m running nginx as a proxy in front of some backend servers, and while uploading files (HTTP PUT) nginx seems to buffer the files to local disk. This is not a possible method for this setup, because some of…

---

## [Proxy caching](https://www.ruby-forum.com/t/proxy-caching/206690)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [May 8, 2011, 6:17pm UTC](https://www.ruby-forum.com/t/proxy-caching/206690 "2011-05-08T18:17:59Z")

</div>

Hi all, I would like to use nginx to cache some responses from my backends. There are basically 2 types of responses I would like to cache. public images that never expire private content The first one was easy, got…

---

## [MySQL and Nginx mystery](https://www.ruby-forum.com/t/mysql-and-nginx-mystery/206667)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [May 6, 2011, 11:06pm UTC](https://www.ruby-forum.com/t/mysql-and-nginx-mystery/206667 "2011-05-06T23:06:50Z")

</div>

Hi all, I have set a fastcgi upstream into Nginx configuration: upstream fastcgi { ip\_hash; server 192.168.0.2:9000; server 192.168.0.3:9000; server 192.168.0.4:9000; } Everything works perfect, ex…

---

## [Long URLs cause nginx to hang](https://www.ruby-forum.com/t/long-urls-cause-nginx-to-hang/206662)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [May 6, 2011, 9:28pm UTC](https://www.ruby-forum.com/t/long-urls-cause-nginx-to-hang/206662 "2011-05-06T21:28:02Z")

</div>

Hey everyone, I’m having strange issues with very long url’s under Nginx 1.0.1 (also tested under 0.8.54). Certain URL’s with a large number of GET parameters are failing. I wrote a quick test script which only prints…

---

## [Re: 502 Bad Gateway](https://www.ruby-forum.com/t/re-502-bad-gateway/206656)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [May 6, 2011, 8:31pm UTC](https://www.ruby-forum.com/t/re-502-bad-gateway/206656 "2011-05-06T20:31:10Z")

</div>

Hello, How can i change 502 bad gateway from all my vhosts, to do a unique erro page? I want redirect to /var/html/www/errors/502/ I try put at vhost config, but some time it doesnt work. Thanks, Felipe aka lpr

---

## [PHP virtual impossible on nginx?](https://www.ruby-forum.com/t/php-virtual-impossible-on-nginx/206653)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [May 6, 2011, 5:22pm UTC](https://www.ruby-forum.com/t/php-virtual-impossible-on-nginx/206653 "2011-05-06T17:22:15Z")

</div>

It seems this is impossible on nginx,since php virtual is function attached to apache,but still posting this in hope how someone managed to make this work.For some reason a lot of scripts uses php virtual include inst…

---

## [Shared Hosting](https://www.ruby-forum.com/t/shared-hosting/206648)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [May 6, 2011, 4:34pm UTC](https://www.ruby-forum.com/t/shared-hosting/206648 "2011-05-06T16:34:39Z")

</div>

I have a dedicated server where i would like to offer shared hosting for WordPress multisite installs. What would be the best configuration for the virtual host files (more concerned with the server directive) since …

---

## [How to avoid "too big header" issue?](https://www.ruby-forum.com/t/how-to-avoid-too-big-header-issue/206067)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 16\
**Last updated:** [May 6, 2011, 9:39am UTC](https://www.ruby-forum.com/t/how-to-avoid-too-big-header-issue/206067 "2011-05-06T09:39:47Z")

</div>

There’s hundreds of “setcookie(‘xxx’,‘yyy’)” lines in one of my php page,the size of these cookies is about 2-10KB,so nginx always throw a typical “502 bad gateway”. my solutionA is: add this to nginx.conf: client\_he…

---

## [FastCGI server status](https://www.ruby-forum.com/t/fastcgi-server-status/206624)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [May 6, 2011, 8:46am UTC](https://www.ruby-forum.com/t/fastcgi-server-status/206624 "2011-05-06T08:46:39Z")

</div>

Hello, I was wondering if I could monitor FastCGI responses (timers, success, failures, round robin stats, etc…) with nginx? Any hints on how I could get this info? Thanks -Daniel

---

## [Catch ALL requests by LUA-script](https://www.ruby-forum.com/t/catch-all-requests-by-lua-script/203880)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 10\
**Last updated:** [May 6, 2011, 6:27am UTC](https://www.ruby-forum.com/t/catch-all-requests-by-lua-script/203880 "2011-05-06T06:27:14Z")

</div>

Hi, i’m using the nginx-lua-module by agentzh on the current stable nginx (0.8.54) (also the drizzle and echo module and php via php-fpm) it’s working fine with a plain nginx running What i would like to to: Is it p…

---

## [Nginx Forum now accessible via IPv6](https://www.ruby-forum.com/t/nginx-forum-now-accessible-via-ipv6/206610)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [May 5, 2011, 8:59pm UTC](https://www.ruby-forum.com/t/nginx-forum-now-accessible-via-ipv6/206610 "2011-05-05T20:59:47Z")

</div>

Generally I prefer to keep forum business on the forum but given the current state of IPv4 addresses and the upcoming World IPv6 Day on June 8, 2011 - see IPv6 Basics, News, Guides & Tutorials | Internet Society - I am…

---

## [Memcache issue](https://www.ruby-forum.com/t/memcache-issue/206604)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [May 5, 2011, 6:28pm UTC](https://www.ruby-forum.com/t/memcache-issue/206604 "2011-05-05T18:28:02Z")

</div>

Hello, I am using PHP to connect to memcache. I connect memcache service in the PHP code as follows: $memcache = new Memcache; $memcache-\>connect(‘127.0.0.1’, 11211); //connect to memcached server Then when I connec…

---

## [No server response in https](https://www.ruby-forum.com/t/no-server-response-in-https/206519)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [May 5, 2011, 5:25pm UTC](https://www.ruby-forum.com/t/no-server-response-in-https/206519 "2011-05-05T17:25:59Z")

</div>

I’m running 0.8.53 on QNX Neutrino 6.5.0 with SSL on and the server doesn’t respond to the client. Instead it times out, as below. It does work properly with SSL off. Can you provide any suggestions? Thanks. 2011/05/0…

---

## [Exchange 2010 rpc?](https://www.ruby-forum.com/t/exchange-2010-rpc/206593)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [May 5, 2011, 1:16pm UTC](https://www.ruby-forum.com/t/exchange-2010-rpc/206593 "2011-05-05T13:16:02Z")

</div>

nginx mailing list removed\_email\_address@domain.invalid http://nginx.org/mailman/listinfo/nginx

---

## [Pre-process request via upstream then forward to proxy](https://www.ruby-forum.com/t/pre-process-request-via-upstream-then-forward-to-proxy/206578)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [May 5, 2011, 8:31am UTC](https://www.ruby-forum.com/t/pre-process-request-via-upstream-then-forward-to-proxy/206578 "2011-05-05T08:31:38Z")

</div>

As part of processing a request, I need to first send and receive a response to/from an upstream to authenticate some credentials in the request. Once this has been done, the original request needs to be proxied to a…

---

## [Lua pcre inside nginx](https://www.ruby-forum.com/t/lua-pcre-inside-nginx/206562)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [May 5, 2011, 5:37am UTC](https://www.ruby-forum.com/t/lua-pcre-inside-nginx/206562 "2011-05-05T05:37:32Z")

</div>

I wanted to use pcre inside a lua script using rex\_pcre. However, I always get the error: failed to get memory (pattern offset: 15) The snippet of code always works in a standalone script. Ideas? – Brian A.

---

## [Not working without aio](https://www.ruby-forum.com/t/not-working-without-aio/206542)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [May 5, 2011, 5:00am UTC](https://www.ruby-forum.com/t/not-working-without-aio/206542 "2011-05-05T05:00:58Z")

</div>

If you install nginx compiled with aio support on non-aio enabled kernel, it doesn’t work: 2011/04/15 11:46:25 \[emerg\] 18942#0: io\_setup() failed (1: Operation not permitted) 2011/04/15 11:46:25 \[alert\] 18938#0: work…

---

## [Question about the context of map directive](https://www.ruby-forum.com/t/question-about-the-context-of-map-directive/206561)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [May 5, 2011, 4:15am UTC](https://www.ruby-forum.com/t/question-about-the-context-of-map-directive/206561 "2011-05-05T04:15:45Z")

</div>

Hi, The context of map directive is http as documented on wiki.nginx.org. This means all the requests will go through the map filter phase. This is not ideal when you have many virtual hosts. For example, we’ve 50+ …

---

## [Limit connection](https://www.ruby-forum.com/t/limit-connection/206528)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [May 5, 2011, 12:25am UTC](https://www.ruby-forum.com/t/limit-connection/206528 "2011-05-05T00:25:50Z")

</div>

Hello, I want to limit the number of connection per hour from IP range. For example, I want to limit every hour, each IP can only visit our website for 5 times. How can I write the config? There is limit\_req, which …

---

## [Load balancing based on part of url or header](https://www.ruby-forum.com/t/load-balancing-based-on-part-of-url-or-header/206544)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [May 4, 2011, 1:29pm UTC](https://www.ruby-forum.com/t/load-balancing-based-on-part-of-url-or-header/206544 "2011-05-04T13:29:13Z")

</div>

Hi guys, is this possible to have similar feature as ip\_hash but not based on IP address but on some part of request url (or header)? Cheers, Kamil G.

---

## [POSIX semaphores patch](https://www.ruby-forum.com/t/posix-semaphores-patch/206541)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [May 4, 2011, 1:08pm UTC](https://www.ruby-forum.com/t/posix-semaphores-patch/206541 "2011-05-04T13:08:47Z")

</div>

The attache patch enables POSIX semaphores usage during shared memory access. It should decrease CPU usage on start-up or online upgrade of installations with large caches or large number of workers. I tested the pa…

---

## [Nginx-1.0.1 for Windows 32-bit and 64-bit now available](https://www.ruby-forum.com/t/nginx-1-0-1-for-windows-32-bit-and-64-bit-now-available/206525)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [May 4, 2011, 4:36am UTC](https://www.ruby-forum.com/t/nginx-1-0-1-for-windows-32-bit-and-64-bit-now-available/206525 "2011-05-04T04:36:49Z")

</div>

For those interested, Cygwin based versions of Nginx for Windows (both 32-bit and 64-bit) builds are available here: Blog post/announcement: Cygwin is NOT required on your system to run this version; all needed fil…

---

## [FRiCKLE Labs & C2Hosting pres. ngx\_slowfs\_cache](https://www.ruby-forum.com/t/frickle-labs-c2hosting-pres-ngx-slowfs-cache/180568)

<div class="topic-metadata">

**Author:** [@piotrs](https://www.ruby-forum.com/u/piotrs)\
**Replies:** 11\
**Last updated:** [May 3, 2011, 7:16pm UTC](https://www.ruby-forum.com/t/frickle-labs-c2hosting-pres-ngx-slowfs-cache/180568 "2011-05-03T19:16:28Z")

</div>

Hello, let me introduce another nginx module. ngx\_slowfs\_cache is a module which allows caching of static files (served using “root” directive). This enables one to create fast caches for files stored on slow filesys…

---

## [Nginx Slowdown on Solaris](https://www.ruby-forum.com/t/nginx-slowdown-on-solaris/206339)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 11\
**Last updated:** [May 3, 2011, 4:25pm UTC](https://www.ruby-forum.com/t/nginx-slowdown-on-solaris/206339 "2011-05-03T16:25:23Z")

</div>

Hello, I use nginx 0.8.53 on Solaris 10 and I feel like I reach a kind of limit but I’m not abble to find it. I use Nginx to serve static image and sometimes to get one image I need to wait 10 or more seconds. nginx…

---

## [How to get a 404 logged with try\_files?](https://www.ruby-forum.com/t/how-to-get-a-404-logged-with-try-files/206469)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [May 3, 2011, 2:45pm UTC](https://www.ruby-forum.com/t/how-to-get-a-404-logged-with-try-files/206469 "2011-05-03T14:45:41Z")

</div>

Hi! Just started with Nginx after reading it reached 1.0. Congratulation! I’m trying to get my test site to return a “missing image” icon when an image is missing, but have a 404 logged so I know I messed up something…

---

## [Multiple connections to a fastcgi server](https://www.ruby-forum.com/t/multiple-connections-to-a-fastcgi-server/206506)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [May 3, 2011, 2:16pm UTC](https://www.ruby-forum.com/t/multiple-connections-to-a-fastcgi-server/206506 "2011-05-03T14:16:55Z")

</div>

Hello, I want to build a fast cgi server application which can handle multiple simoultanous calls. I found the threaded.c (or threaded.pl) example in the fast cgi sdk. (http://www.fastcgi.com/devkit/examples/threaded…

---

## [Nginx-1.0.1](https://www.ruby-forum.com/t/nginx-1-0-1/206508)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [May 3, 2011, 2:16pm UTC](https://www.ruby-forum.com/t/nginx-1-0-1/206508 "2011-05-03T14:16:18Z")

</div>

Changes with nginx 1.0.1 03 May 2011 \*) Change: now the "split\_clients" directive uses MurmurHash2 algorithm because of better distribution. Thanks to Oleg Mamontov. \*) Chan…

---

## [Crash (double free or corruption) on trying to proxy to localhost](https://www.ruby-forum.com/t/crash-double-free-or-corruption-on-trying-to-proxy-to-localhost/206459)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [May 3, 2011, 1:47pm UTC](https://www.ruby-forum.com/t/crash-double-free-or-corruption-on-trying-to-proxy-to-localhost/206459 "2011-05-03T13:47:11Z")

</div>

I’ve currently got a pool of systems running nginx proxying to a pool of systems running apache. I’m trying to move to running nginx locally on the apache hosts instead of separate systems to avoid the extra network …

---

## [Reloading conf](https://www.ruby-forum.com/t/reloading-conf/206486)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [May 3, 2011, 2:28am UTC](https://www.ruby-forum.com/t/reloading-conf/206486 "2011-05-03T02:28:03Z")

</div>

Hi! How reloading my conf can affect my running nginx instances that are under load? Just made a small test and I saw that some requests to the upstream are being lost. I am reloading the same configuration I had, did…

---

## [Domain rewrite/redirect](https://www.ruby-forum.com/t/domain-rewrite-redirect/206488)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [May 3, 2011, 1:55am UTC](https://www.ruby-forum.com/t/domain-rewrite-redirect/206488 "2011-05-03T01:55:23Z")

</div>

I have two different domains. One is a shortened url for referrals. I want to be able redirect the host name from the short url with parameters to the actual url. For example: abcd.com/123456 rewrite/redirect to e…

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

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