# Server

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

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

---

## [FIN/ACK closes upstream connection for HTTP, but not for HTTPS](https://www.ruby-forum.com/t/fin-ack-closes-upstream-connection-for-http-but-not-for-https/203657)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [February 24, 2011, 3:16pm UTC](https://www.ruby-forum.com/t/fin-ack-closes-upstream-connection-for-http-but-not-for-https/203657 "2011-02-24T15:16:13Z")

</div>

I’m running nginx as a reverse proxy to do SSL and load balancing. The upstream server behind nginx needs to know when the client closes the connection. If I turn ssl off, the connection looks like: client connects …

---

## [Small userid module change](https://www.ruby-forum.com/t/small-userid-module-change/203652)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [February 24, 2011, 1:39pm UTC](https://www.ruby-forum.com/t/small-userid-module-change/203652 "2011-02-24T13:39:30Z")

</div>

Hello list! I wanted to use my nginx logs to power click track analysis like http://statviz.sourceforge.net/ for example, and therefore I used the userid module. I realized quickly that it either sets $uid\_set or $ui…

---

## [Nginx ignores proxy\_ignore\_headers](https://www.ruby-forum.com/t/nginx-ignores-proxy-ignore-headers/203556)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [February 24, 2011, 1:03pm UTC](https://www.ruby-forum.com/t/nginx-ignores-proxy-ignore-headers/203556 "2011-02-24T13:03:47Z")

</div>

I am running nginx 0.8.54 on CentOS 5.2, In nginx.conf I have set proxy\_ignore\_headers Expires Cache-Control X-Accel-Expires; but still I get bunch of misses because of expire date. For example: \*\*\*22/Feb/2011:21:31…

---

## [ERROR: Failed to build gem native extension](https://www.ruby-forum.com/t/error-failed-to-build-gem-native-extension/200022)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 2\
**Last updated:** [February 24, 2011, 12:43pm UTC](https://www.ruby-forum.com/t/error-failed-to-build-gem-native-extension/200022 "2011-02-24T12:43:06Z")

</div>

Hello, I am currently not able to instal mongrel, I run a Linux Ubuntu 10.04 system with Gems 1.3.7 when I do a “sudo gem install mongrel” I get this sequence of messages: $ sudo gem install mongrel Building native …

---

## [Strange behaviour with ip\_hash (client redirected to different nodes from upstream)](https://www.ruby-forum.com/t/strange-behaviour-with-ip-hash-client-redirected-to-different-nodes-from-upstream/200045)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 1\
**Last updated:** [February 24, 2011, 11:01am UTC](https://www.ruby-forum.com/t/strange-behaviour-with-ip-hash-client-redirected-to-different-nodes-from-upstream/200045 "2011-02-24T11:01:08Z")

</div>

Today while debugging a strange issue with our PHP application, we have discovered, that some requests from client’s ip were propagated to different nodes from an upstream clausule, inspite of using ip\_hash algorithm …

---

## [Need to exclude file from server logs](https://www.ruby-forum.com/t/need-to-exclude-file-from-server-logs/203540)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [February 22, 2011, 9:08pm UTC](https://www.ruby-forum.com/t/need-to-exclude-file-from-server-logs/203540 "2011-02-22T21:08:57Z")

</div>

Dont know if this is even possible but I have a healthcheck file that is checked by a load balancer every 30 seconds. However, I really do not want the webserver to be logging this. Is there some way to configure th…

---

## [Help with PHP arguments](https://www.ruby-forum.com/t/help-with-php-arguments/203546)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [February 22, 2011, 6:10pm UTC](https://www.ruby-forum.com/t/help-with-php-arguments/203546 "2011-02-22T18:10:06Z")

</div>

Hello, I am having a real issue in getting my head around how to identify in the location when URL arguments are being passed on PHP requests. If I go to the URL https://www.somedomain.com it works, if I go to somedo…

---

## [What's the substitute for the Apache's ScriptAlias](https://www.ruby-forum.com/t/whats-the-substitute-for-the-apaches-scriptalias/203530)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [February 22, 2011, 10:53am UTC](https://www.ruby-forum.com/t/whats-the-substitute-for-the-apaches-scriptalias/203530 "2011-02-22T10:53:04Z")

</div>

For example: ScriptAlias /cgi-bin/ “/home1/irteam/gaga/cgi-bin/” I haven’t found the related directive to the “ScriptAlias” in Nginx. Anyone can help me? Thanks Posted at Nginx Forum:

---

## [Does url resolve support ipv6?](https://www.ruby-forum.com/t/does-url-resolve-support-ipv6/203478)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [February 22, 2011, 6:14am UTC](https://www.ruby-forum.com/t/does-url-resolve-support-ipv6/203478 "2011-02-22T06:14:28Z")

</div>

I have several upstream servers, which are configured like this: upstream backend { ip\_hash; server backend1.example.com; server backend2.example.com; server backend3.example.com down; server backend4.exam…

---

## [SlowFS Cache or Proxy\_Cache for GridFS](https://www.ruby-forum.com/t/slowfs-cache-or-proxy-cache-for-gridfs/203500)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [February 21, 2011, 6:38pm UTC](https://www.ruby-forum.com/t/slowfs-cache-or-proxy-cache-for-gridfs/203500 "2011-02-21T18:38:26Z")

</div>

Hello, checking SlowFS looks like a good solution for caching Files/Images stored by GridFS (MongoDB). But my config saves no file in my “fastcache” dir: location / { gridfs test field=filename type=str…

---

## [Nginx-0.9.5](https://www.ruby-forum.com/t/nginx-0-9-5/203480)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [February 21, 2011, 10:52am UTC](https://www.ruby-forum.com/t/nginx-0-9-5/203480 "2011-02-21T10:52:09Z")

</div>

Changes with nginx 0.9.5 21 Feb 2011 \*) Change: now nginx uses a default listen backlog value -1 on Linux. Thanks to Andrei Nigmatulin. \*) Feature: the "utf8" parameter of…

---

## [Please convert this .htaccess to NGINX Rewrite](https://www.ruby-forum.com/t/please-convert-this-htaccess-to-nginx-rewrite/203376)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [February 20, 2011, 2:46pm UTC](https://www.ruby-forum.com/t/please-convert-this-htaccess-to-nginx-rewrite/203376 "2011-02-20T14:46:42Z")

</div>

RewriteEngine Off could somebody convert this .htaccess to NGINX rewrite,?? Header set Cache-Control “max-age=29030400” ExpiresActive On ExpiresDefault A604800 ExpiresByType text/css A604800 ExpiresByType image/gif…

---

## [NGINX Caching](https://www.ruby-forum.com/t/nginx-caching/187033)

<div class="topic-metadata">

**Author:** [@cls](https://www.ruby-forum.com/u/cls)\
**Replies:** 13\
**Last updated:** [February 20, 2011, 12:40am UTC](https://www.ruby-forum.com/t/nginx-caching/187033 "2011-02-20T00:40:37Z")

</div>

Hello I’m looking for a web server to serve as a front end reverse proxy for a web application built on mod\_perl Currently I’m using apache and mod\_proxy, but I’m not happy with mod\_proxy’s implementation because it …

---

## [Strange Port tracked](https://www.ruby-forum.com/t/strange-port-tracked/203423)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [February 19, 2011, 5:11pm UTC](https://www.ruby-forum.com/t/strange-port-tracked/203423 "2011-02-19T17:11:46Z")

</div>

hi, It’s quite new for me to use nginx as the webserver, nginx 0.7.65 + php /fpm on freebsd, which was installed on Apr 28th, 2010. I configured the server to listen on Port 80 as seen below. server { listen …

---

## [How nginx's "location if" works (Was Re: Setting cache parameters via if directives)](https://www.ruby-forum.com/t/how-nginxs-location-if-works-was-re-setting-cache-parameters-via-if-directives/203148)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 13\
**Last updated:** [February 19, 2011, 11:43am UTC](https://www.ruby-forum.com/t/how-nginxs-location-if-works-was-re-setting-cache-parameters-via-if-directives/203148 "2011-02-19T11:43:54Z")

</div>

On Tue, Feb 1, 2011 at 11:45 PM, Ryan M. removed\_email\_address@domain.invalid wrote: It does in fact work in production on nginx 0.7.6x. Below is my actual configuration (trimmed to the essentials and with a few subs…

---

## [Expiration header not being set?](https://www.ruby-forum.com/t/expiration-header-not-being-set/203392)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [February 19, 2011, 12:52am UTC](https://www.ruby-forum.com/t/expiration-header-not-being-set/203392 "2011-02-19T00:52:05Z")

</div>

The location snippet below works except the expiration header is not being set. The request is made using this kind of URL: /assets/abcdef/js/my.js If the JS file is not found in memcached, it gets redirected to st…

---

## [Client body buffering with FastCGI](https://www.ruby-forum.com/t/client-body-buffering-with-fastcgi/203308)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 12\
**Last updated:** [February 18, 2011, 11:41pm UTC](https://www.ruby-forum.com/t/client-body-buffering-with-fastcgi/203308 "2011-02-18T23:41:27Z")

</div>

Hello all, I’m trying to configure AjaXplorer, a PHP/Ajax file manager, to work behind nginx 0.8.54 on FreeBSD 7.3. The problem I’m running into is the inability to upload files more than ~64 MB in size. Ideally, I’d …

---

## [Nginx process high load cpu](https://www.ruby-forum.com/t/nginx-process-high-load-cpu/203202)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [February 18, 2011, 6:36pm UTC](https://www.ruby-forum.com/t/nginx-process-high-load-cpu/203202 "2011-02-18T18:36:22Z")

</div>

Hi i have a script called mysql, when 10 people comes site at the same time cpu load above 1.50, with apache 20-30 people no problem no more then 2 at the same time. i’ve tried to install APC via whm its been automat…

---

## [Is there a better way?](https://www.ruby-forum.com/t/is-there-a-better-way/203370)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [February 18, 2011, 4:05pm UTC](https://www.ruby-forum.com/t/is-there-a-better-way/203370 "2011-02-18T16:05:11Z")

</div>

location /assets/ { if ($uri ~ “^/assets/(\[a-zA-Z0-9\]+)(/.+)”) { #$1 is hash, $2 is uri set $memcached\_key “$1\_$2”; memcached\_pass localhost:11211; #fallback if not in memcached error\_page 404 =200 /li…

---

## [Nginx, GeoIP and nodejs setup for virtual hosts?](https://www.ruby-forum.com/t/nginx-geoip-and-nodejs-setup-for-virtual-hosts/203368)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [February 18, 2011, 3:49pm UTC](https://www.ruby-forum.com/t/nginx-geoip-and-nodejs-setup-for-virtual-hosts/203368 "2011-02-18T15:49:29Z")

</div>

hello, i have setup nodejs server to run on port 10080, running a demo ‘livestats’ application, i also have nginx running on port 80. the nodejs application simply listens for requests like http://nodejs.local:10080/…

---

## [Block access to every file in the site but index.htm](https://www.ruby-forum.com/t/block-access-to-every-file-in-the-site-but-index-htm/203342)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [February 18, 2011, 12:41pm UTC](https://www.ruby-forum.com/t/block-access-to-every-file-in-the-site-but-index-htm/203342 "2011-02-18T12:41:07Z")

</div>

I have a site with just one file: index.htm witch have some ajax linked to php files. I’d like to make thouse php files only accessable via ajax (post and get) coming from this index file and block access to all files …

---

## [HEAD request breaks fastxgi\_cache](https://www.ruby-forum.com/t/head-request-breaks-fastxgi-cache/203347)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [February 18, 2011, 10:48am UTC](https://www.ruby-forum.com/t/head-request-breaks-fastxgi-cache/203347 "2011-02-18T10:48:35Z")

</div>

I have registered with Uptime Robot. You can have it monitor a URL. It does this by sending a HEAD request every 5 to 10 minutes and checking for an OK response. This request triggers the fastcgi cache with an empty c…

---

## [Complie Module Error: nginx-upload-module](https://www.ruby-forum.com/t/complie-module-error-nginx-upload-module/203324)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [February 18, 2011, 7:59am UTC](https://www.ruby-forum.com/t/complie-module-error-nginx-upload-module/203324 "2011-02-18T07:59:26Z")

</div>

Hello, try to build the current nginx-upload-module, current version gives me the following errors: /build/nginx/module/nginx-upload-module/ngx\_http\_upload\_module.c: In function ângx\_http\_upload\_merge\_loc\_confâ: /bu…

---

## [Nginx IMAP/POP3 Proxy Connection Pooling](https://www.ruby-forum.com/t/nginx-imap-pop3-proxy-connection-pooling/203318)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [February 17, 2011, 7:50pm UTC](https://www.ruby-forum.com/t/nginx-imap-pop3-proxy-connection-pooling/203318 "2011-02-17T19:50:06Z")

</div>

We’re going to be using nginx to do imap and pop3 proxying. As some of you know, we are the the mercy of the mail client as to the number of connections that we will see from a user’s client. In extreme cases, if a …

---

## [Re: Complie Module Error: nginx-upload-module](https://www.ruby-forum.com/t/re-complie-module-error-nginx-upload-module/203325)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [February 17, 2011, 7:21pm UTC](https://www.ruby-forum.com/t/re-complie-module-error-nginx-upload-module/203325 "2011-02-17T19:21:19Z")

</div>

If by “current” you mean “master” branch from GitHub, then you’re wrong. Try using “2.2” branch :wink: Thats it :slight\_smile: Thanks so much Piotr S… – Schon gehört? GMX hat einen genialen Phishing-Filter in die …

---

## [I'm using nginx + php-fpm, but there is abnormal load on /tmp when no files are noted in /tmp at all](https://www.ruby-forum.com/t/im-using-nginx-php-fpm-but-there-is-abnormal-load-on-tmp-when-no-files-are-noted-in-tmp-at-all/203314)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [February 17, 2011, 5:19pm UTC](https://www.ruby-forum.com/t/im-using-nginx-php-fpm-but-there-is-abnormal-load-on-tmp-when-no-files-are-noted-in-tmp-at-all/203314 "2011-02-17T17:19:37Z")

</div>

I’m using CentOS release 5.5 (Final) nginx-0.9.3 remi yum rpms for php-fpm, php, and php-apc My php-fpm setting are near default except for spawn child numbers. The server is used for no other purpose other than nigi…

---

## [Remove www from the url](https://www.ruby-forum.com/t/remove-www-from-the-url/203305)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 12\
**Last updated:** [February 17, 2011, 4:35pm UTC](https://www.ruby-forum.com/t/remove-www-from-the-url/203305 "2011-02-17T16:35:45Z")

</div>

Hello everyone, I used to use the following trick to cut the initial www. from the address so that www.mysite.com would redirect to mysite.com: server { server\_name mysite.com www.mysite.com; if ($host ~\* www…

---

## [Choose upstream based in a cookie](https://www.ruby-forum.com/t/choose-upstream-based-in-a-cookie/202480)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [February 17, 2011, 4:25pm UTC](https://www.ruby-forum.com/t/choose-upstream-based-in-a-cookie/202480 "2011-02-17T16:25:05Z")

</div>

Hello, I was reading this setup: http://forum.nginx.org/read.php?11,1259 and it does what I want, but is this the way to go or there is a better way? Ame say we should avoid if else? Thanks Posted at Nginx Forum:

---

## [Wether there is a bug to parse ipv6 url or not?](https://www.ruby-forum.com/t/wether-there-is-a-bug-to-parse-ipv6-url-or-not/203288)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [February 17, 2011, 4:12pm UTC](https://www.ruby-forum.com/t/wether-there-is-a-bug-to-parse-ipv6-url-or-not/203288 "2011-02-17T16:12:32Z")

</div>

I’m reading the nginx0.9.1 source code. now I find a bug when I read the “ngx\_parse\_inet6\_url” function at 914 line in ngx\_inet.c. the code don’t correctly get the length of port when parsing the url. for example: t…

---

## [REDIS2 Addon, Query LRANGE Support?](https://www.ruby-forum.com/t/redis2-addon-query-lrange-support/203269)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [February 16, 2011, 8:42pm UTC](https://www.ruby-forum.com/t/redis2-addon-query-lrange-support/203269 "2011-02-16T20:42:11Z")

</div>

Hello, is it possible to query a LRANGE request with the redis2 addon? I try this: location /redis { set\_unescape\_uri $query $arg\_query; redis2\_raw\_query $query; redis2\_pass 127.0.0.1:6379; } locati…

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

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