# Server

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

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

---

## [Nginx and sent cookies](https://www.ruby-forum.com/t/nginx-and-sent-cookies/190955)

<div class="topic-metadata">

**Author:** [@Tomas\_Zulberti](https://www.ruby-forum.com/u/Tomas_Zulberti)\
**Replies:** 0\
**Last updated:** [July 1, 2010, 4:07pm UTC](https://www.ruby-forum.com/t/nginx-and-sent-cookies/190955 "2010-07-01T16:07:06Z")

</div>

Hi. I have a doubt about logging the sent cookies. In the log\_format I have the following: ’ … $sent\_http\_set\_cookie …’ In the program I am setting 2 cookies, but in the log it only appears one of them: v=VALUE; D…

---

## [Empty GIF generator not actually empty](https://www.ruby-forum.com/t/empty-gif-generator-not-actually-empty/190938)

<div class="topic-metadata">

**Author:** [@Lorin\_Halpert](https://www.ruby-forum.com/u/Lorin_Halpert)\
**Replies:** 2\
**Last updated:** [July 1, 2010, 8:25am UTC](https://www.ruby-forum.com/t/empty-gif-generator-not-actually-empty/190938 "2010-07-01T08:25:13Z")

</div>

Using the built-in generator changes the color of the background color under Chrome, yet using my own blank doesn’t cause this. I’ve attached a “known good” blank created in Fireworks (same byte size) so it can repla…

---

## [I configured nginx with php-fpm/fastcgi but not receiving headers at PHP end](https://www.ruby-forum.com/t/i-configured-nginx-with-php-fpm-fastcgi-but-not-receiving-headers-at-php-end/190936)

<div class="topic-metadata">

**Author:** [@Ashvin\_Savani](https://www.ruby-forum.com/u/Ashvin_Savani)\
**Replies:** 0\
**Last updated:** [July 1, 2010, 6:59am UTC](https://www.ruby-forum.com/t/i-configured-nginx-with-php-fpm-fastcgi-but-not-receiving-headers-at-php-end/190936 "2010-07-01T06:59:46Z")

</div>

I am very new to nginx, Any hints? You can check the test page at http://74.86.84.197/t.php As you can see at bottom of this page there are no header related \_SERVER variables. Here is my domain config file: ======…

---

## [Proxy\_cache\_use\_stale](https://www.ruby-forum.com/t/proxy-cache-use-stale/190928)

<div class="topic-metadata">

**Author:** [@msony](https://www.ruby-forum.com/u/msony)\
**Replies:** 1\
**Last updated:** [July 1, 2010, 4:11am UTC](https://www.ruby-forum.com/t/proxy-cache-use-stale/190928 "2010-07-01T04:11:13Z")

</div>

If I understand this right if I use proxy\_cache\_use\_stale updating and If I have 1000 users trying to access expired cached information. It will only send one request to backend server to update the cache ? Posted a…

---

## [Mod\_gzip with php](https://www.ruby-forum.com/t/mod-gzip-with-php/190927)

<div class="topic-metadata">

**Author:** [@Roman\_V](https://www.ruby-forum.com/u/Roman_V)\
**Replies:** 0\
**Last updated:** [July 1, 2010, 12:35am UTC](https://www.ruby-forum.com/t/mod-gzip-with-php/190927 "2010-07-01T00:35:50Z")

</div>

Hello, I found strange behavior for php scripts. when server request is HEAD, I can see some garbage in response. HEAD /server.php HTTP/1.1 Host: www.rss2search.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.…

---

## [Proxy\_no\_cache issue](https://www.ruby-forum.com/t/proxy-no-cache-issue/190922)

<div class="topic-metadata">

**Author:** [@msony](https://www.ruby-forum.com/u/msony)\
**Replies:** 1\
**Last updated:** [June 30, 2010, 10:15pm UTC](https://www.ruby-forum.com/t/proxy-no-cache-issue/190922 "2010-06-30T22:15:21Z")

</div>

I understand you can use proxy\_no\_cache to update the cache, my setup is like this: proxy\_cache\_valid 200 302 20m; proxy\_cache\_valid 404 1m; proxy\_no\_cache $http\_my\_secret\_header; And I send the header like …

---

## [Setting headers for negative caching](https://www.ruby-forum.com/t/setting-headers-for-negative-caching/190819)

<div class="topic-metadata">

**Author:** [@bkirkbri](https://www.ruby-forum.com/u/bkirkbri)\
**Replies:** 4\
**Last updated:** [June 30, 2010, 7:14pm UTC](https://www.ruby-forum.com/t/setting-headers-for-negative-caching/190819 "2010-06-30T19:14:27Z")

</div>

Is it possible to set Cache-Control / Expires headers for 404 responses in Nginx? I’ve tried using an error\_page like this: location ^~ /x/ { error\_page 404 /not\_found.html; } location /not\_found.html { inte…

---

## [Streaming content generated on the fly with nginx](https://www.ruby-forum.com/t/streaming-content-generated-on-the-fly-with-nginx/190908)

<div class="topic-metadata">

**Author:** [@Olivier\_Gillet](https://www.ruby-forum.com/u/Olivier_Gillet)\
**Replies:** 0\
**Last updated:** [June 30, 2010, 3:07pm UTC](https://www.ruby-forum.com/t/streaming-content-generated-on-the-fly-with-nginx/190908 "2010-06-30T15:07:56Z")

</div>

Hi all, I’m working on a project for which I need to render on the fly and serve an “endless” mp3 stream (think of a webradio… in which the audio content is generated automatically). The use case would be: an HTTP GE…

---

## [Nginx rewrite rules conditional once again](https://www.ruby-forum.com/t/nginx-rewrite-rules-conditional-once-again/190869)

<div class="topic-metadata">

**Author:** [@Malte\_G](https://www.ruby-forum.com/u/Malte_G)\
**Replies:** 4\
**Last updated:** [June 30, 2010, 12:15pm UTC](https://www.ruby-forum.com/t/nginx-rewrite-rules-conditional-once-again/190869 "2010-06-30T12:15:49Z")

</div>

Hi List, I’ve got to convert some Apache Rewrite Rules to work with nginx. And i got kind of stuck in between how to solve this. The old rewrite rule is like this : RewriteCond %{REQUEST\_URI} !/\[0-9\]+$ RewriteCon…

---

## [Nginx push question](https://www.ruby-forum.com/t/nginx-push-question/190896)

<div class="topic-metadata">

**Author:** [@Mike\_Baroukh](https://www.ruby-forum.com/u/Mike_Baroukh)\
**Replies:** 2\
**Last updated:** [June 30, 2010, 11:57am UTC](https://www.ruby-forum.com/t/nginx-push-question/190896 "2010-06-30T11:57:04Z")

</div>

Hi. I found the nginx\_push\_module recently and I’m trying to find if it can fill my needs. It is really fantastic when 1 user subscribe to 1 stream. But, can someone tell me if there is a way for one user to subscrib…

---

## [Redirect ends up in a loop](https://www.ruby-forum.com/t/redirect-ends-up-in-a-loop/190893)

<div class="topic-metadata">

**Author:** [@shainp](https://www.ruby-forum.com/u/shainp)\
**Replies:** 1\
**Last updated:** [June 30, 2010, 10:18am UTC](https://www.ruby-forum.com/t/redirect-ends-up-in-a-loop/190893 "2010-06-30T10:18:43Z")

</div>

Hello! I wanted to use NginxHttpMapModule and NginxRedirect to redirect static links to dynamic php links. I want to redirect http://my\_domain/static/static\_page1.html to http://domain\_name/dynamic/zone.php?zoneid=86…

---

## [Nginx startup scripts](https://www.ruby-forum.com/t/nginx-startup-scripts/190651)

<div class="topic-metadata">

**Author:** [@Mark\_Rogers](https://www.ruby-forum.com/u/Mark_Rogers)\
**Replies:** 9\
**Last updated:** [June 28, 2010, 6:28pm UTC](https://www.ruby-forum.com/t/nginx-startup-scripts/190651 "2010-06-28T18:28:04Z")

</div>

I’m considering nginx as an upgrade from Apache, on a virtual server with many virtual hosts. I have no nginx experience (yet!) I know that there are many reasons why nginx is likely better than Apache in my environme…

---

## [Location case sensitivity](https://www.ruby-forum.com/t/location-case-sensitivity/190782)

<div class="topic-metadata">

**Author:** [@JCR](https://www.ruby-forum.com/u/JCR)\
**Replies:** 3\
**Last updated:** [June 28, 2010, 2:33pm UTC](https://www.ruby-forum.com/t/location-case-sensitivity/190782 "2010-06-28T14:33:46Z")

</div>

Hello On a centos 5 box running the latest nginx, I am struggling with case sensitivity: I have in root the file go.html and I want the request for file GO.html server the file go.html I thought that something like …

---

## [How to clear cache](https://www.ruby-forum.com/t/how-to-clear-cache/190777)

<div class="topic-metadata">

**Author:** [@karthik](https://www.ruby-forum.com/u/karthik)\
**Replies:** 0\
**Last updated:** [June 27, 2010, 6:30pm UTC](https://www.ruby-forum.com/t/how-to-clear-cache/190777 "2010-06-27T18:30:42Z")

</div>

Hi nginx We running ROR + nginx +mongrel\_cluster server. cache not cleared. The same setup using in apache server but working fine… . how to resolve this problem. Thanks and Regards, R.Karthik

---

## [Optimizing worker\_processes, worker\_connections & PHP\_FCGI\_CHILDREN - Any Good Tutorial?](https://www.ruby-forum.com/t/optimizing-worker-processes-worker-connections-php-fcgi-children-any-good-tutorial/190218)

<div class="topic-metadata">

**Author:** [@rahul286](https://www.ruby-forum.com/u/rahul286)\
**Replies:** 34\
**Last updated:** [June 27, 2010, 3:59pm UTC](https://www.ruby-forum.com/t/optimizing-worker-processes-worker-connections-php-fcgi-children-any-good-tutorial/190218 "2010-06-27T15:59:04Z")

</div>

First - all my servers are running fine. Thanks a ton to nginx! Lately, I have been brainstorming a lot on 3 configuration variables to squeeze maximum performance that I can get from my hardware. 3 variables of my in…

---

## [Possible to rewrite based on referring url?](https://www.ruby-forum.com/t/possible-to-rewrite-based-on-referring-url/190760)

<div class="topic-metadata">

**Author:** [@EricIsGood](https://www.ruby-forum.com/u/EricIsGood)\
**Replies:** 0\
**Last updated:** [June 26, 2010, 11:51pm UTC](https://www.ruby-forum.com/t/possible-to-rewrite-based-on-referring-url/190760 "2010-06-26T23:51:01Z")

</div>

here is an example called url: http://myserver.com/index.php?id=15 I would like to change the id= based on referrer… so I will have a list of referers… if referer url contains moo/cow.php then rewrite to: http://mys…

---

## [Send() function failing kills the worker process](https://www.ruby-forum.com/t/send-function-failing-kills-the-worker-process/190679)

<div class="topic-metadata">

**Author:** [@cjt72](https://www.ruby-forum.com/u/cjt72)\
**Replies:** 1\
**Last updated:** [June 25, 2010, 1:50pm UTC](https://www.ruby-forum.com/t/send-function-failing-kills-the-worker-process/190679 "2010-06-25T13:50:22Z")

</div>

Hi all, I’m making an nginx module to communicate with my database. I’m trying to use the C send() function in my handler, but it seems that whenever send() fails it kills the whole process as opposed to just returni…

---

## [My way to force cache expire](https://www.ruby-forum.com/t/my-way-to-force-cache-expire/190657)

<div class="topic-metadata">

**Author:** [@Simone\_fumagalli](https://www.ruby-forum.com/u/Simone_fumagalli)\
**Replies:** 5\
**Last updated:** [June 24, 2010, 6:10pm UTC](https://www.ruby-forum.com/t/my-way-to-force-cache-expire/190657 "2010-06-24T18:10:04Z")

</div>

I’ve Nginx in front of my CMS that cache requests without cookie (anonymous visitors) while other requests (logged in users) are passed to the backend. The conf look like this (only relevant parts) : proxy\_cache\_pat…

---

## [Disable Cookies Caching?](https://www.ruby-forum.com/t/disable-cookies-caching/190576)

<div class="topic-metadata">

**Author:** [@MuFei](https://www.ruby-forum.com/u/MuFei)\
**Replies:** 2\
**Last updated:** [June 24, 2010, 3:56pm UTC](https://www.ruby-forum.com/t/disable-cookies-caching/190576 "2010-06-24T15:56:32Z")

</div>

Hi, I just set up Nginx as a proxy to Apache for my vBulletin based site. Everything went well till I enabled Nginx caching. Once Nginx caching is enabled I’m and all users are no longer unable to log-in to the forum…

---

## [Ngx\_lua now has (basic) subrequest support](https://www.ruby-forum.com/t/ngx-lua-now-has-basic-subrequest-support/190628)

<div class="topic-metadata">

**Author:** [@agentzh](https://www.ruby-forum.com/u/agentzh)\
**Replies:** 0\
**Last updated:** [June 24, 2010, 6:55am UTC](https://www.ruby-forum.com/t/ngx-lua-now-has-basic-subrequest-support/190628 "2010-06-24T06:55:34Z")

</div>

Hi, guys! Last night’s ngx\_lua hackathon has been proven extremely fruitful. chaoslawful and I didn’t stop coding until midnight, and successfully finished the first draft of the most tricky bit in ngx\_lua, that is, …

---

## [Time related conditions](https://www.ruby-forum.com/t/time-related-conditions/190626)

<div class="topic-metadata">

**Author:** [@Mauro\_Stettler](https://www.ruby-forum.com/u/Mauro_Stettler)\
**Replies:** 0\
**Last updated:** [June 24, 2010, 5:09am UTC](https://www.ruby-forum.com/t/time-related-conditions/190626 "2010-06-24T05:09:37Z")

</div>

hi we are looking for a way to change the nginx’s behavior if certain conditions related to time are met. like for example if one source ip requests more than 10 times a minute we would like to redirect it to somewhe…

---

## [Bug: custom error\_page doesn't work for HTTP 413 (content too large)](https://www.ruby-forum.com/t/bug-custom-error-page-doesnt-work-for-http-413-content-too-large/169465)

<div class="topic-metadata">

**Author:** [@Michael\_Nachbaur](https://www.ruby-forum.com/u/Michael_Nachbaur)\
**Replies:** 11\
**Last updated:** [June 24, 2010, 12:50am UTC](https://www.ruby-forum.com/t/bug-custom-error-page-doesnt-work-for-http-413-content-too-large/169465 "2010-06-24T00:50:20Z")

</div>

After a few hours of digging through the nginx code, I think I’ve discovered the nature of the bug, but I still don’t know how to fix it just yet. I’m using the 3rd-party upload module to handle my uploads, which are…

---

## [Memcached not caching](https://www.ruby-forum.com/t/memcached-not-caching/179798)

<div class="topic-metadata">

**Author:** [@rhjheins](https://www.ruby-forum.com/u/rhjheins)\
**Replies:** 3\
**Last updated:** [June 23, 2010, 4:45pm UTC](https://www.ruby-forum.com/t/memcached-not-caching/179798 "2010-06-23T16:45:32Z")

</div>

Currently I am testing nginx as a reverse-proxy/load ballencer and the basic setup is working perfect. But memcached is not caching any content System: Ubuntu 9.10 server with nginx (from ubuntu repository) and memcac…

---

## [Compiling nginx](https://www.ruby-forum.com/t/compiling-nginx/190543)

<div class="topic-metadata">

**Author:** [@dcian](https://www.ruby-forum.com/u/dcian)\
**Replies:** 2\
**Last updated:** [June 23, 2010, 9:53am UTC](https://www.ruby-forum.com/t/compiling-nginx/190543 "2010-06-23T09:53:18Z")

</div>

Hi All, Can I please check. (linux noob :slight\_smile: I am compiling nginx under Ubuntu 10.4 - but I need to deploy on 8.04. It that going to work, or should I avoid grief by compiling under 8.04? Regards Ian

---

## [Nginx 0.8.41 segfaults in ngx\_list\_push](https://www.ruby-forum.com/t/nginx-0-8-41-segfaults-in-ngx-list-push/190396)

<div class="topic-metadata">

**Author:** [@Roman\_V](https://www.ruby-forum.com/u/Roman_V)\
**Replies:** 11\
**Last updated:** [June 23, 2010, 12:03am UTC](https://www.ruby-forum.com/t/nginx-0-8-41-segfaults-in-ngx-list-push/190396 "2010-06-23T00:03:53Z")

</div>

Hi, I’ve found few coredumps in /tmp/ from nginx. #0 0x00000000004055b8 in ngx\_list\_push (l=0xdf18e98) at src/core/ngx\_list.c:45 45 if (last-\>nelts == l-\>nalloc) { (gdb) bt #0 0x00000000004055b8 in ngx\_lis…

---

## [Nginx and X-Accel-Redirect to serve Quicktime streaming prepared movies](https://www.ruby-forum.com/t/nginx-and-x-accel-redirect-to-serve-quicktime-streaming-prepared-movies/140837)

<div class="topic-metadata">

**Author:** [@thomas](https://www.ruby-forum.com/u/thomas)\
**Replies:** 8\
**Last updated:** [June 22, 2010, 11:47pm UTC](https://www.ruby-forum.com/t/nginx-and-x-accel-redirect-to-serve-quicktime-streaming-prepared-movies/140837 "2010-06-22T23:47:17Z")

</div>

Hi, Using Nginx + X-Accel\_Redirect + Regular Quicktime movies works, but the user needs to wait for the film to be fully downloaded to watch it. Therefore I decided to prepare my movies with the Fast-Start option, b…

---

## [Having semi-colon in query](https://www.ruby-forum.com/t/having-semi-colon-in-query/190565)

<div class="topic-metadata">

**Author:** [@ankur](https://www.ruby-forum.com/u/ankur)\
**Replies:** 5\
**Last updated:** [June 22, 2010, 10:02pm UTC](https://www.ruby-forum.com/t/having-semi-colon-in-query/190565 "2010-06-22T22:02:40Z")

</div>

Hi all, I have a URL of the form: /abc?x=1&y=2;3. The nginx server passes the request to php-fpm thread. When I try to query for the value of ‘y’ I get ‘2’ instead of ‘2;3’. Is this expected? Are semicolons …

---

## [Re: nginx does not allow multiple lines in a header value?](https://www.ruby-forum.com/t/re-nginx-does-not-allow-multiple-lines-in-a-header-value/190568)

<div class="topic-metadata">

**Author:** [@DrakeS\_Jan\_XSND](https://www.ruby-forum.com/u/DrakeS_Jan_XSND)\
**Replies:** 0\
**Last updated:** [June 22, 2010, 9:42pm UTC](https://www.ruby-forum.com/t/re-nginx-does-not-allow-multiple-lines-in-a-header-value/190568 "2010-06-22T21:42:46Z")

</div>

Adam, did you solve this? Jan

---

## [Ubuntu 8.04 user - upgrade to nginx latest](https://www.ruby-forum.com/t/ubuntu-8-04-user-upgrade-to-nginx-latest/174385)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 18\
**Last updated:** [June 22, 2010, 7:49pm UTC](https://www.ruby-forum.com/t/ubuntu-8-04-user-upgrade-to-nginx-latest/174385 "2010-06-22T19:49:11Z")

</div>

I didn’t notice the aptitude install for 8.04 comes with the legacy version 0.5.33 instead of the 6 or the 7 series. I would like to use at least the 6 series for Ubuntu 8.04. 0.7.61 is better of course. Any experien…

---

## [Ngx\_xss v0.02: fixed a bug to prevent responses from gzipping](https://www.ruby-forum.com/t/ngx-xss-v0-02-fixed-a-bug-to-prevent-responses-from-gzipping/190539)

<div class="topic-metadata">

**Author:** [@agentzh](https://www.ruby-forum.com/u/agentzh)\
**Replies:** 0\
**Last updated:** [June 22, 2010, 11:46am UTC](https://www.ruby-forum.com/t/ngx-xss-v0-02-fixed-a-bug-to-prevent-responses-from-gzipping/190539 "2010-06-22T11:46:46Z")

</div>

Hi, all~ I’m glad to announce the v0.02 release of the ngx\_xss module: http://github.com/agentzh/xss-nginx-module/tarball/v0.02 This module provides native cross-site scripting (XSS) support in nginx, and cross-site …

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

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