# Server

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

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

---

## [Proxy\_cache ramdisk](https://www.ruby-forum.com/t/proxy-cache-ramdisk/182548)

<div class="topic-metadata">

**Author:** [@AMP\_Admin](https://www.ruby-forum.com/u/AMP_Admin)\
**Replies:** 21\
**Last updated:** [February 2, 2010, 6:51pm UTC](https://www.ruby-forum.com/t/proxy-cache-ramdisk/182548 "2010-02-02T18:51:51Z")

</div>

So I was thinking of creating a ramdisk and then pointing proxy\_cache at the ramdisk. do you think that will be a good combo? If so, to the people that use proxy\_cache, how much space is it using on average so I can …

---

## [Allow hostname](https://www.ruby-forum.com/t/allow-hostname/182779)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [February 2, 2010, 6:44pm UTC](https://www.ruby-forum.com/t/allow-hostname/182779 "2010-02-02T18:44:14Z")

</div>

I’m guessing you can’t do ‘allow hostname’ since I get an error when I try it so is there any way to get the ip address from a host name and store it in a variable then do ‘allow variable’? If not is it possible to …

---

## [Allow hostname](https://www.ruby-forum.com/t/allow-hostname/182775)

<div class="topic-metadata">

**Author:** [@blackball](https://www.ruby-forum.com/u/blackball)\
**Replies:** 0\
**Last updated:** [February 2, 2010, 5:46pm UTC](https://www.ruby-forum.com/t/allow-hostname/182775 "2010-02-02T17:46:05Z")

</div>

I’m guessing you can’t do ‘allow hostname’ since I get an error when I try it so is there any way to get the ip address from a host name and store it in a variable then do ‘allow variable’? If not is it possible to …

---

## [Support for hexadecimal or octal ip format for the proxy\_pass module](https://www.ruby-forum.com/t/support-for-hexadecimal-or-octal-ip-format-for-the-proxy-pass-module/182717)

<div class="topic-metadata">

**Author:** [@Dalaih](https://www.ruby-forum.com/u/Dalaih)\
**Replies:** 2\
**Last updated:** [February 2, 2010, 1:48pm UTC](https://www.ruby-forum.com/t/support-for-hexadecimal-or-octal-ip-format-for-the-proxy-pass-module/182717 "2010-02-02T13:48:44Z")

</div>

Hello, I’d like the proxy\_pass module of nginx to be able to support hexadecimal or octal ip formats. For example here are the different versions of the ip of the nginx forum : IP address: http://174.36.94.16 Hexa…

---

## [How to have 10% of requests rewrite](https://www.ruby-forum.com/t/how-to-have-10-of-requests-rewrite/182742)

<div class="topic-metadata">

**Author:** [@kshaikh](https://www.ruby-forum.com/u/kshaikh)\
**Replies:** 1\
**Last updated:** [February 2, 2010, 11:05am UTC](https://www.ruby-forum.com/t/how-to-have-10-of-requests-rewrite/182742 "2010-02-02T11:05:23Z")

</div>

Guys, I have a proxy which runs at http://xs.to. It caches http://f0.ultraxs.com. I need it to rewrite to a JPG 10% of the time. I did this with upstream backend, but the issue was that the disk i/o really shot up …

---

## [Why my nginx so many waiting users?](https://www.ruby-forum.com/t/why-my-nginx-so-many-waiting-users/182754)

<div class="topic-metadata">

**Author:** [@21andy](https://www.ruby-forum.com/u/21andy)\
**Replies:** 2\
**Last updated:** [February 2, 2010, 11:03am UTC](https://www.ruby-forum.com/t/why-my-nginx-so-many-waiting-users/182754 "2010-02-02T11:03:03Z")

</div>

Active connections: 82 server accepts handled requests 1404 1404 3579 Reading: 0 Writing: 1 Waiting: 81 http://www.21andy.com/nginx.gif how can i fix it? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,49…

---

## [Re: patch for article nginx.net/windows.html](https://www.ruby-forum.com/t/re-patch-for-article-nginx-net-windows-html/182737)

<div class="topic-metadata">

**Author:** [@rmac217](https://www.ruby-forum.com/u/rmac217)\
**Replies:** 1\
**Last updated:** [February 2, 2010, 10:57am UTC](https://www.ruby-forum.com/t/re-patch-for-article-nginx-net-windows-html/182737 "2010-02-02T10:57:47Z")

</div>

Some minor English grammar fixes for article source windows.xml (downloaded from Rejected Request) See attached patch. Is there a public nginx subversion repository I can clone to make submitting patches simpler?

---

## [Nginx-0.7.65](https://www.ruby-forum.com/t/nginx-0-7-65/182698)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 3\
**Last updated:** [February 2, 2010, 10:14am UTC](https://www.ruby-forum.com/t/nginx-0-7-65/182698 "2010-02-02T10:14:27Z")

</div>

Changes with nginx 0.7.65 01 Feb 2010 \*) Security: now nginx/Windows ignores trailing spaces in URI. Thanks to Dan Crowley, Core Security Technologies. \*) Security: now nginx/…

---

## [Nginx-0.8.33](https://www.ruby-forum.com/t/nginx-0-8-33/182697)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 1\
**Last updated:** [February 2, 2010, 8:45am UTC](https://www.ruby-forum.com/t/nginx-0-8-33/182697 "2010-02-02T08:45:29Z")

</div>

Changes with nginx 0.8.33 01 Feb 2010 \*) Security: now nginx/Windows ignores trailing spaces in URI. Thanks to Dan Crowley, Core Security Technologies. \*) Security: now nginx/…

---

## [Rewriting URI Fragment](https://www.ruby-forum.com/t/rewriting-uri-fragment/182731)

<div class="topic-metadata">

**Author:** [@veganopolis](https://www.ruby-forum.com/u/veganopolis)\
**Replies:** 1\
**Last updated:** [February 2, 2010, 2:46am UTC](https://www.ruby-forum.com/t/rewriting-uri-fragment/182731 "2010-02-02T02:46:07Z")

</div>

Hello, I have a Facebookesque AJAX URL system so that certain pages will dynamically reload data and update the location.hash parameter and make the URL become /old\_path#/new\_path At the moment the only way I have be…

---

## [If statement for Content-Length](https://www.ruby-forum.com/t/if-statement-for-content-length/182589)

<div class="topic-metadata">

**Author:** [@Kingsley\_F](https://www.ruby-forum.com/u/Kingsley_F)\
**Replies:** 3\
**Last updated:** [February 2, 2010, 2:32am UTC](https://www.ruby-forum.com/t/if-statement-for-content-length/182589 "2010-02-02T02:32:40Z")

</div>

Hi Guys, I’ve been trying to work out if this can be done or not with not much luck I want to see if I can do something like this If (Content-Length \< 1024){ Return 403; } Im guessing this can’t be done, however …

---

## [Freenode #nginx (IRC channel): needs owner (halp please, Igor)](https://www.ruby-forum.com/t/freenode-nginx-irc-channel-needs-owner-halp-please-igor/182721)

<div class="topic-metadata">

**Author:** [@merlin\_corey](https://www.ruby-forum.com/u/merlin_corey)\
**Replies:** 14\
**Last updated:** [February 2, 2010, 1:17am UTC](https://www.ruby-forum.com/t/freenode-nginx-irc-channel-needs-owner-halp-please-igor/182721 "2010-02-02T01:17:10Z")

</div>

Some IRC related issues and prospective ways to solve them for community input and requiring the final sign off from Igor himself – With the new release today, various people attempted to update the topic (in which we…

---

## [Random SSL Handshake Errors](https://www.ruby-forum.com/t/random-ssl-handshake-errors/182603)

<div class="topic-metadata">

**Author:** [@chippy](https://www.ruby-forum.com/u/chippy)\
**Replies:** 1\
**Last updated:** [February 1, 2010, 10:42pm UTC](https://www.ruby-forum.com/t/random-ssl-handshake-errors/182603 "2010-02-01T22:42:02Z")

</div>

We’re currently trying to get an nginx proxy connecting to an apache backend with end-to-end SSL up and running. Unfortunately we’re randomly receiving 502 Bad Gateway errors from nginx (I’d say about 10% of the time)…

---

## [Edit Directory Listing Template](https://www.ruby-forum.com/t/edit-directory-listing-template/182718)

<div class="topic-metadata">

**Author:** [@Steve\_Dierker](https://www.ruby-forum.com/u/Steve_Dierker)\
**Replies:** 2\
**Last updated:** [February 1, 2010, 10:23pm UTC](https://www.ruby-forum.com/t/edit-directory-listing-template/182718 "2010-02-01T22:23:53Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, i want to ask if it is possible to edit the template for the autoindex-module. I haven’t find any template \*.html on my debian lenny machine so do i have to modi…

---

## [Question on Proxy\_Cache\_Path](https://www.ruby-forum.com/t/question-on-proxy-cache-path/166121)

<div class="topic-metadata">

**Author:** [@Resicow](https://www.ruby-forum.com/u/Resicow)\
**Replies:** 3\
**Last updated:** [February 1, 2010, 9:10pm UTC](https://www.ruby-forum.com/t/question-on-proxy-cache-path/166121 "2010-02-01T21:10:41Z")

</div>

Hello, Have a quick question for you. Is it possible for proxy\_temp\_path and proxy\_cache\_path to be on separate volumes? It seems like nginx accepts this, however when I tried nginx would make the folders necessary …

---

## [NginxHttpUploadProgressModule constantly hangs](https://www.ruby-forum.com/t/nginxhttpuploadprogressmodule-constantly-hangs/182587)

<div class="topic-metadata">

**Author:** [@nginxhound](https://www.ruby-forum.com/u/nginxhound)\
**Replies:** 3\
**Last updated:** [February 1, 2010, 6:05pm UTC](https://www.ruby-forum.com/t/nginxhttpuploadprogressmodule-constantly-hangs/182587 "2010-02-01T18:05:03Z")

</div>

Hello, Ive been trying to get this module to work for days now. It works, sorta. It consistently makes it about 1.3 megs and then freezes. Ive looked at hundreds of nginx.conf file, have set every parameter known to…

---

## [Protection against massiv requests from single server / ip](https://www.ruby-forum.com/t/protection-against-massiv-requests-from-single-server-ip/182622)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [February 1, 2010, 5:31pm UTC](https://www.ruby-forum.com/t/protection-against-massiv-requests-from-single-server-ip/182622 "2010-02-01T17:31:41Z")

</div>

Hello Nginx community, what is the best way protecting my nginx webserver against massiv request from single server/ips? I made some tests with openload and see one server with openload can fill the whole 100Mbit conn…

---

## [nCache, Varnish Performance](https://www.ruby-forum.com/t/ncache-varnish-performance/182439)

<div class="topic-metadata">

**Author:** [@princeap](https://www.ruby-forum.com/u/princeap)\
**Replies:** 11\
**Last updated:** [February 1, 2010, 1:58pm UTC](https://www.ruby-forum.com/t/ncache-varnish-performance/182439 "2010-02-01T13:58:34Z")

</div>

Hi, Anybody has done Performance between nCache, Varnish and Nginx’s proxy\_cache? Is nCache and Varnish far better than proxy\_cache? rgds, Prince Posted at Nginx Forum:

---

## [Ngx\_drizzle v0.0.7: now running on \*BSD](https://www.ruby-forum.com/t/ngx-drizzle-v0-0-7-now-running-on-bsd/182667)

<div class="topic-metadata">

**Author:** [@agentzh](https://www.ruby-forum.com/u/agentzh)\
**Replies:** 0\
**Last updated:** [February 1, 2010, 10:14am UTC](https://www.ruby-forum.com/t/ngx-drizzle-v0-0-7-now-running-on-bsd/182667 "2010-02-01T10:14:23Z")

</div>

Hi, guys! We’re proud to announce the v0.0.7 release for the ngx\_drizzle module \[1\]. ngx\_drizzle is an upstream nginx module that can help nginx talk directly to mysql and other RDBMS backends that support the mysql …

---

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

<div class="topic-metadata">

**Author:** [@yong\_xue](https://www.ruby-forum.com/u/yong_xue)\
**Replies:** 5\
**Last updated:** [February 1, 2010, 10:05am UTC](https://www.ruby-forum.com/t/nginx-performance-test/182540 "2010-02-01T10:05:36Z")

</div>

hi, last week, I did a nginx performance test. Yes, with no surprise, nginx is perfect. First, I proxyed 15 web hosts after nginx, the cpu utilization and disk IO were a little high, this was cause by the file down…

---

## [IPv6 support](https://www.ruby-forum.com/t/ipv6-support/182658)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 10\
**Last updated:** [February 1, 2010, 9:02am UTC](https://www.ruby-forum.com/t/ipv6-support/182658 "2010-02-01T09:02:23Z")

</div>

I have a VPS that using tunnelbroker service provided by HE.net, and I can ‘wget -6’ to retrieve ipv6 sites’ content. Someone told me that he cannot access my website served by nginx through IPv6 network, while he can…

---

## [Using nginx load balance. how to change the http header attribute sort order?](https://www.ruby-forum.com/t/using-nginx-load-balance-how-to-change-the-http-header-attribute-sort-order/182619)

<div class="topic-metadata">

**Author:** [@Taixiang\_S](https://www.ruby-forum.com/u/Taixiang_S)\
**Replies:** 2\
**Last updated:** [February 1, 2010, 3:26am UTC](https://www.ruby-forum.com/t/using-nginx-load-balance-how-to-change-the-http-header-attribute-sort-order/182619 "2010-02-01T03:26:24Z")

</div>

HI, all i’m use nginx load balance. the response http header , The “Content-Length” is the last line on the header , see the under : HTTP/1.1 200 OK Server: nginx/0.8.30 Date: Sun, 31 Jan 2010 04:20:08 GMT Cont…

---

## [Lighttpd to Nginx: environment variable and include\_shell](https://www.ruby-forum.com/t/lighttpd-to-nginx-environment-variable-and-include-shell/182578)

<div class="topic-metadata">

**Author:** [@Huy\_Phan](https://www.ruby-forum.com/u/Huy_Phan)\
**Replies:** 1\
**Last updated:** [January 30, 2010, 10:37am UTC](https://www.ruby-forum.com/t/lighttpd-to-nginx-environment-variable-and-include-shell/182578 "2010-01-30T10:37:54Z")

</div>

Hi all, I’m working on migrating my site from Lighttpd to Nginx. Currently in my lighty configuration, I can get environment variables using “env.\<variable\_name\>”, and also read configuration from output of a command…

---

## [Panic: MUTEX\_LOCK (22)](https://www.ruby-forum.com/t/panic-mutex-lock-22/182554)

<div class="topic-metadata">

**Author:** [@Pavel\_Pragin](https://www.ruby-forum.com/u/Pavel_Pragin)\
**Replies:** 1\
**Last updated:** [January 30, 2010, 12:38am UTC](https://www.ruby-forum.com/t/panic-mutex-lock-22/182554 "2010-01-30T00:38:42Z")

</div>

I am getting these in the Ngnix error log. The app freezes up an needs to be restarted. Please help. Error: panic: MUTEX\_LOCK (22) \[op.c:352\]. panic: MUTEX\_LOCK (22) \[op.c:352\]. Info: \[root@upload1:/home/ppragin/ng…

---

## [Fastcgi\_cache\_use\_stale http\_500 http\_502 http\_503 http\_504](https://www.ruby-forum.com/t/fastcgi-cache-use-stale-http-500-http-502-http-503-http-504/182498)

<div class="topic-metadata">

**Author:** [@hone](https://www.ruby-forum.com/u/hone)\
**Replies:** 9\
**Last updated:** [January 30, 2010, 12:38am UTC](https://www.ruby-forum.com/t/fastcgi-cache-use-stale-http-500-http-502-http-503-http-504/182498 "2010-01-30T00:38:42Z")

</div>

I get an error with this: fastcgi\_cache\_use\_stale error timeout invalid\_header http\_500 http\_502 http\_503 http\_504; Are http\_502 http\_503 http\_504 not yet available for fastcgi\_cache\_use\_stale?

---

## [Ngx\_xss: Native support for cross-site scripting in an nginx](https://www.ruby-forum.com/t/ngx-xss-native-support-for-cross-site-scripting-in-an-nginx/182304)

<div class="topic-metadata">

**Author:** [@agentzh](https://www.ruby-forum.com/u/agentzh)\
**Replies:** 10\
**Last updated:** [January 29, 2010, 8:32pm UTC](https://www.ruby-forum.com/t/ngx-xss-native-support-for-cross-site-scripting-in-an-nginx/182304 "2010-01-29T20:32:52Z")

</div>

Hi, folks! I’m delighted to announce the first release of our new module, ngx\_xss. This output filter module adds native support for simple cross-site AJAX to the nginx server. Currently only cross-site GET is implem…

---

## [Is this even possible? grab metadata from mp3 from the beginning of an upload!](https://www.ruby-forum.com/t/is-this-even-possible-grab-metadata-from-mp3-from-the-beginning-of-an-upload/182531)

<div class="topic-metadata">

**Author:** [@saimon](https://www.ruby-forum.com/u/saimon)\
**Replies:** 3\
**Last updated:** [January 29, 2010, 8:20pm UTC](https://www.ruby-forum.com/t/is-this-even-possible-grab-metadata-from-mp3-from-the-beginning-of-an-upload/182531 "2010-01-29T20:20:35Z")

</div>

My boss has asked me for the following features: Have uploads of mp3 tracks to our service be made asynchronous Immediately allow editing of the track form Grab the tracks metadata (i.e. from the file header) from the …

---

## [Php-cgi constantly recycles every couple of minutes](https://www.ruby-forum.com/t/php-cgi-constantly-recycles-every-couple-of-minutes/182269)

<div class="topic-metadata">

**Author:** [@mindfrost82](https://www.ruby-forum.com/u/mindfrost82)\
**Replies:** 10\
**Last updated:** [January 29, 2010, 8:17pm UTC](https://www.ruby-forum.com/t/php-cgi-constantly-recycles-every-couple-of-minutes/182269 "2010-01-29T20:17:39Z")

</div>

I run a fairly busy site with a Wordpress blog and vBulletin forums. I recently dumped Apache and and using nginx for everything (which has been incredible and I would never go back). I’m using PHP as fastCGI and ha…

---

## [PHP-FPM and concurrency](https://www.ruby-forum.com/t/php-fpm-and-concurrency/182450)

<div class="topic-metadata">

**Author:** [@Kiril\_A](https://www.ruby-forum.com/u/Kiril_A)\
**Replies:** 8\
**Last updated:** [January 29, 2010, 3:05pm UTC](https://www.ruby-forum.com/t/php-fpm-and-concurrency/182450 "2010-01-29T15:05:03Z")

</div>

Hello, I have a strange problem maybe not related to nginx but it could very well be. So I make a long (time consuming) request to a PHP page. Where that request is in progress, let’s say 1 minute, with the SAME brows…

---

## [Is there any way to make Substitution module to work with gzip?](https://www.ruby-forum.com/t/is-there-any-way-to-make-substitution-module-to-work-with-gzip/182519)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [January 29, 2010, 12:29pm UTC](https://www.ruby-forum.com/t/is-there-any-way-to-make-substitution-module-to-work-with-gzip/182519 "2010-01-29T12:29:21Z")

</div>

Substitution module http://wiki.nginx.org/NginxHttpSubModule can replace text for content from proxy\_pass. In order to use this function, it have to turn gzip transfer off from server to server, which is understandab…

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

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