# Server

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

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

---

## [Re: Confirmation of AIO](https://www.ruby-forum.com/t/re-confirmation-of-aio/213348)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [October 31, 2011, 2:29am UTC](https://www.ruby-forum.com/t/re-confirmation-of-aio/213348 "2011-10-31T02:29:14Z")

</div>

How would you go about determining whether or not the benefits are there? What metrics or quantitative analysis can you do to determine whether or not to use it?

---

## [NFS 0-byte problem](https://www.ruby-forum.com/t/nfs-0-byte-problem/213290)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 11\
**Last updated:** [October 31, 2011, 1:48am UTC](https://www.ruby-forum.com/t/nfs-0-byte-problem/213290 "2011-10-31T01:48:32Z")

</div>

Hello all , We’re using nginx 1.1.6 ver. 5 server connected NetApp storage via NFS . (/var/www ) Sometimes 1 or 2 server return cache size 0-byte and don’t answer http request. Other 3 server working well . If i res…

---

## [Re: Confirmation of AIO](https://www.ruby-forum.com/t/re-confirmation-of-aio/213329)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [October 31, 2011, 1:41am UTC](https://www.ruby-forum.com/t/re-confirmation-of-aio/213329 "2011-10-31T01:41:08Z")

</div>

I read that you don’t get the file cache, so under what specific circumstances in linux would it be beneficial to use aio (if any)?

---

## [Question about upstream keepalive + fastcgi + gzip](https://www.ruby-forum.com/t/question-about-upstream-keepalive-fastcgi-gzip/213331)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [October 30, 2011, 7:39pm UTC](https://www.ruby-forum.com/t/question-about-upstream-keepalive-fastcgi-gzip/213331 "2011-10-30T19:39:50Z")

</div>

Hi, With the keepalive upstream / fastcgi patch nginx is now capable of sending out chunked transfers for content received on fastcgi interface. Is there anyway to get something like apache’s flushpackets functional…

---

## [Disable access by IP and unknown hosts](https://www.ruby-forum.com/t/disable-access-by-ip-and-unknown-hosts/188393)

<div class="topic-metadata">

**Author:** [@leonardocg](https://www.ruby-forum.com/u/leonardocg)\
**Replies:** 8\
**Last updated:** [October 30, 2011, 6:23pm UTC](https://www.ruby-forum.com/t/disable-access-by-ip-and-unknown-hosts/188393 "2011-10-30T18:23:09Z")

</div>

Hi. How can I disable access by IP to my server and by hosts not defined in server\_name? I only have www.domain.com on server\_name but people can still access the site via mail.domain.com or by the IP address. Thank…

---

## [Apply Changeset 4207 (Clear old Location Header) to v1.0.8?](https://www.ruby-forum.com/t/apply-changeset-4207-clear-old-location-header-to-v1-0-8/213323)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [October 30, 2011, 9:29am UTC](https://www.ruby-forum.com/t/apply-changeset-4207-clear-old-location-header-to-v1-0-8/213323 "2011-10-30T09:29:33Z")

</div>

Hello! I got the diff for changeset 4207 from Changeset 4207:4fc91bae6f83 – nginx and wondering if this can be applied to 1.0.8 for the same end. Thanks

---

## [Confirmation of AIO](https://www.ruby-forum.com/t/confirmation-of-aio/213099)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [October 30, 2011, 4:43am UTC](https://www.ruby-forum.com/t/confirmation-of-aio/213099 "2011-10-30T04:43:25Z")

</div>

Hi All, I’m trying to understand the advantages of AIO and how using it with Nginx can improve performance. I’ve compiled Nginx from source with the AIO option. I’ve enabled AIO in my Nginx configuration. How can I…

---

## [Http\_mp4\_module broken in v1.0.8?](https://www.ruby-forum.com/t/http-mp4-module-broken-in-v1-0-8/213309)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [October 30, 2011, 2:04am UTC](https://www.ruby-forum.com/t/http-mp4-module-broken-in-v1-0-8/213309 "2011-10-30T02:04:04Z")

</div>

Hello list, the new mp4 module (–with-http\_mp4\_module) doesn’t work for me at all in v1.0.8 (JWPlayer just stalls and keeps buffering after seeking), but it works great with nginx v1.1.6. Same configuration, same mp4 …

---

## [High Load mysql server](https://www.ruby-forum.com/t/high-load-mysql-server/213274)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [October 29, 2011, 8:04pm UTC](https://www.ruby-forum.com/t/high-load-mysql-server/213274 "2011-10-29T20:04:03Z")

</div>

Hello brothers, uncles all the master …:slight\_smile: Please help all of you. I was again in trouble ya its very high cpu load, but the beginning does not problematic, it is good to use nginx now … uh … keep up the cp…

---

## [Re: Confirmation of AIO](https://www.ruby-forum.com/t/re-confirmation-of-aio/213122)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [October 29, 2011, 12:27am UTC](https://www.ruby-forum.com/t/re-confirmation-of-aio/213122 "2011-10-29T00:27:03Z")

</div>

CentOS

---

## [Nginx not logging access](https://www.ruby-forum.com/t/nginx-not-logging-access/213280)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [October 28, 2011, 10:15pm UTC](https://www.ruby-forum.com/t/nginx-not-logging-access/213280 "2011-10-28T22:15:01Z")

</div>

It does seem to be logging some access (on my local network and then looping back in from my router’s IP), but I’m not seeing access from someone external to my house. I can see that a connection exists in netstat, I…

---

## [Odd behavior from ndk.set\_var.set\_quote\_sql\_str](https://www.ruby-forum.com/t/odd-behavior-from-ndk-set-var-set-quote-sql-str/213220)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [October 28, 2011, 5:20pm UTC](https://www.ruby-forum.com/t/odd-behavior-from-ndk-set-var-set-quote-sql-str/213220 "2011-10-28T17:20:28Z")

</div>

ndk.set\_var.set\_quote\_sql\_str sometimes treats the variable supplied as a param as if it were an empty string. the following config: location /luaset { content\_by\_lua " local version = '2011.10.13+0000' --ng…

---

## [Nginx for cs-cart](https://www.ruby-forum.com/t/nginx-for-cs-cart/212834)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [October 28, 2011, 4:56pm UTC](https://www.ruby-forum.com/t/nginx-for-cs-cart/212834 "2011-10-28T16:56:55Z")

</div>

this is for cs-cart RewriteBase / RewriteCond %{REQUEST\_FILENAME} !-f RewriteCond %{REQUEST\_FILENAME} !-d RewriteRule . index.php?sef\_rewrite=1 \[L,QSA\] i know one rule only try\_files $uri $uri/ /index.php?sef\_rewri…

---

## [Strange log entries (upstream time/request\_time)](https://www.ruby-forum.com/t/strange-log-entries-upstream-time-request-time/213243)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [October 28, 2011, 2:39pm UTC](https://www.ruby-forum.com/t/strange-log-entries-upstream-time-request-time/213243 "2011-10-28T14:39:35Z")

</div>

Hi, I’m running a simple nginx-\>memcache-\>backend architecture, and I’m currently facing some backend problems. While debugging the situation I’ve run on some strange log entries which look like nginx was incorrectl…

---

## [Proposed Patch - url encoding all upper case](https://www.ruby-forum.com/t/proposed-patch-url-encoding-all-upper-case/167730)

<div class="topic-metadata">

**Author:** [@bdmcnitt](https://www.ruby-forum.com/u/bdmcnitt)\
**Replies:** 3\
**Last updated:** [October 28, 2011, 2:30pm UTC](https://www.ruby-forum.com/t/proposed-patch-url-encoding-all-upper-case/167730 "2011-10-28T14:30:57Z")

</div>

I’d like to propose that URI encoding be done using upper case characters instead of lower case characters. Both seem to be acceptable; I’m only requesting this since most of the other libraries that we use that do UR…

---

## [Questions about stub status numbers](https://www.ruby-forum.com/t/questions-about-stub-status-numbers/213252)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [October 28, 2011, 12:02pm UTC](https://www.ruby-forum.com/t/questions-about-stub-status-numbers/213252 "2011-10-28T12:02:32Z")

</div>

Below is a snapshot of what the stub status returns: Active connections: 2617 server accepts handled requests 15883769 15883769 52195337 Reading: 96 Writing: 56 Waiting: 2465 Is the fact that we have 2K+ processes wai…

---

## [Nginx support multithread](https://www.ruby-forum.com/t/nginx-support-multithread/213214)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [October 28, 2011, 8:26am UTC](https://www.ruby-forum.com/t/nginx-support-multithread/213214 "2011-10-28T08:26:36Z")

</div>

I saw multithread support in the source code, but why multithread is not supported in current version? And is any one know whether and when multithread will be supported? Posted at Nginx Forum:

---

## [Add variable in module, change value in config](https://www.ruby-forum.com/t/add-variable-in-module-change-value-in-config/213216)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [October 28, 2011, 7:16am UTC](https://www.ruby-forum.com/t/add-variable-in-module-change-value-in-config/213216 "2011-10-28T07:16:14Z")

</div>

I want to control behaviour of my module at runtime(body filtering phase), depending on different data (reg exp in headers, value of different variables…), so I decided to add variable in my module, and then set value…

---

## [Filtering backend set-cookie](https://www.ruby-forum.com/t/filtering-backend-set-cookie/213242)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [October 27, 2011, 2:19pm UTC](https://www.ruby-forum.com/t/filtering-backend-set-cookie/213242 "2011-10-27T14:19:49Z")

</div>

Hi, Is there a way to filter the cookies set by backend on a caching frontend? What I need is to be able to cache on frontend even if some cookies are set. If I do proxy\_ignore\_headers: Set-Cookie than all cookies w…

---

## [Response with error code](https://www.ruby-forum.com/t/response-with-error-code/213234)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [October 27, 2011, 10:28am UTC](https://www.ruby-forum.com/t/response-with-error-code/213234 "2011-10-27T10:28:17Z")

</div>

Hi, all. I need a help in the following question. I send a request to the nginx server and I need to support only 1.1 version of the http protocol. If version is differ from “1.1”, the error code should be sent in th…

---

## [Nginx and thttpd + cgi, remote\_addr = 127.0.0.1](https://www.ruby-forum.com/t/nginx-and-thttpd-cgi-remote-addr-127-0-0-1/213186)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 10\
**Last updated:** [October 26, 2011, 5:51pm UTC](https://www.ruby-forum.com/t/nginx-and-thttpd-cgi-remote-addr-127-0-0-1/213186 "2011-10-26T17:51:41Z")

</div>

Hello, i have an issue with getting users’ real IP. I am using nginx as frontend with thttpd as backend. I’ve added such options to my default server in nginx config: location ~ .cgi|pl$ { proxy\_pass http://127.0.…

---

## [An upstream response is buffered to a temporary file](https://www.ruby-forum.com/t/an-upstream-response-is-buffered-to-a-temporary-file/213061)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [October 26, 2011, 7:48am UTC](https://www.ruby-forum.com/t/an-upstream-response-is-buffered-to-a-temporary-file/213061 "2011-10-26T07:48:19Z")

</div>

What settings / parameters can be tweaked to increase the amount of buffers available as to not go to a temporary file? We are seeing many of these: 2011/10/21 14:01:24 \[warn\] 24547#0: \*2408454 an upstream response is …

---

## [New denial of service tool knocks out encrypting servers](https://www.ruby-forum.com/t/new-denial-of-service-tool-knocks-out-encrypting-servers/213195)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [October 26, 2011, 7:38am UTC](https://www.ruby-forum.com/t/new-denial-of-service-tool-knocks-out-encrypting-servers/213195 "2011-10-26T07:38:27Z")

</div>

I link the article to make sure everyone see’s it; but also to frame a question. The “Fix” seems to be to simply disable SSL-Renegotiation so that its not hammered over and over. The question: How do you disable SSL…

---

## [Can nginx calculate the content-length header for fastcgi proxied requests](https://www.ruby-forum.com/t/can-nginx-calculate-the-content-length-header-for-fastcgi-proxied-requests/213185)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [October 25, 2011, 11:29pm UTC](https://www.ruby-forum.com/t/can-nginx-calculate-the-content-length-header-for-fastcgi-proxied-requests/213185 "2011-10-25T23:29:54Z")

</div>

i’m not sure whether this question even makes sense. i don’t know whether nginx is buffering responses that it receives from proxying requests to a fastcgi process or its streaming that back to the client. but i woul…

---

## [Rewrite don't work in a multilanguage MVC site](https://www.ruby-forum.com/t/rewrite-dont-work-in-a-multilanguage-mvc-site/213175)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [October 25, 2011, 10:23pm UTC](https://www.ruby-forum.com/t/rewrite-dont-work-in-a-multilanguage-mvc-site/213175 "2011-10-25T22:23:44Z")

</div>

Hi!Im trying to move from Apache to nginx (v1.1.6), but you know, rewrite newbie here… In my site when a user types http://site.com he’s redirected to http://site.com/en/, and all the other URLs are internally handled…

---

## [Nginx NAS serving large files](https://www.ruby-forum.com/t/nginx-nas-serving-large-files/213073)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 9\
**Last updated:** [October 25, 2011, 9:10pm UTC](https://www.ruby-forum.com/t/nginx-nas-serving-large-files/213073 "2011-10-25T21:10:05Z")

</div>

Hello Ladies and Gentlemen, We have a very frustrating problem with a NAS configuration that we recently set-up. After running a filesharing website on 8 servers for 1+ years we decided to switch to a NAS configuratio…

---

## [Confirm event model](https://www.ruby-forum.com/t/confirm-event-model/213131)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 9\
**Last updated:** [October 25, 2011, 3:55pm UTC](https://www.ruby-forum.com/t/confirm-event-model/213131 "2011-10-25T15:55:11Z")

</div>

Is there a way to confirm / see which event model Nginx is using? i.e. “select”, “epoll”, “kqueue”, etc.? Thanks

---

## [Re: Confirm event model](https://www.ruby-forum.com/t/re-confirm-event-model/213157)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [October 25, 2011, 2:21pm UTC](https://www.ruby-forum.com/t/re-confirm-event-model/213157 "2011-10-25T14:21:02Z")

</div>

Thanks Igor. Is epoll considered the best polling method if available?

---

## [Time To First Byte and proxy\_buffering](https://www.ruby-forum.com/t/time-to-first-byte-and-proxy-buffering/213137)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [October 25, 2011, 12:35pm UTC](https://www.ruby-forum.com/t/time-to-first-byte-and-proxy-buffering/213137 "2011-10-25T12:35:38Z")

</div>

Hi all - Does “proxy\_buffering on” (especially when it’ll definitely buffer to disk) imply that the client will not be sent the first part of the response until nginx has received and buffered the entire response fro…

---

## [Blank Adsense ads on certain pages](https://www.ruby-forum.com/t/blank-adsense-ads-on-certain-pages/213101)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [October 25, 2011, 2:29am UTC](https://www.ruby-forum.com/t/blank-adsense-ads-on-certain-pages/213101 "2011-10-25T02:29:37Z")

</div>

I have inserted my adsense code into my site in certain areas, and the issue is very strange: ads only randomly work on some pages, and others the ad block still ‘loads’, but nothing appears. Just a black box. When yo…

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

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