# Server

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

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

---

## [Serving executables over web](https://www.ruby-forum.com/t/serving-executables-over-web/152788)

<div class="topic-metadata">

**Author:** [@vanderkerkoff](https://www.ruby-forum.com/u/vanderkerkoff)\
**Replies:** 8\
**Last updated:** [November 7, 2008, 5:35pm UTC](https://www.ruby-forum.com/t/serving-executables-over-web/152788 "2008-11-07T17:35:07Z")

</div>

Hello everyone, I’ve got the following lines in my host.conf that I’m including into my main nginx.conf file location ~\* ^.+.(pdf|mpg|avi|mp3|swf|zip|tgz|gz|rar|bz2|doc|xls|exe| ppt|txt|tar|mid|midi|wav|rtf|mpeg|jpg|j…

---

## ["invalid parameter" on upstream servers (0.6.32)](https://www.ruby-forum.com/t/invalid-parameter-on-upstream-servers-0-6-32/152803)

<div class="topic-metadata">

**Author:** [@sudara](https://www.ruby-forum.com/u/sudara)\
**Replies:** 1\
**Last updated:** [November 7, 2008, 4:38pm UTC](https://www.ruby-forum.com/t/invalid-parameter-on-upstream-servers-0-6-32/152803 "2008-11-07T16:38:04Z")

</div>

Hi there! I would like to set max\_fails=x on one of my server upstreams. This is how it looks: upstream mongrel\_upstream { server 127.0.0.1:5000; server 127.0.0.1:5001; server 127.0.0.1:5002; } Whenever I add max…

---

## [Bandwidth limit with nginx](https://www.ruby-forum.com/t/bandwidth-limit-with-nginx/152797)

<div class="topic-metadata">

**Author:** [@sovok](https://www.ruby-forum.com/u/sovok)\
**Replies:** 0\
**Last updated:** [November 7, 2008, 3:07pm UTC](https://www.ruby-forum.com/t/bandwidth-limit-with-nginx/152797 "2008-11-07T15:07:15Z")

</div>

Hello, I am trying to build a small free hosting server and wanna do it with bandwidth limit. Does any one know if this is possible, also this would be need it monthly, like mod\_bwlimit in apache or something like tha…

---

## [413 Request Entity Too Large when uploading 1-2MB](https://www.ruby-forum.com/t/413-request-entity-too-large-when-uploading-1-2mb/152718)

<div class="topic-metadata">

**Author:** [@sovok](https://www.ruby-forum.com/u/sovok)\
**Replies:** 2\
**Last updated:** [November 6, 2008, 9:31pm UTC](https://www.ruby-forum.com/t/413-request-entity-too-large-when-uploading-1-2mb/152718 "2008-11-06T21:31:46Z")

</div>

Hello, Im using SquirrelMail, with nginx 0.6.32 and php-fpm. Im trying to send a mail with an attachement of 1 or 2 MB through SquirrelMail and nginx gives me 413 error: 413 Request Entity Too Large In php.ini there …

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/152684)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [November 6, 2008, 8:29pm UTC](https://www.ruby-forum.com/t/no-subject/152684 "2008-11-06T20:29:20Z")

</div>

Hi, I would like to use the upload module and the upload progress module at the same time. Unfortunately, the upload progress module can only work with proxy\_pass and fastcgi, however, not with upload\_pass. Is there…

---

## [Need SSL state to be visible behind a double nginx proxy](https://www.ruby-forum.com/t/need-ssl-state-to-be-visible-behind-a-double-nginx-proxy/152076)

<div class="topic-metadata">

**Author:** [@npenkov](https://www.ruby-forum.com/u/npenkov)\
**Replies:** 12\
**Last updated:** [November 6, 2008, 3:33pm UTC](https://www.ruby-forum.com/t/need-ssl-state-to-be-visible-behind-a-double-nginx-proxy/152076 "2008-11-06T15:33:06Z")

</div>

Hi, I have what I think is an obscure problem to which I cannot find a solution in the nginx docs. Here’s a summary of the problem: I have a content management system that I wrote (using Rails), and it hosts several…

---

## [20081106 - Script to spawn php5-cgi enabling Nginx to serve PHP code/pages](https://www.ruby-forum.com/t/20081106-script-to-spawn-php5-cgi-enabling-nginx-to-serve-php-code-pages/152688)

<div class="topic-metadata">

**Author:** [@larios](https://www.ruby-forum.com/u/larios)\
**Replies:** 2\
**Last updated:** [November 6, 2008, 3:27pm UTC](https://www.ruby-forum.com/t/20081106-script-to-spawn-php5-cgi-enabling-nginx-to-serve-php-code-pages/152688 "2008-11-06T15:27:14Z")

</div>

The php5-cgi (until 5.2.4) package does not include a script to automatically start it in external FASTCGI Mode (Daemon mode). As there is some confusion on the Internet on how to properly set PHP script execution in …

---

## [How to use fastcgi\_index?](https://www.ruby-forum.com/t/how-to-use-fastcgi-index/152671)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 3\
**Last updated:** [November 6, 2008, 2:15pm UTC](https://www.ruby-forum.com/t/how-to-use-fastcgi-index/152671 "2008-11-06T14:15:32Z")

</div>

Hi. In my nginx.conf (of nginx 0.6.31, part of Sun’s CoolStack 1.3.1), I have: location ~ \\.php$ { root /data/www; fastcgi\_pass 127.0.0.1:65505; fastcgi\_index index.php; …

---

## [20081106 - How to enable Nginx to serve PHP code/pages in UBUNTU](https://www.ruby-forum.com/t/20081106-how-to-enable-nginx-to-serve-php-code-pages-in-ubuntu/152690)

<div class="topic-metadata">

**Author:** [@larios](https://www.ruby-forum.com/u/larios)\
**Replies:** 0\
**Last updated:** [November 6, 2008, 1:52pm UTC](https://www.ruby-forum.com/t/20081106-how-to-enable-nginx-to-serve-php-code-pages-in-ubuntu/152690 "2008-11-06T13:52:03Z")

</div>

The php5-cgi (until 5.2.4) package does not include a script to automatically start it in external FASTCGI Mode (Daemon mode). As there is some confusion on the Internet on how to properly set PHP script execution in …

---

## [Script to spawn php5-cgi to enable Nginx to serve PHP code/pages](https://www.ruby-forum.com/t/script-to-spawn-php5-cgi-to-enable-nginx-to-serve-php-code-pages/152385)

<div class="topic-metadata">

**Author:** [@larios](https://www.ruby-forum.com/u/larios)\
**Replies:** 12\
**Last updated:** [November 6, 2008, 1:47pm UTC](https://www.ruby-forum.com/t/script-to-spawn-php5-cgi-to-enable-nginx-to-serve-php-code-pages/152385 "2008-11-06T13:47:56Z")

</div>

The php5-cgi (until 5.2.4) package does not include a script to automatically start it in external FASTCGI Mode (Daemon mode). As there is some confusion on the Internet on how to properly set PHP script execution in …

---

## [Problems getting case insensitive match to work](https://www.ruby-forum.com/t/problems-getting-case-insensitive-match-to-work/152682)

<div class="topic-metadata">

**Author:** [@Mario\_Gazzo](https://www.ruby-forum.com/u/Mario_Gazzo)\
**Replies:** 3\
**Last updated:** [November 6, 2008, 1:28pm UTC](https://www.ruby-forum.com/t/problems-getting-case-insensitive-match-to-work/152682 "2008-11-06T13:28:33Z")

</div>

I have for some reasons difficulties to get the following nginx setup to respond case insensitive to www.mydomain.dk/demo. It only responds to www.mydomain.dk/Demo. Shouldn’t “~\*” make the match case insensitive? The …

---

## [Connection reset by peer](https://www.ruby-forum.com/t/connection-reset-by-peer/152648)

<div class="topic-metadata">

**Author:** [@yodla](https://www.ruby-forum.com/u/yodla)\
**Replies:** 4\
**Last updated:** [November 6, 2008, 12:39pm UTC](https://www.ruby-forum.com/t/connection-reset-by-peer/152648 "2008-11-06T12:39:14Z")

</div>

Hello, I think problem is related to Safari engine browsers (Safari/Chrome) only. 2008/11/05 23:42:59 \[info\] 20405#0: \*5 client xxx closed keepalive connection (104: Connection reset by peer) 2008/11/05 23:43:18 \[in…

---

## [Re: bug report: SSI -\> signal 10 (nginx 0.7.10, Solaris 10)](https://www.ruby-forum.com/t/re-bug-report-ssi-signal-10-nginx-0-7-10-solaris-10/152667)

<div class="topic-metadata">

**Author:** [@Hannes\_Haug](https://www.ruby-forum.com/u/Hannes_Haug)\
**Replies:** 4\
**Last updated:** [November 6, 2008, 12:25pm UTC](https://www.ruby-forum.com/t/re-bug-report-ssi-signal-10-nginx-0-7-10-solaris-10/152667 "2008-11-06T12:25:45Z")

</div>

Yes Maxim, your patch fixes the problem. But there remains an issue: Errors on subrequests (e.g. 404) result in the inclusion of the error pages in the main page. I.e. in the body of the main page there starts a new …

---

## [Strange characters added by nginx?](https://www.ruby-forum.com/t/strange-characters-added-by-nginx/152486)

<div class="topic-metadata">

**Author:** [@RafaSSSSSZawadzki](https://www.ruby-forum.com/u/RafaSSSSSZawadzki)\
**Replies:** 4\
**Last updated:** [November 5, 2008, 11:07am UTC](https://www.ruby-forum.com/t/strange-characters-added-by-nginx/152486 "2008-11-05T11:07:33Z")

</div>

When i am trying to run my application via fastcig nginx adds some strange character, which are rendered by browser and destroy layout :wink: Anyway - two examples of the same response, one is done via nginx, the seco…

---

## [Nginx cache module has update to v 2.1](https://www.ruby-forum.com/t/nginx-cache-module-has-update-to-v-2-1/152570)

<div class="topic-metadata">

**Author:** [@pf\_shineyear](https://www.ruby-forum.com/u/pf_shineyear)\
**Replies:** 0\
**Last updated:** [November 5, 2008, 9:07am UTC](https://www.ruby-forum.com/t/nginx-cache-module-has-update-to-v-2-1/152570 "2008-11-05T09:07:00Z")

</div>

hi all the nginx cache module – ncache has update to v 2.1 please visit www.ncache.org to get it

---

## [Igor, why nginx not implement 'init\_master' hook in module development?](https://www.ruby-forum.com/t/igor-why-nginx-not-implement-init-master-hook-in-module-development/152554)

<div class="topic-metadata">

**Author:** [@Yingbo\_Qiu](https://www.ruby-forum.com/u/Yingbo_Qiu)\
**Replies:** 0\
**Last updated:** [November 5, 2008, 4:20am UTC](https://www.ruby-forum.com/t/igor-why-nginx-not-implement-init-master-hook-in-module-development/152554 "2008-11-05T04:20:25Z")

</div>

I want do sth in nginx module init phase. I feel lucky when I notice that there is a ‘init\_master’ in struct ngx\_module\_s, but I’m so disappointment now.

---

## [Bug report: SSI -\> signal 10 (nginx 0.7.10, Solaris 10)](https://www.ruby-forum.com/t/bug-report-ssi-signal-10-nginx-0-7-10-solaris-10/152523)

<div class="topic-metadata">

**Author:** [@Hannes\_Haug](https://www.ruby-forum.com/u/Hannes_Haug)\
**Replies:** 1\
**Last updated:** [November 4, 2008, 11:50pm UTC](https://www.ruby-forum.com/t/bug-report-ssi-signal-10-nginx-0-7-10-solaris-10/152523 "2008-11-04T23:50:06Z")

</div>

Hi all, a SSI bug in 0.7.19 but not in 0.6.32 results in “worker process NNNNN exited on signal 10 (core dumped)” if I have many include instructions in one file. 5 includes are ok, 6 not. See details below. Regards …

---

## [How to enable Nginx to serve PHP code/pages in Ubuntu](https://www.ruby-forum.com/t/how-to-enable-nginx-to-serve-php-code-pages-in-ubuntu/152397)

<div class="topic-metadata">

**Author:** [@larios](https://www.ruby-forum.com/u/larios)\
**Replies:** 13\
**Last updated:** [November 4, 2008, 9:52pm UTC](https://www.ruby-forum.com/t/how-to-enable-nginx-to-serve-php-code-pages-in-ubuntu/152397 "2008-11-04T21:52:37Z")

</div>

The php5-cgi (until 5.2.4) package does not include a script to automatically start it in external FASTCGI Mode (Daemon mode). As there is some confusion on the Internet on how to properly set PHP script execution in …

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/152476)

<div class="topic-metadata">

**Author:** [@Rajesh\_Dharmalingam](https://www.ruby-forum.com/u/Rajesh_Dharmalingam)\
**Replies:** 1\
**Last updated:** [November 4, 2008, 2:17pm UTC](https://www.ruby-forum.com/t/unsubscribe/152476 "2008-11-04T14:17:30Z")

</div>

Please unsubscribe from the mailing list. Please provide me a link if i can unsubscribe myself. P.S. I could not find unsubsribe option. Thanks.

---

## [UID problem with nginx](https://www.ruby-forum.com/t/uid-problem-with-nginx/152391)

<div class="topic-metadata">

**Author:** [@harish\_sri](https://www.ruby-forum.com/u/harish_sri)\
**Replies:** 0\
**Last updated:** [November 3, 2008, 1:34pm UTC](https://www.ruby-forum.com/t/uid-problem-with-nginx/152391 "2008-11-03T13:34:02Z")

</div>

Hi all, I have two issues with cookie logging: I want to know which is the best way to say this in nginx: If the user is new user log $uid\_set else log $uid\_got instead. I was previously having apache on my servers……

---

## [FastCGI response headers issue](https://www.ruby-forum.com/t/fastcgi-response-headers-issue/152324)

<div class="topic-metadata">

**Author:** [@Florian\_Schulze](https://www.ruby-forum.com/u/Florian_Schulze)\
**Replies:** 2\
**Last updated:** [November 3, 2008, 12:30pm UTC](https://www.ruby-forum.com/t/fastcgi-response-headers-issue/152324 "2008-11-03T12:30:00Z")

</div>

Hi! I’m using nginx 0.6.32 to serve a PHP application through FastCGI. For some reason nginx doesn’t seem to forward the Content-Type, Content-Length and Content-Encoding response headers. This causes javascript and …

---

## [Does the newer version of nginx support variable array?](https://www.ruby-forum.com/t/does-the-newer-version-of-nginx-support-variable-array/152356)

<div class="topic-metadata">

**Author:** [@Yu.Cheung](https://www.ruby-forum.com/u/Yu.Cheung)\
**Replies:** 0\
**Last updated:** [November 3, 2008, 4:20am UTC](https://www.ruby-forum.com/t/does-the-newer-version-of-nginx-support-variable-array/152356 "2008-11-03T04:20:33Z")

</div>

Hi All, can nginx op the variables like array. I mean whether i can define a variable array, such as $array, and op array\[0\], array\[1\]¡£¡£¡£, as op variable. I am using nginx£­0.6.32. and I need the variable array i…

---

## [Upload Module Compilation on 64-Bit Architecture](https://www.ruby-forum.com/t/upload-module-compilation-on-64-bit-architecture/152115)

<div class="topic-metadata">

**Author:** [@Brendan\_Schwartz](https://www.ruby-forum.com/u/Brendan_Schwartz)\
**Replies:** 2\
**Last updated:** [October 30, 2008, 3:17pm UTC](https://www.ruby-forum.com/t/upload-module-compilation-on-64-bit-architecture/152115 "2008-10-30T15:17:58Z")

</div>

Hello, I was unable to compile the latest version (2.0.7) of the Nginx upload module on a 64-bit system. I tried with both Nginx 0.6.32 and 0.7.19. I received a warning about a comparison of a signed and unsigned int …

---

## [How to make empty\_gif expire image immediately?](https://www.ruby-forum.com/t/how-to-make-empty-gif-expire-image-immediately/152103)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 4\
**Last updated:** [October 30, 2008, 6:18am UTC](https://www.ruby-forum.com/t/how-to-make-empty-gif-expire-image-immediately/152103 "2008-10-30T06:18:01Z")

</div>

Hi, I’m using empty\_gif to make a request to a log file for tracking purposes (as a beacon). How can I configure nginx so that the browser is instructed to expire the image immediate (or just to not cache it to begi…

---

## [Nginx + haproxy + mongrel](https://www.ruby-forum.com/t/nginx-haproxy-mongrel/151994)

<div class="topic-metadata">

**Author:** [@Asif\_A](https://www.ruby-forum.com/u/Asif_A)\
**Replies:** 2\
**Last updated:** [October 29, 2008, 10:59pm UTC](https://www.ruby-forum.com/t/nginx-haproxy-mongrel/151994 "2008-10-29T22:59:11Z")

</div>

Can anyone share a successful loadbalancing HAProxy script to be used along with nginx and mongrel? I have used some examples from the haproxy site but certain directives aren’t working as well as it was supposed to …

---

## [Conditional error logging](https://www.ruby-forum.com/t/conditional-error-logging/152029)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 0\
**Last updated:** [October 29, 2008, 10:16am UTC](https://www.ruby-forum.com/t/conditional-error-logging/152029 "2008-10-29T10:16:28Z")

</div>

Is there any way this could be implemented? Perhaps some way to say error\_log off; or error\_log /var/log/debug.log debug; but inside of specific server {} or location {} or even if {} blocks? sometimes I want to de…

---

## [Variable for the real port of a proxy?](https://www.ruby-forum.com/t/variable-for-the-real-port-of-a-proxy/151882)

<div class="topic-metadata">

**Author:** [@elucify](https://www.ruby-forum.com/u/elucify)\
**Replies:** 1\
**Last updated:** [October 29, 2008, 6:33am UTC](https://www.ruby-forum.com/t/variable-for-the-real-port-of-a-proxy/151882 "2008-10-29T06:33:23Z")

</div>

Hi, Is there any way to set a header that identifies the real port of the proxy that’s handing a request? That is, if I have a round-robin proxy-set, a request forwarded to the proxy at port 8000 will have the header…

---

## [Simple session persistence base on IP address?](https://www.ruby-forum.com/t/simple-session-persistence-base-on-ip-address/151980)

<div class="topic-metadata">

**Author:** [@gio](https://www.ruby-forum.com/u/gio)\
**Replies:** 6\
**Last updated:** [October 29, 2008, 1:35am UTC](https://www.ruby-forum.com/t/simple-session-persistence-base-on-ip-address/151980 "2008-10-29T01:35:09Z")

</div>

I’ve read that ppl use NginxHttpUpstreamRequestHashModule for session persistence. But I’m not sure how it works. Where can I get documention about it? Have any more simple way to do session persistence base on client…

---

## [Need help with global variable](https://www.ruby-forum.com/t/need-help-with-global-variable/152013)

<div class="topic-metadata">

**Author:** [@joviyach](https://www.ruby-forum.com/u/joviyach)\
**Replies:** 8\
**Last updated:** [October 29, 2008, 12:33am UTC](https://www.ruby-forum.com/t/need-help-with-global-variable/152013 "2008-10-29T00:33:46Z")

</div>

I am hosting a site that requires the following (according to the developer) for a script license verification" “global variable available from the server.” \_SERVER\[‘SERVER\_ADDR’\] The best that I can understand is t…

---

## [Sending mail with nginx](https://www.ruby-forum.com/t/sending-mail-with-nginx/152004)

<div class="topic-metadata">

**Author:** [@carpeliam](https://www.ruby-forum.com/u/carpeliam)\
**Replies:** 2\
**Last updated:** [October 28, 2008, 11:58pm UTC](https://www.ruby-forum.com/t/sending-mail-with-nginx/152004 "2008-10-28T23:58:04Z")

</div>

I’ve been using nginx to proxy to rails apps, and this has been quite successful (thanks). But now I need to host a client’s site which has a very simple mail contact form (previously written in coldfusion running on …

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

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