# Server

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

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

---

## [Gzip\_static - any way to not have to store two files?](https://www.ruby-forum.com/t/gzip-static-any-way-to-not-have-to-store-two-files/181974)

<div class="topic-metadata">

**Author:** [@arianna](https://www.ruby-forum.com/u/arianna)\
**Replies:** 6\
**Last updated:** [January 21, 2010, 6:25pm UTC](https://www.ruby-forum.com/t/gzip-static-any-way-to-not-have-to-store-two-files/181974 "2010-01-21T18:25:27Z")

</div>

right now we have to store two files - compressed and uncompressed. couldn’t nginx just read compressed file from filesystem and uncompress on the fly and send? Posted at Nginx Forum:

---

## [Limit\_req and ip addresses](https://www.ruby-forum.com/t/limit-req-and-ip-addresses/181907)

<div class="topic-metadata">

**Author:** [@Subramanyam\_Chitti](https://www.ruby-forum.com/u/Subramanyam_Chitti)\
**Replies:** 1\
**Last updated:** [January 21, 2010, 1:18pm UTC](https://www.ruby-forum.com/t/limit-req-and-ip-addresses/181907 "2010-01-21T13:18:09Z")

</div>

Hi Folks, I am using the limit\_req module to limit the number of queries per second based on ip adresses. However, I want to allow some ip addressed (my whitelist) to make unlimited requests per second. Is there a w…

---

## [Re: Nginx unexpectedly returning 304 for content cached from proxy](https://www.ruby-forum.com/t/re-nginx-unexpectedly-returning-304-for-content-cached-from-proxy/180458)

<div class="topic-metadata">

**Author:** [@ntk](https://www.ruby-forum.com/u/ntk)\
**Replies:** 2\
**Last updated:** [January 21, 2010, 10:39am UTC](https://www.ruby-forum.com/t/re-nginx-unexpectedly-returning-304-for-content-cached-from-proxy/180458 "2010-01-21T10:39:31Z")

</div>

Hi, i just hit the same issue as is described in Nginx unexpectedly returning 304 for content cached from proxy - NGINX - Ruby-Forum with nginx 0.7.64. Also the workaround proxy\_set\_header If-None-Match “”; does wor…

---

## [Rewrite question - magento in subfolder](https://www.ruby-forum.com/t/rewrite-question-magento-in-subfolder/181995)

<div class="topic-metadata">

**Author:** [@liamstask](https://www.ruby-forum.com/u/liamstask)\
**Replies:** 0\
**Last updated:** [January 21, 2010, 9:06am UTC](https://www.ruby-forum.com/t/rewrite-question-magento-in-subfolder/181995 "2010-01-21T09:06:26Z")

</div>

I’ve just started trying to get a site of mine switched over to nginx, and have enjoyed it so far but I’ve come up against a rewrite issue I haven’t been able to solve easily. We’re running an instance of magento at …

---

## [NginxHttpSecureLinkModule with TTL Module?](https://www.ruby-forum.com/t/nginxhttpsecurelinkmodule-with-ttl-module/181983)

<div class="topic-metadata">

**Author:** [@Resicow](https://www.ruby-forum.com/u/Resicow)\
**Replies:** 0\
**Last updated:** [January 21, 2010, 4:34am UTC](https://www.ruby-forum.com/t/nginxhttpsecurelinkmodule-with-ttl-module/181983 "2010-01-21T04:34:53Z")

</div>

Hello all, I know that a patch for the NginxHttpSecureLinkModule currently exists which brings TTL support. The patch is for 0.7.59 and doesn’t seem to work with the latest version. Is there any chance that this func…

---

## [Messed Response Stream](https://www.ruby-forum.com/t/messed-response-stream/181857)

<div class="topic-metadata">

**Author:** [@Yaoxing](https://www.ruby-forum.com/u/Yaoxing)\
**Replies:** 1\
**Last updated:** [January 20, 2010, 4:53pm UTC](https://www.ruby-forum.com/t/messed-response-stream/181857 "2010-01-20T16:53:41Z")

</div>

Hello everyone, I started to use nginx about 3 month ago as a reverse proxy. I met a serious issue days ago. Some users reported that they went into other ones’ account pages unexpectly. After series of testing, I’m s…

---

## [Starting nginx: : unknown directive "perl\_set" in /etc/nginx/nginx.conf:41](https://www.ruby-forum.com/t/starting-nginx-unknown-directive-perl-set-in-etc-nginx-nginx-conf-41/181912)

<div class="topic-metadata">

**Author:** [@chittis](https://www.ruby-forum.com/u/chittis)\
**Replies:** 1\
**Last updated:** [January 20, 2010, 4:52am UTC](https://www.ruby-forum.com/t/starting-nginx-unknown-directive-perl-set-in-etc-nginx-nginx-conf-41/181912 "2010-01-20T04:52:03Z")

</div>

Hi, I’m getting an unknown directive “perl\_set” error - I have in my configuration file : user www-data; worker\_processes 1; error\_log /var/log/nginx/error.log; pid /var/run/nginx.pid; events { worker\_co…

---

## [Possible bug in SSI include handling](https://www.ruby-forum.com/t/possible-bug-in-ssi-include-handling/180881)

<div class="topic-metadata">

**Author:** [@xamdam](https://www.ruby-forum.com/u/xamdam)\
**Replies:** 7\
**Last updated:** [January 20, 2010, 1:03am UTC](https://www.ruby-forum.com/t/possible-bug-in-ssi-include-handling/180881 "2010-01-20T01:03:48Z")

</div>

Hello all, This file structure required to duplicate this bug is a bit complex to explain. Therefore, I put the required files into a tiny archive, which you can download from \[1\]. This problem is appearing in latest…

---

## [Basic auth with rewrite issue](https://www.ruby-forum.com/t/basic-auth-with-rewrite-issue/181691)

<div class="topic-metadata">

**Author:** [@zlegein](https://www.ruby-forum.com/u/zlegein)\
**Replies:** 3\
**Last updated:** [January 19, 2010, 6:35pm UTC](https://www.ruby-forum.com/t/basic-auth-with-rewrite-issue/181691 "2010-01-19T18:35:44Z")

</div>

Hi all, We are using nginx-0.6.35 and we have a kludge of a set for one of our apps because it is only installed on one server in a pair. So we have an odd setup for it: server { listen 80; server\_name dns.app1.com;…

---

## [Nginx performance test](https://www.ruby-forum.com/t/nginx-performance-test/181821)

<div class="topic-metadata">

**Author:** [@Davide\_DSAmico](https://www.ruby-forum.com/u/Davide_DSAmico)\
**Replies:** 7\
**Last updated:** [January 19, 2010, 4:57pm UTC](https://www.ruby-forum.com/t/nginx-performance-test/181821 "2010-01-19T16:57:58Z")

</div>

Hi, I’ve a Dell R410 with dual Xeon E5530 with 8gb ddr so I would like to test/discover nginx perfomances. Here my config file /usr/local/etc/nginx/nginx.conf: orker\_processes 10; events { accept\_mutex off; worke…

---

## [SSL Conflict Between Two Virtual Hosts](https://www.ruby-forum.com/t/ssl-conflict-between-two-virtual-hosts/181815)

<div class="topic-metadata">

**Author:** [@jasonago](https://www.ruby-forum.com/u/jasonago)\
**Replies:** 6\
**Last updated:** [January 19, 2010, 4:05pm UTC](https://www.ruby-forum.com/t/ssl-conflict-between-two-virtual-hosts/181815 "2010-01-19T16:05:16Z")

</div>

Hello NGINX community! I am setting up multiple website in one server. Obviously I created different server directives for each domain that I want to serve. I set domainA to listen to 443 for ssl as well as domainB. B…

---

## ["limit\_req\_zone" unknown directive in Nginx](https://www.ruby-forum.com/t/limit-req-zone-unknown-directive-in-nginx/181846)

<div class="topic-metadata">

**Author:** [@partysoft](https://www.ruby-forum.com/u/partysoft)\
**Replies:** 1\
**Last updated:** [January 19, 2010, 9:45am UTC](https://www.ruby-forum.com/t/limit-req-zone-unknown-directive-in-nginx/181846 "2010-01-19T09:45:22Z")

</div>

Hi i have CENT OS and installed nginx from RPM using this guide, all works fine except it doesn’t have some basic modules http://www.cyberciti.biz/faq/rhel-fedora-install-configure-nginx-php5/ i get unknown directiv…

---

## [Ngx\_rds\_json: help ngx\_drizzle and other DBD modules to emit JSON data](https://www.ruby-forum.com/t/ngx-rds-json-help-ngx-drizzle-and-other-dbd-modules-to-emit-json-data/181854)

<div class="topic-metadata">

**Author:** [@agentzh](https://www.ruby-forum.com/u/agentzh)\
**Replies:** 0\
**Last updated:** [January 19, 2010, 8:49am UTC](https://www.ruby-forum.com/t/ngx-rds-json-help-ngx-drizzle-and-other-dbd-modules-to-emit-json-data/181854 "2010-01-19T08:49:46Z")

</div>

Hi, all~ I’m happy to announce the first release of our ngx\_rds\_json module that can convert Resty DBD Streams (RDS) to JSON. As some of you might have noticed, the mysql/drizzle DBD driver module ngx\_drizzle generat…

---

## [Can i count bandwidth usage with embeded perl?](https://www.ruby-forum.com/t/can-i-count-bandwidth-usage-with-embeded-perl/181847)

<div class="topic-metadata">

**Author:** [@partysoft](https://www.ruby-forum.com/u/partysoft)\
**Replies:** 0\
**Last updated:** [January 19, 2010, 6:11am UTC](https://www.ruby-forum.com/t/can-i-count-bandwidth-usage-with-embeded-perl/181847 "2010-01-19T06:11:42Z")

</div>

Hello, i was wondering if the perl module can count the traffic being served by nginx… maybe per ip even… the ideea is to limit at some point when reaches an amount like 200Mb / ip Posted at Nginx Forum:

---

## [How does nginx upgrade binaries on the fly?](https://www.ruby-forum.com/t/how-does-nginx-upgrade-binaries-on-the-fly/181829)

<div class="topic-metadata">

**Author:** [@codexon](https://www.ruby-forum.com/u/codexon)\
**Replies:** 1\
**Last updated:** [January 18, 2010, 11:15pm UTC](https://www.ruby-forum.com/t/how-does-nginx-upgrade-binaries-on-the-fly/181829 "2010-01-18T23:15:32Z")

</div>

I am interested in knowing how nginx upgrades binaries on the fly. What system calls does nginx do to create another master process that can inherit and use the same socket? Can anyone explain or point me to the rig…

---

## [NginxHttpSecureLinkModule not handling query stringf](https://www.ruby-forum.com/t/nginxhttpsecurelinkmodule-not-handling-query-stringf/181774)

<div class="topic-metadata">

**Author:** [@drlelon](https://www.ruby-forum.com/u/drlelon)\
**Replies:** 0\
**Last updated:** [January 18, 2010, 4:31am UTC](https://www.ruby-forum.com/t/nginxhttpsecurelinkmodule-not-handling-query-stringf/181774 "2010-01-18T04:31:05Z")

</div>

We are using NginxHttpSecureLinkModule (http://wiki.nginx.org/NginxHttpSecureLinkModule) to write secure links for our media hosting, and we added on the TTL module so the links can expire after X minutes (Nginx secu…

---

## [SPNEGO for nginx ("alpha") - finally :)](https://www.ruby-forum.com/t/spnego-for-nginx-alpha-finally/181759)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 0\
**Last updated:** [January 17, 2010, 11:47pm UTC](https://www.ruby-forum.com/t/spnego-for-nginx-alpha-finally/181759 "2010-01-17T23:47:45Z")

</div>

I have the source and some background, instructions and examples here: http://michaelshadle.com/2010/01/17/spnego-for-nginx-a-start-at-least/ Please feel free to contact me off-list, or on-list (if applicable) to disc…

---

## [Caching for a location based on cookie](https://www.ruby-forum.com/t/caching-for-a-location-based-on-cookie/181652)

<div class="topic-metadata">

**Author:** [@vys](https://www.ruby-forum.com/u/vys)\
**Replies:** 2\
**Last updated:** [January 17, 2010, 5:39pm UTC](https://www.ruby-forum.com/t/caching-for-a-location-based-on-cookie/181652 "2010-01-17T17:39:01Z")

</div>

Hi, For a given location, I want the requests to be cached only if a particular cookie is not present. How do I achieve that with nginx? Currently I’m trying following config location /album { if ($cookie\_logint…

---

## [Round-robin upstream repeating?](https://www.ruby-forum.com/t/round-robin-upstream-repeating/181733)

<div class="topic-metadata">

**Author:** [@archfiend997](https://www.ruby-forum.com/u/archfiend997)\
**Replies:** 0\
**Last updated:** [January 17, 2010, 10:50am UTC](https://www.ruby-forum.com/t/round-robin-upstream-repeating/181733 "2010-01-17T10:50:34Z")

</div>

Configuration: worker\_processes 2; upstream app-backend { server 10.23.1.1:8080; server 10.23.1.2:8080; } nginx version: nginx/0.6.39 built by gcc 4.2.4 (Ubuntu 4.2.4-1ubuntu4) configure arguments: --prefix=/opt/…

---

## [Nginx mogilefs module 1.0.3](https://www.ruby-forum.com/t/nginx-mogilefs-module-1-0-3/181712)

<div class="topic-metadata">

**Author:** [@Valery\_K](https://www.ruby-forum.com/u/Valery_K)\
**Replies:** 0\
**Last updated:** [January 16, 2010, 5:07pm UTC](https://www.ruby-forum.com/t/nginx-mogilefs-module-1-0-3/181712 "2010-01-16T17:07:52Z")

</div>

Greetings! Changes between versions 1.0.2 and 1.0.3: Added feature: directive mogilefs\_class and ability to specify class of a resource Change: support for HEAD method Change: compatibility with nginx API 0.8.11 and …

---

## [Arbitrarily slicing $server\_name into subdomains?](https://www.ruby-forum.com/t/arbitrarily-slicing-server-name-into-subdomains/181169)

<div class="topic-metadata">

**Author:** [@igorclark](https://www.ruby-forum.com/u/igorclark)\
**Replies:** 10\
**Last updated:** [January 15, 2010, 8:19pm UTC](https://www.ruby-forum.com/t/arbitrarily-slicing-server-name-into-subdomains/181169 "2010-01-15T20:19:37Z")

</div>

Hi there, hope all are well! I’d like to match a wildcard DNS name, pointing to an nginx virtual host, such that an arbitrary level of subdomains maps to an arbitrary level of directories, in a manner I specify. For …

---

## [Implementing a non-blocking delay between request and response](https://www.ruby-forum.com/t/implementing-a-non-blocking-delay-between-request-and-response/181620)

<div class="topic-metadata">

**Author:** [@Tronman](https://www.ruby-forum.com/u/Tronman)\
**Replies:** 8\
**Last updated:** [January 15, 2010, 8:11pm UTC](https://www.ruby-forum.com/t/implementing-a-non-blocking-delay-between-request-and-response/181620 "2010-01-15T20:11:53Z")

</div>

Hi there, I’m trying to figure out how to implement a non blocking delay between when a request comes into a module, and when it is responded too. For example, consider a blocking delay: static ngx\_int\_t ngx\_http\_my…

---

## [Implementing HTTP/1.1 request chunking](https://www.ruby-forum.com/t/implementing-http-1-1-request-chunking/181651)

<div class="topic-metadata">

**Author:** [@dzo](https://www.ruby-forum.com/u/dzo)\
**Replies:** 3\
**Last updated:** [January 15, 2010, 3:50pm UTC](https://www.ruby-forum.com/t/implementing-http-1-1-request-chunking/181651 "2010-01-15T15:50:13Z")

</div>

Hi all, I want to get some input with regards to having HTTP/1.1 request chunking in Nginx. I¹ve done some digging, and I¹ve found a few patches and the module developed by agentzh. So, my question is this – What,…

---

## [Sudden increase in writing connections and apache processes](https://www.ruby-forum.com/t/sudden-increase-in-writing-connections-and-apache-processes/181574)

<div class="topic-metadata">

**Author:** [@vicky007](https://www.ruby-forum.com/u/vicky007)\
**Replies:** 6\
**Last updated:** [January 15, 2010, 11:19am UTC](https://www.ruby-forum.com/t/sudden-increase-in-writing-connections-and-apache-processes/181574 "2010-01-15T11:19:45Z")

</div>

Hello, I’m using nginx as reverse proxy to apache. Apache only serves php because I had no time to set up fastcgi or php-fpm on this box. Anyway, today there was sudden increase in nginx writing connections and incre…

---

## [Using the memcache module to your advantage](https://www.ruby-forum.com/t/using-the-memcache-module-to-your-advantage/164511)

<div class="topic-metadata">

**Author:** [@SSSlippy](https://www.ruby-forum.com/u/SSSlippy)\
**Replies:** 3\
**Last updated:** [January 15, 2010, 6:34am UTC](https://www.ruby-forum.com/t/using-the-memcache-module-to-your-advantage/164511 "2010-01-15T06:34:08Z")

</div>

Ok I am trying to figure out how to use the memcache module to my advantage. I run multiple forums that can put their “datastore” into memcached already. Would just adding the memcached server info help? Confused on…

---

## [Upstream request hash patch](https://www.ruby-forum.com/t/upstream-request-hash-patch/181565)

<div class="topic-metadata">

**Author:** [@Marius\_Danciu](https://www.ruby-forum.com/u/Marius_Danciu)\
**Replies:** 2\
**Last updated:** [January 15, 2010, 2:55am UTC](https://www.ruby-forum.com/t/upstream-request-hash-patch/181565 "2010-01-15T02:55:50Z")

</div>

Hello all, I tried applying the patch described here http://wiki.nginx.org/NginxHttpUpstreamRequestHashModulehttp://www.google.com/url?sa=D&q=http://wiki.nginx.org/NginxHttpUpstreamRequestHashModule&usg=AFQjCNGXcoRKlxQ…

---

## [Logging into script](https://www.ruby-forum.com/t/logging-into-script/181589)

<div class="topic-metadata">

**Author:** [@Dennis\_J](https://www.ruby-forum.com/u/Dennis_J)\
**Replies:** 9\
**Last updated:** [January 14, 2010, 6:03pm UTC](https://www.ruby-forum.com/t/logging-into-script/181589 "2010-01-14T18:03:00Z")

</div>

Hi, Is there a nginx equivalent to apaches CustomLog directive with the “|” prefix so it logs into stdin of another program/script? I need to do real-time processing of the access log data and I’m wondering how I can …

---

## [Nginx and multiple cpu](https://www.ruby-forum.com/t/nginx-and-multiple-cpu/181548)

<div class="topic-metadata">

**Author:** [@Omer\_Faruk\_Sen](https://www.ruby-forum.com/u/Omer_Faruk_Sen)\
**Replies:** 3\
**Last updated:** [January 14, 2010, 12:22pm UTC](https://www.ruby-forum.com/t/nginx-and-multiple-cpu/181548 "2010-01-14T12:22:49Z")

</div>

Hi, I have a 8 core (4 core and HT enabled) machine to test nginx. In my configuration file worker\_processes 8; events { worker\_connections 30000; } I have done a simple test on that 4 core here is mpstat -P A…

---

## [Nginx gets best performance on Gentoo or Ubuntu does not scale](https://www.ruby-forum.com/t/nginx-gets-best-performance-on-gentoo-or-ubuntu-does-not-scale/181383)

<div class="topic-metadata">

**Author:** [@pcdinh](https://www.ruby-forum.com/u/pcdinh)\
**Replies:** 3\
**Last updated:** [January 14, 2010, 6:45am UTC](https://www.ruby-forum.com/t/nginx-gets-best-performance-on-gentoo-or-ubuntu-does-not-scale/181383 "2010-01-14T06:45:06Z")

</div>

I came across this post on the net http://snaprails.tumblr.com/post/325624962/linux-performance-benchmark-apache-nginx The author did some benchmarks and concluded that Ubuntu and Debian had some problems with web sca…

---

## [Modifying uri](https://www.ruby-forum.com/t/modifying-uri/181581)

<div class="topic-metadata">

**Author:** [@Dennis\_J](https://www.ruby-forum.com/u/Dennis_J)\
**Replies:** 2\
**Last updated:** [January 14, 2010, 4:55am UTC](https://www.ruby-forum.com/t/modifying-uri/181581 "2010-01-14T04:55:03Z")

</div>

Hi, I’m trying to find a way to change the case of a part of the uri like this: “/TeSt/File.txt” =\> “/test/File.txt” i.e. I want to change the first path component of the uri to lower case. My question is how this c…

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

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