# Server

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

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

---

## [Replacing cache-control headers](https://www.ruby-forum.com/t/replacing-cache-control-headers/184993)

<div class="topic-metadata">

**Author:** [@rmac217](https://www.ruby-forum.com/u/rmac217)\
**Replies:** 2\
**Last updated:** [March 12, 2010, 5:16am UTC](https://www.ruby-forum.com/t/replacing-cache-control-headers/184993 "2010-03-12T05:16:36Z")

</div>

I’m trying to add Cache-Control headers to an ill-behaved backend application (that I don’t control). For many requests, the backend sets Cache-Control headers with an empty value (an RFC violation, I know, and a bug …

---

## [Updating mime.types](https://www.ruby-forum.com/t/updating-mime-types/185034)

<div class="topic-metadata">

**Author:** [@Jools\_W](https://www.ruby-forum.com/u/Jools_W)\
**Replies:** 0\
**Last updated:** [March 12, 2010, 3:03am UTC](https://www.ruby-forum.com/t/updating-mime-types/185034 "2010-03-12T03:03:43Z")

</div>

Since i’ve been running nginx, i have updated my mime.types a bunch of times adding new archive formats and so on. such as lha, gz, lzx, and plenty more. Do you accept changes to this file, or is it considered up to t…

---

## [Replicating the ISAPI Flag "N" in Rewrite](https://www.ruby-forum.com/t/replicating-the-isapi-flag-n-in-rewrite/184996)

<div class="topic-metadata">

**Author:** [@Adam\_Landry](https://www.ruby-forum.com/u/Adam_Landry)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 4:44pm UTC](https://www.ruby-forum.com/t/replicating-the-isapi-flag-n-in-rewrite/184996 "2010-03-11T16:44:15Z")

</div>

I’m trying to merge our current ISAPI rewrite into Nginx via the rewrite module. I’m running into issues with the rules that have the “N” flag which forces the modded url to be passed through the rewrites. Is there a…

---

## [Proxy Cache](https://www.ruby-forum.com/t/proxy-cache/184985)

<div class="topic-metadata">

**Author:** [@Jan\_KaSSSSpar](https://www.ruby-forum.com/u/Jan_KaSSSSpar)\
**Replies:** 1\
**Last updated:** [March 11, 2010, 4:33pm UTC](https://www.ruby-forum.com/t/proxy-cache/184985 "2010-03-11T16:33:42Z")

</div>

Hello, I am using MS IIS web server as image web. Right now I cannot change to another solution because of special plugiunens that are used. I have problem with caching images. There is over 500 000 and IIS doesnt ha…

---

## [Dotted cookie name as proxy\_cache\_key problem](https://www.ruby-forum.com/t/dotted-cookie-name-as-proxy-cache-key-problem/184965)

<div class="topic-metadata">

**Author:** [@SergeyZh](https://www.ruby-forum.com/u/SergeyZh)\
**Replies:** 4\
**Last updated:** [March 11, 2010, 3:22pm UTC](https://www.ruby-forum.com/t/dotted-cookie-name-as-proxy-cache-key-problem/184965 "2010-03-11T15:22:17Z")

</div>

I’m trying to configure proxy cache for backend server and cookie name with user’s login is long with dots (jetbrains.charisma.main.security.PRINCIPAL). So my config is: proxy\_cache\_key “$host$request\_uri $cookie\_j…

---

## [Performance plateau when keepalives enabled](https://www.ruby-forum.com/t/performance-plateau-when-keepalives-enabled/184787)

<div class="topic-metadata">

**Author:** [@powderhound](https://www.ruby-forum.com/u/powderhound)\
**Replies:** 10\
**Last updated:** [March 11, 2010, 2:25pm UTC](https://www.ruby-forum.com/t/performance-plateau-when-keepalives-enabled/184787 "2010-03-11T14:25:30Z")

</div>

Hi, I am benchmarking nginx 0.7.65 with httperf simulating a typical user visit which lasts max 10 seconds including pause time (i.e. hit page, grab inline elements such as images/css/js, pause, hit another page, etc…

---

## [SSI connection timeout](https://www.ruby-forum.com/t/ssi-connection-timeout/184986)

<div class="topic-metadata">

**Author:** [@Edward\_Stow](https://www.ruby-forum.com/u/Edward_Stow)\
**Replies:** 1\
**Last updated:** [March 11, 2010, 1:22pm UTC](https://www.ruby-forum.com/t/ssi-connection-timeout/184986 "2010-03-11T13:22:51Z")

</div>

Hi Using nginx/0.6.32 on Ubuntu server 8.10 I am trying to diagnose why my ssi file include now fails. When my included file ‘bar.html.inc’ exceeds about 41 Kb my error log reports a connection timeout. 2010/03/11 …

---

## [Nginx 0.8.34 --with-file-io Linux kernel 2.6.33 patch](https://www.ruby-forum.com/t/nginx-0-8-34-with-file-io-linux-kernel-2-6-33-patch/184962)

<div class="topic-metadata">

**Author:** [@theromis1](https://www.ruby-forum.com/u/theromis1)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 3:23am UTC](https://www.ruby-forum.com/t/nginx-0-8-34-with-file-io-linux-kernel-2-6-33-patch/184962 "2010-03-11T03:23:34Z")

</div>

Hi, I’ve tried nginx on latest Linux kernel and cant compile it. After little fight with sources I’ve created patch for that. Just want to ask, is it reasonable? If so, may be better to include it in main branch for …

---

## [Hold the requests](https://www.ruby-forum.com/t/hold-the-requests/184955)

<div class="topic-metadata">

**Author:** [@Almir\_K](https://www.ruby-forum.com/u/Almir_K)\
**Replies:** 0\
**Last updated:** [March 10, 2010, 11:48pm UTC](https://www.ruby-forum.com/t/hold-the-requests/184955 "2010-03-10T23:48:39Z")

</div>

I have nginx configured to server FCGI stuff (django). Can i configure it in a way that at most 4 requests are ever being processed by the FCGIs at one time? Ideally it would be something like: 4 requests come in an…

---

## [Getting this error: Starting nginx: : conflicting server name domain2.com](https://www.ruby-forum.com/t/getting-this-error-starting-nginx-conflicting-server-name-domain2-com/184946)

<div class="topic-metadata">

**Author:** [@d3l0n](https://www.ruby-forum.com/u/d3l0n)\
**Replies:** 1\
**Last updated:** [March 10, 2010, 9:01pm UTC](https://www.ruby-forum.com/t/getting-this-error-starting-nginx-conflicting-server-name-domain2-com/184946 "2010-03-10T21:01:16Z")

</div>

I have two domains domain1.com and domain2.com. The settings I have for domain1.com are: server { listen 80; server\_name www.domain1.com; rewrite ^/(.\*) http://domain1.com/$1 permanent; …

---

## [Nginx proxy\_pass + 10mbit traffic with syn, cache only image](https://www.ruby-forum.com/t/nginx-proxy-pass-10mbit-traffic-with-syn-cache-only-image/184941)

<div class="topic-metadata">

**Author:** [@mayday](https://www.ruby-forum.com/u/mayday)\
**Replies:** 0\
**Last updated:** [March 10, 2010, 6:19pm UTC](https://www.ruby-forum.com/t/nginx-proxy-pass-10mbit-traffic-with-syn-cache-only-image/184941 "2010-03-10T18:19:12Z")

</div>

Hi, communtiy. Maybe you can help solve my problem. I’m using nginx to proxify different request to dozens of backends. I encountered such problem: If I enable caching in nginx, during high incoming requests (it seem…

---

## [Limit\_rate not for client but for virualhost or entire nginx](https://www.ruby-forum.com/t/limit-rate-not-for-client-but-for-virualhost-or-entire-nginx/184936)

<div class="topic-metadata">

**Author:** [@alberto](https://www.ruby-forum.com/u/alberto)\
**Replies:** 0\
**Last updated:** [March 10, 2010, 5:36pm UTC](https://www.ruby-forum.com/t/limit-rate-not-for-client-but-for-virualhost-or-entire-nginx/184936 "2010-03-10T17:36:25Z")

</div>

Is there a way to limit the bandwith consumed by the full nginx server? or by a virtual host? Posted at Nginx Forum:

---

## [X-Accel-Redirect](https://www.ruby-forum.com/t/x-accel-redirect/184915)

<div class="topic-metadata">

**Author:** [@alberto](https://www.ruby-forum.com/u/alberto)\
**Replies:** 4\
**Last updated:** [March 10, 2010, 1:11pm UTC](https://www.ruby-forum.com/t/x-accel-redirect/184915 "2010-03-10T13:11:50Z")

</div>

I’m using nginx in two different points. As reverse proxy, and as webserver. Webserver with php fastcgi http://www.domain.com/file.zip, is really a php that stores some stats about our customers downloads. When it …

---

## [SSI not evaluated in memcache response](https://www.ruby-forum.com/t/ssi-not-evaluated-in-memcache-response/184877)

<div class="topic-metadata">

**Author:** [@xguardiola](https://www.ruby-forum.com/u/xguardiola)\
**Replies:** 2\
**Last updated:** [March 10, 2010, 9:27am UTC](https://www.ruby-forum.com/t/ssi-not-evaluated-in-memcache-response/184877 "2010-03-10T09:27:40Z")

</div>

Hello all, I’m having trouble to have an SSI call beeing evaluated once cached in memecache. For instance. When I call the first time the page ‘/test/’ which produce the following html: ‘’ the block is replaced b…

---

## [How to not process request from monitoring services](https://www.ruby-forum.com/t/how-to-not-process-request-from-monitoring-services/184833)

<div class="topic-metadata">

**Author:** [@vnjug](https://www.ruby-forum.com/u/vnjug)\
**Replies:** 2\
**Last updated:** [March 10, 2010, 4:06am UTC](https://www.ruby-forum.com/t/how-to-not-process-request-from-monitoring-services/184833 "2010-03-10T04:06:41Z")

</div>

Hi all, I have a lot of requests like this 85.73.113.168 - - \[09/Mar/2010:04:36:10 -0600\] “-” 400 0 “-” “-” 85.73.113.168 - - \[09/Mar/2010:04:36:10 -0600\] “-” 400 0 “-” “-” 85.73.113.168 - - \[09/Mar/2010:04:36:10 -06…

---

## [Ubuntu PPA for Jaunty and Karmic](https://www.ruby-forum.com/t/ubuntu-ppa-for-jaunty-and-karmic/184854)

<div class="topic-metadata">

**Author:** [@pablo\_platt](https://www.ruby-forum.com/u/pablo_platt)\
**Replies:** 1\
**Last updated:** [March 10, 2010, 3:30am UTC](https://www.ruby-forum.com/t/ubuntu-ppa-for-jaunty-and-karmic/184854 "2010-03-10T03:30:39Z")

</div>

Hi, Jeff W.'s PPA is very useful but I only see Hardy and Lucid packages. Will the Lucid package work on Jaunty and Karmic? If it does, can you please update the PPA description to reflect that, so in the future if i…

---

## [How can I keep a large list in apache memory](https://www.ruby-forum.com/t/how-can-i-keep-a-large-list-in-apache-memory/184836)

<div class="topic-metadata">

**Author:** [@ramprasad\_ap](https://www.ruby-forum.com/u/ramprasad_ap)\
**Replies:** 6\
**Last updated:** [March 9, 2010, 10:31pm UTC](https://www.ruby-forum.com/t/how-can-i-keep-a-large-list-in-apache-memory/184836 "2010-03-09T22:31:36Z")

</div>

Hello all, I am new to nginx , I am using ngnix as a Load balancer for two imap servers. All machines are RHEL5 64 bit The nginx calls an apache php script that determines if the user is on imap1 or imap2 by looking…

---

## [Introducing backend healthchecking plugin](https://www.ruby-forum.com/t/introducing-backend-healthchecking-plugin/184240)

<div class="topic-metadata">

**Author:** [@Jack\_Lindamood](https://www.ruby-forum.com/u/Jack_Lindamood)\
**Replies:** 15\
**Last updated:** [March 9, 2010, 7:48pm UTC](https://www.ruby-forum.com/t/introducing-backend-healthchecking-plugin/184240 "2010-03-09T19:48:19Z")

</div>

I’ve written a plugin that can health check nginx backends, which everyone is free to use. This is similar to the healthchecking features that varnish and haproxy support. Here’s a sample config\[1\] just to give you …

---

## [Nginx using access.log.1 after using a logrotate script under ubuntu (from source)](https://www.ruby-forum.com/t/nginx-using-access-log-1-after-using-a-logrotate-script-under-ubuntu-from-source/184706)

<div class="topic-metadata">

**Author:** [@pablo\_platt](https://www.ruby-forum.com/u/pablo_platt)\
**Replies:** 6\
**Last updated:** [March 9, 2010, 2:54pm UTC](https://www.ruby-forum.com/t/nginx-using-access-log-1-after-using-a-logrotate-script-under-ubuntu-from-source/184706 "2010-03-09T14:54:27Z")

</div>

Hi I’ve built nginx from source on ubuntu in /usr/local/nginx according to the tutorial: http://articles.slicehost.com/2009/3/4/ubuntu-intrepid-installing-nginx-from-source and used the init.d script: http://articl…

---

## [Socket CLOSE\_WAIT problem and 404.html](https://www.ruby-forum.com/t/socket-close-wait-problem-and-404-html/184788)

<div class="topic-metadata">

**Author:** [@Oon\_Arfiandwi](https://www.ruby-forum.com/u/Oon_Arfiandwi)\
**Replies:** 1\
**Last updated:** [March 9, 2010, 12:57pm UTC](https://www.ruby-forum.com/t/socket-close-wait-problem-and-404-html/184788 "2010-03-09T12:57:56Z")

</div>

Hi All, I have a website that hits by automatic scheduled job every hour from thousands sources. last time, my website is down because of thousands CLOSE\_WAIT when I check using “netstat -na” I already try to debug…

---

## [Server\_name \_; doesn't work](https://www.ruby-forum.com/t/server-name-doesnt-work/184800)

<div class="topic-metadata">

**Author:** [@kleinchris](https://www.ruby-forum.com/u/kleinchris)\
**Replies:** 6\
**Last updated:** [March 9, 2010, 1:34am UTC](https://www.ruby-forum.com/t/server-name-doesnt-work/184800 "2010-03-09T01:34:18Z")

</div>

Hello, when I set a default vhosts with server\_name \_; it doesn’t work. Here the example file: server { listen 80; server\_name \_ ; # underdash means for all hosts location / { root /var/www/html; …

---

## [Gzip\_proxied question](https://www.ruby-forum.com/t/gzip-proxied-question/184594)

<div class="topic-metadata">

**Author:** [@bryndole](https://www.ruby-forum.com/u/bryndole)\
**Replies:** 2\
**Last updated:** [March 8, 2010, 8:10pm UTC](https://www.ruby-forum.com/t/gzip-proxied-question/184594 "2010-03-08T20:10:33Z")

</div>

I’m new to nginx. After setting up a reverse proxy and reading the documentation I am still left baffled over what the gzip\_proxied option does. http://wiki.nginx.org/NginxHttpGzipModule#gzip\_proxied gzip\_proxied sy…

---

## [Authorization problem](https://www.ruby-forum.com/t/authorization-problem/184775)

<div class="topic-metadata">

**Author:** [@chuj625](https://www.ruby-forum.com/u/chuj625)\
**Replies:** 0\
**Last updated:** [March 8, 2010, 2:26pm UTC](https://www.ruby-forum.com/t/authorization-problem/184775 "2010-03-08T14:26:56Z")

</div>

now i have successfully set the 'nginx.conf ’ like this: 29 auth\_basic "LTP Web Service"; 30 auth\_basic\_user\_file ltpasswd; and when visit the web site, it will pop a box ask for username and pwd. here is problem: i …

---

## [Error 400](https://www.ruby-forum.com/t/error-400/184718)

<div class="topic-metadata">

**Author:** [@ywdblog](https://www.ruby-forum.com/u/ywdblog)\
**Replies:** 1\
**Last updated:** [March 7, 2010, 9:02pm UTC](https://www.ruby-forum.com/t/error-400/184718 "2010-03-07T21:02:10Z")

</div>

suppose client send too many cookies to nginx, nginx will return error 400, how to resolve it thanks Posted at Nginx Forum:

---

## [Directio question](https://www.ruby-forum.com/t/directio-question/184740)

<div class="topic-metadata">

**Author:** [@iamstef](https://www.ruby-forum.com/u/iamstef)\
**Replies:** 2\
**Last updated:** [March 7, 2010, 8:19pm UTC](https://www.ruby-forum.com/t/directio-question/184740 "2010-03-07T20:19:25Z")

</div>

Hi, My name is Stefan P., Im working on http://www.systemdatarecorder.org and I have started to test and consider replacing for our solution apache over nginx. Im getting to know nginx and I like the server. Some que…

---

## [Posting after x-accel-redirect](https://www.ruby-forum.com/t/posting-after-x-accel-redirect/184641)

<div class="topic-metadata">

**Author:** [@amvtek](https://www.ruby-forum.com/u/amvtek)\
**Replies:** 2\
**Last updated:** [March 6, 2010, 12:20pm UTC](https://www.ruby-forum.com/t/posting-after-x-accel-redirect/184641 "2010-03-06T12:20:16Z")

</div>

I am trying to address the following use case : A ‘post request’ is send to Nginx which forward it to a first upstream server “upstream 1”. “upstream 1” is in charge of authenticating the request origin, and do some …

---

## [Reverse proxy and rewrite. Need help!](https://www.ruby-forum.com/t/reverse-proxy-and-rewrite-need-help/184635)

<div class="topic-metadata">

**Author:** [@blitter](https://www.ruby-forum.com/u/blitter)\
**Replies:** 4\
**Last updated:** [March 5, 2010, 5:24pm UTC](https://www.ruby-forum.com/t/reverse-proxy-and-rewrite-need-help/184635 "2010-03-05T17:24:02Z")

</div>

Hey , I have two domains, domain.net and domain.com and considering the expected lack of IP addresses I want to setup a sites hub/reverse proxy. Nginx 0.7.6x is installed on a debian 5.x box and works fine so far. Now …

---

## [Compression support for the memcached module?](https://www.ruby-forum.com/t/compression-support-for-the-memcached-module/184631)

<div class="topic-metadata">

**Author:** [@erazor](https://www.ruby-forum.com/u/erazor)\
**Replies:** 2\
**Last updated:** [March 5, 2010, 2:47pm UTC](https://www.ruby-forum.com/t/compression-support-for-the-memcached-module/184631 "2010-03-05T14:47:10Z")

</div>

Hi Will the nginx memcached module every support retrieving GZIP compressed content from memcached? Our application has pages that might hit the memcached 1MB per cache item limit in the future so it would be (genera…

---

## [Single php file location match](https://www.ruby-forum.com/t/single-php-file-location-match/184609)

<div class="topic-metadata">

**Author:** [@drewrockshard](https://www.ruby-forum.com/u/drewrockshard)\
**Replies:** 2\
**Last updated:** [March 5, 2010, 2:24pm UTC](https://www.ruby-forum.com/t/single-php-file-location-match/184609 "2010-03-05T14:24:20Z")

</div>

How would I go about running a PHP file that is only matched by the request of that file? Meaning, how can someone request a file and nginx run this configuration ONLY when this PHP file is requested. Here is what I …

---

## [Multiple $mogilefs\_path variables](https://www.ruby-forum.com/t/multiple-mogilefs-path-variables/184630)

<div class="topic-metadata">

**Author:** [@Valery\_K](https://www.ruby-forum.com/u/Valery_K)\
**Replies:** 0\
**Last updated:** [March 5, 2010, 12:58pm UTC](https://www.ruby-forum.com/t/multiple-mogilefs-path-variables/184630 "2010-03-05T12:58:17Z")

</div>

Greetings! This patch for nginx mogilefs module implements multiple $mogilefs\_path variables. They names are $mogilefs\_path, $mogilefs\_path1 … $mogilefs\_path9 This allows to implement failover in nginx when a storage…

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

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