# Server

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

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

---

## [Bigger chunk size](https://www.ruby-forum.com/t/bigger-chunk-size/185971)

<div class="topic-metadata">

**Author:** [@pio](https://www.ruby-forum.com/u/pio)\
**Replies:** 0\
**Last updated:** [March 29, 2010, 10:26pm UTC](https://www.ruby-forum.com/t/bigger-chunk-size/185971 "2010-03-29T22:26:15Z")

</div>

Hi, We have many large files (~700mb) and the problem is the disk (raid-0). Is there a chance to change the chunk size in nginx, i.e. read bigger blocks from the disk? Lighttpd gained much performance from a bigger …

---

## [Proxy\_redirect and variables](https://www.ruby-forum.com/t/proxy-redirect-and-variables/185610)

<div class="topic-metadata">

**Author:** [@Tobia\_C](https://www.ruby-forum.com/u/Tobia_C)\
**Replies:** 2\
**Last updated:** [March 29, 2010, 6:56pm UTC](https://www.ruby-forum.com/t/proxy-redirect-and-variables/185610 "2010-03-29T18:56:44Z")

</div>

Hi Why doesn’t proxy\_redirect interpolate variables in its first argument? I’m trying to setup a reverse proxy to a backend that uses name-based virtual hosts, so I need to change both the incoming Host header and the …

---

## [Can auth\_basic restrict files in certain folder?](https://www.ruby-forum.com/t/can-auth-basic-restrict-files-in-certain-folder/185908)

<div class="topic-metadata">

**Author:** [@WisdomFusion](https://www.ruby-forum.com/u/WisdomFusion)\
**Replies:** 4\
**Last updated:** [March 29, 2010, 7:41am UTC](https://www.ruby-forum.com/t/can-auth-basic-restrict-files-in-certain-folder/185908 "2010-03-29T07:41:48Z")

</div>

Hi, all I have some problem with my nginx I just could not restrict files in certain floder, as follows, i put the settings to nginx.conf location ~ ^/restrict/ { auth\_basic "STATISTIC"; auth\_basic\_us…

---

## [Client ip address using proxy\_pass and issues](https://www.ruby-forum.com/t/client-ip-address-using-proxy-pass-and-issues/185906)

<div class="topic-metadata">

**Author:** [@kevin](https://www.ruby-forum.com/u/kevin)\
**Replies:** 1\
**Last updated:** [March 29, 2010, 6:52am UTC](https://www.ruby-forum.com/t/client-ip-address-using-proxy-pass-and-issues/185906 "2010-03-29T06:52:38Z")

</div>

i am trying to move from nginx-\>fastcgi to nginx-\>apache-\>fastcgi this how i have configured proxy\_pass to my apache running on 2080. my app gets the client ip address as 127.0.0.1. how to make it see the correct real…

---

## [Problems getting NginX to cache](https://www.ruby-forum.com/t/problems-getting-nginx-to-cache/185856)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 2\
**Last updated:** [March 28, 2010, 1:33am UTC](https://www.ruby-forum.com/t/problems-getting-nginx-to-cache/185856 "2010-03-28T01:33:46Z")

</div>

Folks, I’ve been trying to setup NginX as a frontend cache for a webserver. This is rather challenging, as the documentation is a little flakey but it does look like it should be fairly straight forward. The reverse …

---

## [Dynamic content, fastcgi, server stop reponse!](https://www.ruby-forum.com/t/dynamic-content-fastcgi-server-stop-reponse/185813)

<div class="topic-metadata">

**Author:** [@bvc100x](https://www.ruby-forum.com/u/bvc100x)\
**Replies:** 10\
**Last updated:** [March 27, 2010, 9:00pm UTC](https://www.ruby-forum.com/t/dynamic-content-fastcgi-server-stop-reponse/185813 "2010-03-27T21:00:26Z")

</div>

I running 1000 php process to serve user download file content! i was start testing nginx a few weeks ago! i am also running 70+ servers serving php download content! I do not use nginx on any of my server right now! …

---

## [Dynamic Proxy Passing](https://www.ruby-forum.com/t/dynamic-proxy-passing/185766)

<div class="topic-metadata">

**Author:** [@Ensiferous](https://www.ruby-forum.com/u/Ensiferous)\
**Replies:** 2\
**Last updated:** [March 27, 2010, 11:02am UTC](https://www.ruby-forum.com/t/dynamic-proxy-passing/185766 "2010-03-27T11:02:55Z")

</div>

Hello, I have a situation where a server needs to proxy to a variable backend depending on the URI. I use x-accel-redirect to a URI like /files/serverX/fileY; I then need my server to proxy\_pass to serverX.domain.com…

---

## [CSV File](https://www.ruby-forum.com/t/csv-file/185608)

<div class="topic-metadata">

**Author:** [@thefix](https://www.ruby-forum.com/u/thefix)\
**Replies:** 1\
**Last updated:** [March 27, 2010, 9:59am UTC](https://www.ruby-forum.com/t/csv-file/185608 "2010-03-27T09:59:42Z")

</div>

Hello, I have nginx as reverse proxy to server with IIS. The server have files .cvs. When trying to download any file the server asks for my username / password but if you put the correct data always reapplies the us…

---

## [Lots of "No route to host" in Nginx error log](https://www.ruby-forum.com/t/lots-of-no-route-to-host-in-nginx-error-log/181136)

<div class="topic-metadata">

**Author:** [@xufengnju](https://www.ruby-forum.com/u/xufengnju)\
**Replies:** 7\
**Last updated:** [March 25, 2010, 8:06pm UTC](https://www.ruby-forum.com/t/lots-of-no-route-to-host-in-nginx-error-log/181136 "2010-03-25T20:06:30Z")

</div>

Hi All, We got lots of “No route to host” in Nginx error log. ’ 2010/01/05 22:28:01 \[error\] 29366#0: \*26063920 connect() failed (113: No route to host) while connecting to upstream, client: 60.217.152.205, server: t…

---

## [414 Request-URI Too Large](https://www.ruby-forum.com/t/414-request-uri-too-large/185739)

<div class="topic-metadata">

**Author:** [@kevin](https://www.ruby-forum.com/u/kevin)\
**Replies:** 2\
**Last updated:** [March 25, 2010, 5:43pm UTC](https://www.ruby-forum.com/t/414-request-uri-too-large/185739 "2010-03-25T17:43:00Z")

</div>

how to remove this error or fix it? thanks

---

## [Proxy\_cache\_key](https://www.ruby-forum.com/t/proxy-cache-key/184724)

<div class="topic-metadata">

**Author:** [@jhauser](https://www.ruby-forum.com/u/jhauser)\
**Replies:** 1\
**Last updated:** [March 25, 2010, 3:15pm UTC](https://www.ruby-forum.com/t/proxy-cache-key/184724 "2010-03-25T15:15:26Z")

</div>

Hello, I want to generate the file path of proxy cached data from the proxy\_cache\_key variable. Is there some pseudo-code to generate the same hash as nginx does internally? Or would it be possible to make the generat…

---

## [VirtualHost like in the Apache-PHP world](https://www.ruby-forum.com/t/virtualhost-like-in-the-apache-php-world/185704)

<div class="topic-metadata">

**Author:** [@Nagy\_TamSSSSs](https://www.ruby-forum.com/u/Nagy_TamSSSSs)\
**Replies:** 10\
**Last updated:** [March 25, 2010, 9:48am UTC](https://www.ruby-forum.com/t/virtualhost-like-in-the-apache-php-world/185704 "2010-03-25T09:48:11Z")

</div>

How to make virtual hosts in mongrel? ::how to serve example1.tld, example2.tld, … exampleN.tld's different ruby apps? thanks in advence frikazojd. \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ ÃšjdonsÃ¡g…

---

## [Nginx 0.8.34 segmentation fault](https://www.ruby-forum.com/t/nginx-0-8-34-segmentation-fault/184905)

<div class="topic-metadata">

**Author:** [@vnjug](https://www.ruby-forum.com/u/vnjug)\
**Replies:** 2\
**Last updated:** [March 25, 2010, 3:37am UTC](https://www.ruby-forum.com/t/nginx-0-8-34-segmentation-fault/184905 "2010-03-25T03:37:06Z")

</div>

Hi all, I tried to put the following directive into http {} proxy\_cache\_path /usr/local/nginx/proxy\_temp levels=1:2 keys\_zone=wlcstaticfiles:10m inactive=7d max\_size=200m; proxy\_temp\_path /usr/local/nginx/proxy\_te…

---

## [Nginx build against zlib-1.2.4 fails](https://www.ruby-forum.com/t/nginx-build-against-zlib-1-2-4-fails/185492)

<div class="topic-metadata">

**Author:** [@vys](https://www.ruby-forum.com/u/vys)\
**Replies:** 4\
**Last updated:** [March 24, 2010, 8:08pm UTC](https://www.ruby-forum.com/t/nginx-build-against-zlib-1-2-4-fails/185492 "2010-03-24T20:08:47Z")

</div>

Hi, zlib-1.2.4 has been released recently and it’s default Makefile has changed. It now only contains distclean target and no target named ‘clean’ before ./configure is run. Hence, nginx source build against zlib-1.2…

---

## [Resolver timeout error at moderate load](https://www.ruby-forum.com/t/resolver-timeout-error-at-moderate-load/185702)

<div class="topic-metadata">

**Author:** [@vys](https://www.ruby-forum.com/u/vys)\
**Replies:** 0\
**Last updated:** [March 24, 2010, 8:08pm UTC](https://www.ruby-forum.com/t/resolver-timeout-error-at-moderate-load/185702 "2010-03-24T20:08:12Z")

</div>

Hi, I’m testing performance of nginx as reverse proxy where it selects the upstream server by composing a dns name based on the incoming request’s host header. For example if the request is for username.domain.com/im…

---

## [Reverse proxy - several virtual host - same proxy pass ip - getting wrong content](https://www.ruby-forum.com/t/reverse-proxy-several-virtual-host-same-proxy-pass-ip-getting-wrong-content/185662)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [March 24, 2010, 12:06pm UTC](https://www.ruby-forum.com/t/reverse-proxy-several-virtual-host-same-proxy-pass-ip-getting-wrong-content/185662 "2010-03-24T12:06:26Z")

</div>

Hi I am using nginx as reverse proxy and i have several names pointing to reverse proxy and i am using proxy cache. My backends are basic LAMP servers and IBM Lotus Domino servers. Just wondering whats wrong as i cha…

---

## [Nginx mail proxy module - unexpected behavior re: authentication](https://www.ruby-forum.com/t/nginx-mail-proxy-module-unexpected-behavior-re-authentication/185660)

<div class="topic-metadata">

**Author:** [@Naresh\_V](https://www.ruby-forum.com/u/Naresh_V)\
**Replies:** 2\
**Last updated:** [March 24, 2010, 11:45am UTC](https://www.ruby-forum.com/t/nginx-mail-proxy-module-unexpected-behavior-re-authentication/185660 "2010-03-24T11:45:56Z")

</div>

Hi, I have a setup with me where I’m using nginx to talk to a redirector (embedded perl script) which redirects IMAP/POP communication to the appropriate IMAP/POP server based on a simple DB query that says “this use…

---

## [Fastcgi cache based on header](https://www.ruby-forum.com/t/fastcgi-cache-based-on-header/185619)

<div class="topic-metadata">

**Author:** [@Tomasz\_P](https://www.ruby-forum.com/u/Tomasz_P)\
**Replies:** 4\
**Last updated:** [March 24, 2010, 11:23am UTC](https://www.ruby-forum.com/t/fastcgi-cache-based-on-header/185619 "2010-03-24T11:23:06Z")

</div>

Hello, Is there by any chance a way make something like this? location / { try\_files $uri $uri/ @fallback; fastcgi\_pass app; fastcgi\_param SCRIPT\_FILENAME $document\_root/$fastcgi\_script\_name; include base/fastcgi\_p…

---

## [High "Load Average"](https://www.ruby-forum.com/t/high-load-average/185055)

<div class="topic-metadata">

**Author:** [@Sessna](https://www.ruby-forum.com/u/Sessna)\
**Replies:** 16\
**Last updated:** [March 24, 2010, 3:59am UTC](https://www.ruby-forum.com/t/high-load-average/185055 "2010-03-24T03:59:26Z")

</div>

I am using nginx + php-fpm (quad-core PC) + MySQL (on another PC) and facing an interesting issue: after some time nginx is running, system “load average” goes up (sometimes up to 30 and even more points) while CPU us…

---

## [List of exclusions for ngx\_http\_limit\_req\_module](https://www.ruby-forum.com/t/list-of-exclusions-for-ngx-http-limit-req-module/185597)

<div class="topic-metadata">

**Author:** [@Dmitri\_Minaev](https://www.ruby-forum.com/u/Dmitri_Minaev)\
**Replies:** 0\
**Last updated:** [March 23, 2010, 8:30am UTC](https://www.ruby-forum.com/t/list-of-exclusions-for-ngx-http-limit-req-module/185597 "2010-03-23T08:30:30Z")

</div>

Hi, Is there a way to specify a “whitelist” of IP addresses that do not fall under the limitations imposed by ngx\_http\_limit\_req\_module? Or maybe there’s some other way to limit the connections rate for a user/sessio…

---

## [Weird crash over night with nginx](https://www.ruby-forum.com/t/weird-crash-over-night-with-nginx/185490)

<div class="topic-metadata">

**Author:** [@sovok](https://www.ruby-forum.com/u/sovok)\
**Replies:** 6\
**Last updated:** [March 22, 2010, 5:00pm UTC](https://www.ruby-forum.com/t/weird-crash-over-night-with-nginx/185490 "2010-03-22T17:00:53Z")

</div>

I got some weird crash of nginx in the kernel logs. The problem is I cant find out why or what happened. It happened I suppose over night. This is from the kernel log: nginx\[31486\]: segfault at c4 ip 080aacb5 sp bfd79…

---

## [My Load Balancing configure is fail](https://www.ruby-forum.com/t/my-load-balancing-configure-is-fail/185384)

<div class="topic-metadata">

**Author:** [@ultrawind](https://www.ruby-forum.com/u/ultrawind)\
**Replies:** 2\
**Last updated:** [March 22, 2010, 4:40am UTC](https://www.ruby-forum.com/t/my-load-balancing-configure-is-fail/185384 "2010-03-22T04:40:26Z")

</div>

I config load balancing in my main server. But after I config it,it alway visit server 192.168.1.140, and display “140”. Why it do not go to http://192.168.1.124 in 50%? My main server 192.168.1.124 nginx.conf file: …

---

## [Fastcgi.conf file](https://www.ruby-forum.com/t/fastcgi-conf-file/184760)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [March 22, 2010, 1:24am UTC](https://www.ruby-forum.com/t/fastcgi-conf-file/184760 "2010-03-22T01:24:54Z")

</div>

There is a new fastcgi.conf seems better than the old fastcgi\_params file. Why do nginx.conf NOT include the new fastcgi.conf instead of fastcgi\_params file? – Ren Xiaolei

---

## [What's difference between worker\_connections and worker\_rlimit\_nofile](https://www.ruby-forum.com/t/whats-difference-between-worker-connections-and-worker-rlimit-nofile/185488)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 22, 2010, 1:24am UTC](https://www.ruby-forum.com/t/whats-difference-between-worker-connections-and-worker-rlimit-nofile/185488 "2010-03-22T01:24:19Z")

</div>

worker\_rlimit\_nofile for file descriptors and worker\_connections for network connections? If I am right, worker\_rlimit\_nofile must be larger than worker\_connections. And, what’s the relationship between \`ulimit -n’ a…

---

## [Nginx build ./configure options](https://www.ruby-forum.com/t/nginx-build-configure-options/185503)

<div class="topic-metadata">

**Author:** [@vys](https://www.ruby-forum.com/u/vys)\
**Replies:** 0\
**Last updated:** [March 21, 2010, 8:22pm UTC](https://www.ruby-forum.com/t/nginx-build-configure-options/185503 "2010-03-21T20:22:18Z")

</div>

Hi, I want to get a highly optimized and hardened build of nginx using gcc for running on Linux 2.6 kernel. What are the compile time options recommended for this purpose? Specifically what --with-cc-opt, ld-opt et…

---

## [Fair load balancer module: upstream\_fair](https://www.ruby-forum.com/t/fair-load-balancer-module-upstream-fair/185491)

<div class="topic-metadata">

**Author:** [@iamstef](https://www.ruby-forum.com/u/iamstef)\
**Replies:** 3\
**Last updated:** [March 21, 2010, 4:49pm UTC](https://www.ruby-forum.com/t/fair-load-balancer-module-upstream-fair/185491 "2010-03-21T16:49:48Z")

</div>

Hi, Im thinking in building for nginx the upstream\_fair module. I just want to make sure I got the instructions right. Download all needed bits for nginx, including the server source code Buuild the NGINX server aloi…

---

## [Connecting to localhost or 127.0.0.1 pain](https://www.ruby-forum.com/t/connecting-to-localhost-or-127-0-0-1-pain/185452)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 4\
**Last updated:** [March 21, 2010, 3:13pm UTC](https://www.ruby-forum.com/t/connecting-to-localhost-or-127-0-0-1-pain/185452 "2010-03-21T15:13:49Z")

</div>

Hi, I’m having terrible pains trying to connect a server application to another localhost server application. app1 connects to app2 using http://localhost but nginx doesn’t seem to understand the request. Should I a…

---

## [Nginx, fcgi+perl forking a new process per request](https://www.ruby-forum.com/t/nginx-fcgi-perl-forking-a-new-process-per-request/185164)

<div class="topic-metadata">

**Author:** [@iamstef](https://www.ruby-forum.com/u/iamstef)\
**Replies:** 12\
**Last updated:** [March 20, 2010, 7:15pm UTC](https://www.ruby-forum.com/t/nginx-fcgi-perl-forking-a-new-process-per-request/185164 "2010-03-20T19:15:05Z")

</div>

Hi, Im trying to experiment more regarding nginx + fcgi,perl. Im using the following configuration: OS: Solaris 10 x86 Perl CGI support: nginx-fcgi-0.4.3 worker\_processes 1; location ~ ^/cgi-bin/.\*\\.cgi$ { …

---

## [How much is the HTTPS overhead](https://www.ruby-forum.com/t/how-much-is-the-https-overhead/185463)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 4\
**Last updated:** [March 20, 2010, 6:42pm UTC](https://www.ruby-forum.com/t/how-much-is-the-https-overhead/185463 "2010-03-20T18:42:16Z")

</div>

Hi, I am running a RoR application with the signup/login page protected by https. It doesn’t look like it, but that’s super painful to maintain. So I was considering to entirely protect my application so that the RoR …

---

## [Help with NGINX config for Magento](https://www.ruby-forum.com/t/help-with-nginx-config-for-magento/185446)

<div class="topic-metadata">

**Author:** [@hbuckler](https://www.ruby-forum.com/u/hbuckler)\
**Replies:** 3\
**Last updated:** [March 20, 2010, 4:01pm UTC](https://www.ruby-forum.com/t/help-with-nginx-config-for-magento/185446 "2010-03-20T16:01:52Z")

</div>

Hi, I have seen a similar situation here but the solution didn’t work for me. I am getting a ‘NO INPUT FILE SPECIFIED’ and my permanent redirect from non-www to www doesn’t seem to work. Here is my conf file at /etc/…

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

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