# Server

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

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

---

## [Nginx Logging exclusion help](https://www.ruby-forum.com/t/nginx-logging-exclusion-help/169498)

<div class="topic-metadata">

**Author:** [@sandyk007](https://www.ruby-forum.com/u/sandyk007)\
**Replies:** 0\
**Last updated:** [June 4, 2009, 2:13pm UTC](https://www.ruby-forum.com/t/nginx-logging-exclusion-help/169498 "2009-06-04T14:13:55Z")

</div>

Hi, I am quite new to NGINx; but have used this for pop proxy; light web-servers & quite fascinated with the results. Right now facing part as far logging is concerned. I certain hits in logs; which are just opening …

---

## [Problem with compilation on solaris 10u5](https://www.ruby-forum.com/t/problem-with-compilation-on-solaris-10u5/169376)

<div class="topic-metadata">

**Author:** [@Radovan\_PSSSStec](https://www.ruby-forum.com/u/Radovan_PSSSStec)\
**Replies:** 4\
**Last updated:** [June 4, 2009, 9:29am UTC](https://www.ruby-forum.com/t/problem-with-compilation-on-solaris-10u5/169376 "2009-06-04T09:29:30Z")

</div>

hello, i have problem with compilation of nginx-0.7.59 on solaris 10u5. i got stuck on this: Undefined first referenced symbol in file timer\_create …

---

## [nginx/Windows-0.8.0](https://www.ruby-forum.com/t/nginx-windows-0-8-0/169448)

<div class="topic-metadata">

**Author:** [@MasterMind](https://www.ruby-forum.com/u/MasterMind)\
**Replies:** 1\
**Last updated:** [June 4, 2009, 8:46am UTC](https://www.ruby-forum.com/t/nginx-windows-0-8-0/169448 "2009-06-04T08:46:44Z")

</div>

Is nginx/Windows-0.8.0 compiled under Cygwin? How much slower is the windows version of Nginx compared to the Linux version? I read somewhere that the Cygwin version is 500 times slower than the linux version. Posted …

---

## [Nginx-0.8.0](https://www.ruby-forum.com/t/nginx-0-8-0/169349)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 11\
**Last updated:** [June 3, 2009, 3:28pm UTC](https://www.ruby-forum.com/t/nginx-0-8-0/169349 "2009-06-03T15:28:33Z")

</div>

Changes with nginx 0.8.0 02 Jun 2009 \*) Feature: the "keepalive\_requests" directive. \*) Feature: the "limit\_rate\_after" directive. Thanks to Ivan Debnar. \*) Bugfix: XLST fil…

---

## [Best way to empty nginx cache](https://www.ruby-forum.com/t/best-way-to-empty-nginx-cache/169408)

<div class="topic-metadata">

**Author:** [@JSSSSrSSSSme\_Loyet](https://www.ruby-forum.com/u/JSSSSrSSSSme_Loyet)\
**Replies:** 2\
**Last updated:** [June 3, 2009, 2:18pm UTC](https://www.ruby-forum.com/t/best-way-to-empty-nginx-cache/169408 "2009-06-03T14:18:58Z")

</div>

Hi all, what is the best and quickest way to empty the whole cache (set via proxy\_cache\_path) ? I’m developing an small web site which allow my customers to empty their site cache. I would do: 1- find /path/to/cach…

---

## [Upstream module question](https://www.ruby-forum.com/t/upstream-module-question/169401)

<div class="topic-metadata">

**Author:** [@JSSSSrSSSSme\_Loyet](https://www.ruby-forum.com/u/JSSSSrSSSSme_Loyet)\
**Replies:** 5\
**Last updated:** [June 3, 2009, 11:05am UTC](https://www.ruby-forum.com/t/upstream-module-question/169401 "2009-06-03T11:05:11Z")

</div>

Hi all, with the upstream module, in default mode (WRR), what is the best way to disable a server from the pool ? 1- simply remove the line 2- add the “down” keyword to the server 3- set server weight to 0 to disabl…

---

## [Does nginx support SSL resumption?](https://www.ruby-forum.com/t/does-nginx-support-ssl-resumption/169141)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 7\
**Last updated:** [June 3, 2009, 10:40am UTC](https://www.ruby-forum.com/t/does-nginx-support-ssl-resumption/169141 "2009-06-03T10:40:19Z")

</div>

If so, is it enabled by default? How can I enable it?

---

## [Ask help for nginx and tomcat](https://www.ruby-forum.com/t/ask-help-for-nginx-and-tomcat/169384)

<div class="topic-metadata">

**Author:** [@niedh](https://www.ruby-forum.com/u/niedh)\
**Replies:** 0\
**Last updated:** [June 3, 2009, 4:43am UTC](https://www.ruby-forum.com/t/ask-help-for-nginx-and-tomcat/169384 "2009-06-03T04:43:27Z")

</div>

Hi everybody, I’m new to nginx. Recently I use comet in my project. I choose tomcat for the java server. and enable the Http11NioProtocol connector. client send a ajax request,and the server side suspend it, and set a …

---

## [Re: nginx-0.8.0](https://www.ruby-forum.com/t/re-nginx-0-8-0/169350)

<div class="topic-metadata">

**Author:** [@joviyach](https://www.ruby-forum.com/u/joviyach)\
**Replies:** 0\
**Last updated:** [June 2, 2009, 6:56pm UTC](https://www.ruby-forum.com/t/re-nginx-0-8-0/169350 "2009-06-02T18:56:48Z")

</div>

Very exciting! Thank you Igor.

---

## [Rewrite rule from apache](https://www.ruby-forum.com/t/rewrite-rule-from-apache/169295)

<div class="topic-metadata">

**Author:** [@matt91](https://www.ruby-forum.com/u/matt91)\
**Replies:** 4\
**Last updated:** [June 2, 2009, 6:39pm UTC](https://www.ruby-forum.com/t/rewrite-rule-from-apache/169295 "2009-06-02T18:39:48Z")

</div>

I’m new to nginx. I’ve got it all set up apart from a few rewrite rules I need to add from apache, these are: RewriteRule ^bg\_sound\_(\[^\_\]\*).xspf$ /includes/bg\_audio\_player/bg\_sound.php?tributeid=$1 RewriteRule ^elvis…

---

## [Rewrite rule help](https://www.ruby-forum.com/t/rewrite-rule-help/169085)

<div class="topic-metadata">

**Author:** [@Anoop\_A](https://www.ruby-forum.com/u/Anoop_A)\
**Replies:** 5\
**Last updated:** [June 2, 2009, 7:03am UTC](https://www.ruby-forum.com/t/rewrite-rule-help/169085 "2009-06-02T07:03:26Z")

</div>

Hello, It would be great if someone can help me port the following apache rewrite rules to nginx ===================== RewriteRule @^/paOS(.+)@i /?/paos$1 \[L\] RewriteRule ^SOap(.+) /?/paos$1 \[L\] RewriteRule ^paos(…

---

## [Handling an error after X-Accel-Redirect](https://www.ruby-forum.com/t/handling-an-error-after-x-accel-redirect/169296)

<div class="topic-metadata">

**Author:** [@bdmcnitt](https://www.ruby-forum.com/u/bdmcnitt)\
**Replies:** 1\
**Last updated:** [June 2, 2009, 5:45am UTC](https://www.ruby-forum.com/t/handling-an-error-after-x-accel-redirect/169296 "2009-06-02T05:45:44Z")

</div>

We’d like to be able to handle (perhaps try another server) an error coming back after X-Accel-Redirect. In other words, the server to which we redirected sends us a 500 – we want to handle that error, or try another …

---

## [Nginx cookie - how to inject variable into cookie](https://www.ruby-forum.com/t/nginx-cookie-how-to-inject-variable-into-cookie/169192)

<div class="topic-metadata">

**Author:** [@Payam\_C](https://www.ruby-forum.com/u/Payam_C)\
**Replies:** 2\
**Last updated:** [June 2, 2009, 5:11am UTC](https://www.ruby-forum.com/t/nginx-cookie-how-to-inject-variable-into-cookie/169192 "2009-06-02T05:11:51Z")

</div>

Hey, im trying to compare the cookie with the remote\_addr via nginx but nginx sees $remote\_addr as the text and not the a variable … so it wont match properly I do have two cookies… the one I need to match for is th…

---

## [Does nginx support multi-thread?](https://www.ruby-forum.com/t/does-nginx-support-multi-thread/169230)

<div class="topic-metadata">

**Author:** [@Chieu](https://www.ruby-forum.com/u/Chieu)\
**Replies:** 2\
**Last updated:** [June 2, 2009, 4:22am UTC](https://www.ruby-forum.com/t/does-nginx-support-multi-thread/169230 "2009-06-02T04:22:47Z")

</div>

I found that nginx can just work in multi-process. I just write a cache and found the cache can not be shared in multi-process model, each work process just copy the cache and manage the cache self. So I want a globa…

---

## [Need help cleaning up user directory and php rules](https://www.ruby-forum.com/t/need-help-cleaning-up-user-directory-and-php-rules/162830)

<div class="topic-metadata">

**Author:** [@Edho\_P\_Arief](https://www.ruby-forum.com/u/Edho_P_Arief)\
**Replies:** 12\
**Last updated:** [June 2, 2009, 12:05am UTC](https://www.ruby-forum.com/t/need-help-cleaning-up-user-directory-and-php-rules/162830 "2009-06-02T00:05:22Z")

</div>

Here’s how I did it (got it working properly) but wonder if I can clean it up a bit (especially about trailing slash and /~blah/file.php) the rewrites for user directory (not including php) are from this server { l…

---

## [Rewrite rules](https://www.ruby-forum.com/t/rewrite-rules/169233)

<div class="topic-metadata">

**Author:** [@Tomasz\_P](https://www.ruby-forum.com/u/Tomasz_P)\
**Replies:** 1\
**Last updated:** [June 1, 2009, 9:39am UTC](https://www.ruby-forum.com/t/rewrite-rules/169233 "2009-06-01T09:39:29Z")

</div>

Hello, RewriteEngine On RewriteCond %{REQUEST\_FILENAME} -s \[OR\] RewriteCond %{REQUEST\_FILENAME} -l \[OR\] RewriteCond %{REQUEST\_FILENAME} -d RewriteRule ^.$ - \[NC,L\] RewriteRule ^.$ index.php \[NC,L\] Can anybody poin…

---

## [Mongrel cluster with prefix](https://www.ruby-forum.com/t/mongrel-cluster-with-prefix/169158)

<div class="topic-metadata">

**Author:** [@xinu](https://www.ruby-forum.com/u/xinu)\
**Replies:** 1\
**Last updated:** [May 31, 2009, 2:37pm UTC](https://www.ruby-forum.com/t/mongrel-cluster-with-prefix/169158 "2009-05-31T14:37:20Z")

</div>

If i try to start mongrel\_cluster with a prefix a receive this error message. /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active\_support/dependencies.rb:440:in \`load\_missing\_constant’: uninitialized constant …

---

## [About Nginx upload module & PHP file input array](https://www.ruby-forum.com/t/about-nginx-upload-module-php-file-input-array/169150)

<div class="topic-metadata">

**Author:** [@z33](https://www.ruby-forum.com/u/z33)\
**Replies:** 1\
**Last updated:** [May 30, 2009, 1:12pm UTC](https://www.ruby-forum.com/t/about-nginx-upload-module-php-file-input-array/169150 "2009-05-30T13:12:43Z")

</div>

Hi guys, It’s fine if I using nginx upload module to upload a signle file. but It look incorrect that when I use a input like this: How should I set “upload\_set\_form\_field” directive? Thanks, Jacky Posted at Nginx …

---

## [How to use fastcgi\_cache\_methods](https://www.ruby-forum.com/t/how-to-use-fastcgi-cache-methods/169144)

<div class="topic-metadata">

**Author:** [@bigbet](https://www.ruby-forum.com/u/bigbet)\
**Replies:** 2\
**Last updated:** [May 30, 2009, 6:56am UTC](https://www.ruby-forum.com/t/how-to-use-fastcgi-cache-methods/169144 "2009-05-30T06:56:08Z")

</div>

how to use fastcgi\_cache\_methods ??

---

## [How to Grab arguments in POST request?](https://www.ruby-forum.com/t/how-to-grab-arguments-in-post-request/169125)

<div class="topic-metadata">

**Author:** [@sayeo87](https://www.ruby-forum.com/u/sayeo87)\
**Replies:** 1\
**Last updated:** [May 29, 2009, 11:27pm UTC](https://www.ruby-forum.com/t/how-to-grab-arguments-in-post-request/169125 "2009-05-29T23:27:05Z")

</div>

In nginx 0.6.37, is there any way at all to get the arguments of a POST request? I’ve seen that this doesn’t work with static files, but is there any way to structure the POST request such that I can grab the argument…

---

## [Geo-ip + nginx](https://www.ruby-forum.com/t/geo-ip-nginx/169038)

<div class="topic-metadata">

**Author:** [@Payam\_C](https://www.ruby-forum.com/u/Payam_C)\
**Replies:** 5\
**Last updated:** [May 29, 2009, 9:02pm UTC](https://www.ruby-forum.com/t/geo-ip-nginx/169038 "2009-05-29T21:02:51Z")

</div>

hey guys, anyone know the upper limits of number of acl lines for geo-ip /w nginx? I have a list of 7000 lines and i feel that i might be hitting a performance wall at 20-30mbps of request (6-9k req/sec) boxes im usi…

---

## [Multiple IP alias to be used with Nginx](https://www.ruby-forum.com/t/multiple-ip-alias-to-be-used-with-nginx/169123)

<div class="topic-metadata">

**Author:** [@Payam\_C](https://www.ruby-forum.com/u/Payam_C)\
**Replies:** 3\
**Last updated:** [May 29, 2009, 8:17pm UTC](https://www.ruby-forum.com/t/multiple-ip-alias-to-be-used-with-nginx/169123 "2009-05-29T20:17:41Z")

</div>

Hey guys, had a question for anyone that is utilizing massive amount of ip alise on nix to allow proper ip listening for nginx. I currently have 1x/24 and 1x/23 network that i need nginx to listen for… I also run ind…

---

## [URL Unescaping in rewrite](https://www.ruby-forum.com/t/url-unescaping-in-rewrite/169078)

<div class="topic-metadata">

**Author:** [@ankur](https://www.ruby-forum.com/u/ankur)\
**Replies:** 1\
**Last updated:** [May 29, 2009, 4:24am UTC](https://www.ruby-forum.com/t/url-unescaping-in-rewrite/169078 "2009-05-29T04:24:49Z")

</div>

Hello, When trying to rewrite a URL like: /a/b to ?q=a&i=b when a is something of the form “XYZ%26300” the rewritten URL becomes ?q=XYZ&300&i=b Why does nginx unescape the URL on rewrite and how can this be avoi…

---

## [Can't get Nginx to work with memcached](https://www.ruby-forum.com/t/cant-get-nginx-to-work-with-memcached/168984)

<div class="topic-metadata">

**Author:** [@sayeo87](https://www.ruby-forum.com/u/sayeo87)\
**Replies:** 4\
**Last updated:** [May 29, 2009, 3:22am UTC](https://www.ruby-forum.com/t/cant-get-nginx-to-work-with-memcached/168984 "2009-05-29T03:22:38Z")

</div>

Hi, I think I’m having trouble even getting the most basic case of Nginx+memcached working properly. Here is my /etc/nginx/nginx.conf file: user www-data; worker\_processes 1; error\_log /var/log/nginx/error.log; p…

---

## [Proxy\_cache\_path levels](https://www.ruby-forum.com/t/proxy-cache-path-levels/169011)

<div class="topic-metadata">

**Author:** [@nfn](https://www.ruby-forum.com/u/nfn)\
**Replies:** 2\
**Last updated:** [May 28, 2009, 9:01pm UTC](https://www.ruby-forum.com/t/proxy-cache-path-levels/169011 "2009-05-28T21:01:13Z")

</div>

Hi, I’m trying to understand how proxy\_cache\_path levels works, but any changes I made to levels=1:2 will not be accepted bu nginx. What are levels for and how can I use it?? Are the values 1:2 the only ones that ca…

---

## [Proxy\_cache does not work](https://www.ruby-forum.com/t/proxy-cache-does-not-work/168994)

<div class="topic-metadata">

**Author:** [@Nime](https://www.ruby-forum.com/u/Nime)\
**Replies:** 2\
**Last updated:** [May 28, 2009, 7:54pm UTC](https://www.ruby-forum.com/t/proxy-cache-does-not-work/168994 "2009-05-28T19:54:14Z")

</div>

Hello, I am running nginx 0.7.57 on FreeBSD 7.1 64 bit I have added following lines to http config: proxy\_cache\_path /home/nginx/cache levels=1:2 keys\_zone=one:10m max\_size=200m; proxy\_temp\_path /home/nginx/temp; …

---

## [Nginx and eaccelerator](https://www.ruby-forum.com/t/nginx-and-eaccelerator/168973)

<div class="topic-metadata">

**Author:** [@supasta](https://www.ruby-forum.com/u/supasta)\
**Replies:** 3\
**Last updated:** [May 28, 2009, 7:15pm UTC](https://www.ruby-forum.com/t/nginx-and-eaccelerator/168973 "2009-05-28T19:15:18Z")

</div>

Should worker\_processes be kept to 1, I read somewhere that with lighty you should do this or all the information for eaccelerator gets duplicated with each process, is this an issue with nginx?

---

## [Possible bug in "root" declaration?](https://www.ruby-forum.com/t/possible-bug-in-root-declaration/169031)

<div class="topic-metadata">

**Author:** [@Systems\_Maintenance](https://www.ruby-forum.com/u/Systems_Maintenance)\
**Replies:** 3\
**Last updated:** [May 28, 2009, 5:04pm UTC](https://www.ruby-forum.com/t/possible-bug-in-root-declaration/169031 "2009-05-28T17:04:32Z")

</div>

Below is part of a server block for a particular vhost: server { server\_name mysite.tld ~^.+.mysite.tld$; set $base /var/www/mysite; if ( $host ~\* "^(x|y|z)\\.mysite\\.tld$" ){ set $files misc; } if ( $host ~\* "^(a…

---

## [Nginx-0.7.59](https://www.ruby-forum.com/t/nginx-0-7-59/168756)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 16\
**Last updated:** [May 28, 2009, 2:24pm UTC](https://www.ruby-forum.com/t/nginx-0-7-59/168756 "2009-05-28T14:24:57Z")

</div>

Changes with nginx 0.7.59 25 May 2009 \*) Feature: the "proxy\_cache\_methods" and "fastcgi\_cache\_methods" directives. \*) Bugfix: socket leak; the bug had appeared in 0.7.25. …

---

## [X-Accel-Redirect doen't work with php pages](https://www.ruby-forum.com/t/x-accel-redirect-doent-work-with-php-pages/168954)

<div class="topic-metadata">

**Author:** [@danmezzetti](https://www.ruby-forum.com/u/danmezzetti)\
**Replies:** 3\
**Last updated:** [May 28, 2009, 11:42am UTC](https://www.ruby-forum.com/t/x-accel-redirect-doent-work-with-php-pages/168954 "2009-05-28T11:42:07Z")

</div>

Hi all, i tried using X-Accel-Redirect as described on this guide: http://blog.kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-rails/ If i use this conf: daniele@lara:/var/www$ cat down.php \<? // And redirect user…

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

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