# Server

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

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

---

## [Testing nginx caching](https://www.ruby-forum.com/t/testing-nginx-caching/174648)

<div class="topic-metadata">

**Author:** [@fredericsidler](https://www.ruby-forum.com/u/fredericsidler)\
**Replies:** 3\
**Last updated:** [September 1, 2009, 4:08am UTC](https://www.ruby-forum.com/t/testing-nginx-caching/174648 "2009-09-01T04:08:54Z")

</div>

I’m trying to use nginx with caching capabilities. And I don’t know how to test if nginx is really caching files and using them. I can see the files that nginx is caching, but I don’t know if it uses them when I reque…

---

## [Memcached problems](https://www.ruby-forum.com/t/memcached-problems/174717)

<div class="topic-metadata">

**Author:** [@InterNetXSJSSS\_rg](https://www.ruby-forum.com/u/InterNetXSJSSS_rg)\
**Replies:** 1\
**Last updated:** [August 31, 2009, 9:58pm UTC](https://www.ruby-forum.com/t/memcached-problems/174717 "2009-08-31T21:58:49Z")

</div>

Hallo folks again, i try to configure nginx to deliver swf files etc, and wanted to cache them within memcached. but until now i didnt have much success with that. what i already did: include/excluded parts of the c…

---

## [Proxy\_pass directive not being honored/incorrect proxy\_pass being used](https://www.ruby-forum.com/t/proxy-pass-directive-not-being-honored-incorrect-proxy-pass-being-used/174593)

<div class="topic-metadata">

**Author:** [@jdegra](https://www.ruby-forum.com/u/jdegra)\
**Replies:** 1\
**Last updated:** [August 31, 2009, 6:55pm UTC](https://www.ruby-forum.com/t/proxy-pass-directive-not-being-honored-incorrect-proxy-pass-being-used/174593 "2009-08-31T18:55:00Z")

</div>

Background: 2 web servers behind load balancers; gentoo as OS but different “versions” server1 has gcc 3.3.5 server2 has gcc 4.1.1 compile options --with-http\_ssl\_module --with-debug --user=daemon –group=daemo…

---

## [Nginx-0.8.13](https://www.ruby-forum.com/t/nginx-0-8-13/174699)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 1\
**Last updated:** [August 31, 2009, 6:38pm UTC](https://www.ruby-forum.com/t/nginx-0-8-13/174699 "2009-08-31T18:38:37Z")

</div>

Changes with nginx 0.8.13 31 Aug 2009 \*) Bugfix: in the "aio sendfile" directive. the bug had appeared in 0.8.12. \*) Bugfix: nginx could not be built without the --with-file-a…

---

## [Re: Strange "Connection Hanging Problem"](https://www.ruby-forum.com/t/re-strange-connection-hanging-problem/174703)

<div class="topic-metadata">

**Author:** [@Shri\_S\_DevLib.Org](https://www.ruby-forum.com/u/Shri_S_DevLib.Org)\
**Replies:** 0\
**Last updated:** [August 31, 2009, 6:02pm UTC](https://www.ruby-forum.com/t/re-strange-connection-hanging-problem/174703 "2009-08-31T18:02:19Z")

</div>

Quick FYI. I’ve downgraded to 0.7.60 and this problem does not occur. If someone can give me some debugging hints, I’d be happy to assist. ----- Original Message ----- From: Shri @ DevLib.Org To: removed\_email\_addres…

---

## [Strange "Connection Hanging Problem"](https://www.ruby-forum.com/t/strange-connection-hanging-problem/174698)

<div class="topic-metadata">

**Author:** [@Shri\_S\_DevLib.Org](https://www.ruby-forum.com/u/Shri_S_DevLib.Org)\
**Replies:** 1\
**Last updated:** [August 31, 2009, 5:12pm UTC](https://www.ruby-forum.com/t/strange-connection-hanging-problem/174698 "2009-08-31T17:12:33Z")

</div>

I seem to have a strange problem, that can best be reproduced by this curl http://www.geobaby.com/calendar/ – works (connection terminates and control returns back to the prompt) wget http://www.geobaby.com/calendar/ …

---

## [Nginx restart trouble](https://www.ruby-forum.com/t/nginx-restart-trouble/174689)

<div class="topic-metadata">

**Author:** [@gromminger](https://www.ruby-forum.com/u/gromminger)\
**Replies:** 3\
**Last updated:** [August 31, 2009, 4:57pm UTC](https://www.ruby-forum.com/t/nginx-restart-trouble/174689 "2009-08-31T16:57:20Z")

</div>

Hello, i got some problems with nginx when a “/etc/init.d/nginx restart” is beeing done. Sometimes Nginx (doesnt matter which version… 0.6.x & 0.7.x seem to be affected) dies. Sometimes i see processes which are call…

---

## [Nginx logfile definition](https://www.ruby-forum.com/t/nginx-logfile-definition/174693)

<div class="topic-metadata">

**Author:** [@gromminger](https://www.ruby-forum.com/u/gromminger)\
**Replies:** 3\
**Last updated:** [August 31, 2009, 4:40pm UTC](https://www.ruby-forum.com/t/nginx-logfile-definition/174693 "2009-08-31T16:40:56Z")

</div>

hello folks, i am looking for a possibility to get nginx logging the “HTTP request host name”, unfortunly i couldnt find anything in the english docs :frowning: thanks

---

## [Pipe logfiles to perl script](https://www.ruby-forum.com/t/pipe-logfiles-to-perl-script/174692)

<div class="topic-metadata">

**Author:** [@gromminger](https://www.ruby-forum.com/u/gromminger)\
**Replies:** 3\
**Last updated:** [August 31, 2009, 4:40pm UTC](https://www.ruby-forum.com/t/pipe-logfiles-to-perl-script/174692 "2009-08-31T16:40:56Z")

</div>

Hello Folks, i am badly looking for a solution to get nginx pipe his logfiles … something like cronolog or in my case a special perl script. are there anyy solutions or patches around? thanks

---

## [Weird 0.8.11.1 connections spike](https://www.ruby-forum.com/t/weird-0-8-11-1-connections-spike/174603)

<div class="topic-metadata">

**Author:** [@jwigal](https://www.ruby-forum.com/u/jwigal)\
**Replies:** 26\
**Last updated:** [August 31, 2009, 4:15pm UTC](https://www.ruby-forum.com/t/weird-0-8-11-1-connections-spike/174603 "2009-08-31T16:15:46Z")

</div>

Howdy, Seeing some odd behaviour with 0.8.11.1 (only running it on one production machine so far)… has a change been made to connection handling or status output? Active connections chart from the last hour: http:…

---

## [Nginx-0.8.12](https://www.ruby-forum.com/t/nginx-0-8-12/174685)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 2\
**Last updated:** [August 31, 2009, 3:40pm UTC](https://www.ruby-forum.com/t/nginx-0-8-12/174685 "2009-08-31T15:40:38Z")

</div>

Changes with nginx 0.8.12 31 Aug 2009 \*) Feature: the "sendfile" parameter in the "aio" directive on FreeBSD. \*) Bugfix: in try\_files; the bug had appeared in 0.8.11. \*) Bugfi…

---

## [How to use multiple IP as proxied connection IP](https://www.ruby-forum.com/t/how-to-use-multiple-ip-as-proxied-connection-ip/174590)

<div class="topic-metadata">

**Author:** [@ZhangSTony](https://www.ruby-forum.com/u/ZhangSTony)\
**Replies:** 7\
**Last updated:** [August 31, 2009, 11:54am UTC](https://www.ruby-forum.com/t/how-to-use-multiple-ip-as-proxied-connection-ip/174590 "2009-08-31T11:54:35Z")

</div>

Hi Currently, my Nginx service IP is used as both VIP (service IP) and proxied connection source IP ( I use Nginx as pure proxy server), since I use close connection to user client, and close connection is used betwe…

---

## [Dancing with a tambourine - "PHP"](https://www.ruby-forum.com/t/dancing-with-a-tambourine-php/174645)

<div class="topic-metadata">

**Author:** [@gloomen](https://www.ruby-forum.com/u/gloomen)\
**Replies:** 4\
**Last updated:** [August 31, 2009, 9:59am UTC](https://www.ruby-forum.com/t/dancing-with-a-tambourine-php/174645 "2009-08-31T09:59:49Z")

</div>

Hi all! Problems with PHP, when approaching the site, appears in the logs: ee /var/log/php-fpm.log Aug 30 23:11:22.960921 fpm\_request\_check\_timed\_out(), line 146: child 596, script ‘/usr/local/www/web1/index.php’ (p…

---

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

<div class="topic-metadata">

**Author:** [@Mahyuddin\_S](https://www.ruby-forum.com/u/Mahyuddin_S)\
**Replies:** 0\
**Last updated:** [August 30, 2009, 7:14pm UTC](https://www.ruby-forum.com/t/nginx-and-lightsquid/174637 "2009-08-30T19:14:10Z")

</div>

Hi i want to setup lightsquid and i have nginx as webserver. but i hear that lightsquid running ander cgi. somebody can help me to setup nginx for lightsquid? thanks…

---

## [Http status code statistics](https://www.ruby-forum.com/t/http-status-code-statistics/174565)

<div class="topic-metadata">

**Author:** [@Pior\_B](https://www.ruby-forum.com/u/Pior_B)\
**Replies:** 2\
**Last updated:** [August 30, 2009, 4:58pm UTC](https://www.ruby-forum.com/t/http-status-code-statistics/174565 "2009-08-30T16:58:22Z")

</div>

Hello All, There is an interesting metric about webserver: the rate of the http status code. I would be able to plot “good”/2xx-3xx and “bad”/4xx-5xx status code rate. Is there an efficient way to achieve that ? I…

---

## [Upload module 2.0.10](https://www.ruby-forum.com/t/upload-module-2-0-10/174636)

<div class="topic-metadata">

**Author:** [@Valery\_K](https://www.ruby-forum.com/u/Valery_K)\
**Replies:** 2\
**Last updated:** [August 30, 2009, 1:59pm UTC](https://www.ruby-forum.com/t/upload-module-2-0-10/174636 "2009-08-30T13:59:15Z")

</div>

Changes in version 2.0.10: Change: compatibility with nginx API 0.8.11; Fixed bug: Prevent module from registering store path if no upload location was configured; Fixed bug: upload corruption in case of short body + …

---

## [Nginx (anomalies with pictures)](https://www.ruby-forum.com/t/nginx-anomalies-with-pictures/174596)

<div class="topic-metadata">

**Author:** [@gloomen](https://www.ruby-forum.com/u/gloomen)\
**Replies:** 2\
**Last updated:** [August 30, 2009, 8:02am UTC](https://www.ruby-forum.com/t/nginx-anomalies-with-pictures/174596 "2009-08-30T08:02:12Z")

</div>

Hello! Look please the configuration: When you come to “http://server1.com/phpmyadmin” - the image is displayed But after entering the login and password “http://server1.com/phpmyadmin” - images are not displayed!, …

---

## [Country banning](https://www.ruby-forum.com/t/country-banning/174608)

<div class="topic-metadata">

**Author:** [@joviyach](https://www.ruby-forum.com/u/joviyach)\
**Replies:** 8\
**Last updated:** [August 29, 2009, 11:35pm UTC](https://www.ruby-forum.com/t/country-banning/174608 "2009-08-29T23:35:16Z")

</div>

We’re dealing with a high degree of fraud from certain countries and would like to simply ban all IP’s from those countries. I seem to recall reading here that using the Geo module is more efficient for this purpose t…

---

## [Memcached module using unix sockets](https://www.ruby-forum.com/t/memcached-module-using-unix-sockets/174575)

<div class="topic-metadata">

**Author:** [@bryanp](https://www.ruby-forum.com/u/bryanp)\
**Replies:** 1\
**Last updated:** [August 29, 2009, 1:10pm UTC](https://www.ruby-forum.com/t/memcached-module-using-unix-sockets/174575 "2009-08-29T13:10:09Z")

</div>

I configured nginx to try memcached for the page before passing the request to the backend. However, the memcached module cannot find the data at any key given. My assumption is that the module does not support unix…

---

## [Internal proxy passes](https://www.ruby-forum.com/t/internal-proxy-passes/174598)

<div class="topic-metadata">

**Author:** [@kastorilo](https://www.ruby-forum.com/u/kastorilo)\
**Replies:** 1\
**Last updated:** [August 29, 2009, 12:36pm UTC](https://www.ruby-forum.com/t/internal-proxy-passes/174598 "2009-08-29T12:36:47Z")

</div>

Hi, When you proxy\_pass to a server that is hosted on the same nginx installation, is the ‘connection’ handled internally, or is a new socket opened and passed as it would if the host was on a different server? Thank…

---

## [Redirect a particular request to another domain?](https://www.ruby-forum.com/t/redirect-a-particular-request-to-another-domain/174585)

<div class="topic-metadata">

**Author:** [@iberci](https://www.ruby-forum.com/u/iberci)\
**Replies:** 0\
**Last updated:** [August 29, 2009, 6:39am UTC](https://www.ruby-forum.com/t/redirect-a-particular-request-to-another-domain/174585 "2009-08-29T06:39:46Z")

</div>

we had sent out a news letter where a href tag that was supposed to go to another domain ended up looking like this: http://www.ourdomain.com/www.theirdomain.com Is there an easy way in nginx to redirect this type of…

---

## [Nginx and proxy\_cache does seem to be used](https://www.ruby-forum.com/t/nginx-and-proxy-cache-does-seem-to-be-used/174577)

<div class="topic-metadata">

**Author:** [@fredericsidler](https://www.ruby-forum.com/u/fredericsidler)\
**Replies:** 0\
**Last updated:** [August 28, 2009, 11:44pm UTC](https://www.ruby-forum.com/t/nginx-and-proxy-cache-does-seem-to-be-used/174577 "2009-08-28T23:44:45Z")

</div>

I’m a scalr.net user. Scalr.net is a management system that sits on top of Amazon Web Services. It does use nginx as load balancer when you build a farm with app servers behind it. I was fine with it until I reached a…

---

## [How to config nginx to download html file instead of opening it?](https://www.ruby-forum.com/t/how-to-config-nginx-to-download-html-file-instead-of-opening-it/174342)

<div class="topic-metadata">

**Author:** [@jzhang](https://www.ruby-forum.com/u/jzhang)\
**Replies:** 5\
**Last updated:** [August 28, 2009, 3:35pm UTC](https://www.ruby-forum.com/t/how-to-config-nginx-to-download-html-file-instead-of-opening-it/174342 "2009-08-28T15:35:54Z")

</div>

Hello everyone, I want to config the server when user access a html file, the browser would popup the Save File dialog, instead of opening it in window. Your help will be appreciated greatly. Jason Zhang Posted at N…

---

## [Ngx\_unix\_recv problem](https://www.ruby-forum.com/t/ngx-unix-recv-problem/174478)

<div class="topic-metadata">

**Author:** [@wangbin579](https://www.ruby-forum.com/u/wangbin579)\
**Replies:** 4\
**Last updated:** [August 28, 2009, 5:17am UTC](https://www.ruby-forum.com/t/ngx-unix-recv-problem/174478 "2009-08-28T05:17:12Z")

</div>

the http request: wget -O /tmp/re -S “http://\*\*\*/setcookie” –post-data=‘username=liufeng&loginCookie=ayaheiheifn&domain=xxx.com’ the http request sends two packets,and ngx\_unix\_recv is called two times. the first c…

---

## [Nginx.conf PHP example on Windows](https://www.ruby-forum.com/t/nginx-conf-php-example-on-windows/174501)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [August 27, 2009, 6:23pm UTC](https://www.ruby-forum.com/t/nginx-conf-php-example-on-windows/174501 "2009-08-27T18:23:53Z")

</div>

The default PHP example is insecure on Windows. It needs to be ~\* instead of ~. Otherwise, someone can request .PHP instead of .php and read the text of the PHP file. You may want to point this out somewhere in the d…

---

## [Worrisome logfile entry](https://www.ruby-forum.com/t/worrisome-logfile-entry/174496)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [August 27, 2009, 4:27pm UTC](https://www.ruby-forum.com/t/worrisome-logfile-entry/174496 "2009-08-27T16:27:58Z")

</div>

Howdy all I was looking at my log file and noticed a bunch of requests for /…/, /…/, etc. Presumably these are someone attempting to be malicious. Now, here’s the problem. I tried these to see what would happen. All …

---

## [Nginx.conf - @ (at symbol)](https://www.ruby-forum.com/t/nginx-conf-at-symbol/174458)

<div class="topic-metadata">

**Author:** [@renian](https://www.ruby-forum.com/u/renian)\
**Replies:** 1\
**Last updated:** [August 27, 2009, 12:29am UTC](https://www.ruby-forum.com/t/nginx-conf-at-symbol/174458 "2009-08-27T00:29:11Z")

</div>

Sorry, not a ruby / mongrel question, but this forum looks active. Can anyone tell me the functionality of the @ symbol in the following statement? location @joomla { rewrite ^(.\*)$ /index.php?q=$1 last; } (from ht…

---

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

<div class="topic-metadata">

**Author:** [@dcian](https://www.ruby-forum.com/u/dcian)\
**Replies:** 10\
**Last updated:** [August 26, 2009, 11:51pm UTC](https://www.ruby-forum.com/t/rewrite-help-needed/174407 "2009-08-26T23:51:08Z")

</div>

Hi All I am trying to set up a wordpress site using nginx, and I am running into trouble. Started with the page at Wordpress as CMS tutorial ~ Robert Basic, software developer making web applications better but things…

---

## [Is it possible to connect to memcached and check in access phase?](https://www.ruby-forum.com/t/is-it-possible-to-connect-to-memcached-and-check-in-access-phase/161037)

<div class="topic-metadata">

**Author:** [@Huy\_Phan](https://www.ruby-forum.com/u/Huy_Phan)\
**Replies:** 13\
**Last updated:** [August 26, 2009, 10:05pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-connect-to-memcached-and-check-in-access-phase/161037 "2009-08-26T22:05:08Z")

</div>

I’m trying to build a nginx module for the need of my workflow : In access phase : Connect to the memcached and get value for key “abcxyz” If the value is 1, return NGX\_HTTP\_OK ( 200 ) If the value is 0, return NGX\_H…

---

## [How to redirect 302 in code?](https://www.ruby-forum.com/t/how-to-redirect-302-in-code/174358)

<div class="topic-metadata">

**Author:** [@wangbin579](https://www.ruby-forum.com/u/wangbin579)\
**Replies:** 2\
**Last updated:** [August 26, 2009, 9:03pm UTC](https://www.ruby-forum.com/t/how-to-redirect-302-in-code/174358 "2009-08-26T21:03:04Z")

</div>

the following code does not work in nginx-0.8.6,who can tell me why? thx location = ngx\_palloc(r-\>pool, strlen(url)); … r-\>headers\_out.location = ngx\_palloc(r-\>pool, sizeof(ngx\_table\_elt\_t)); … ngx\_copy(location, u…

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

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