# Server

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

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

---

## [New wiki](https://www.ruby-forum.com/t/new-wiki/162645)

<div class="topic-metadata">

**Author:** [@cliffwiggs](https://www.ruby-forum.com/u/cliffwiggs)\
**Replies:** 70\
**Last updated:** [March 18, 2009, 5:48pm UTC](https://www.ruby-forum.com/t/new-wiki/162645 "2009-03-18T17:48:02Z")

</div>

I’ve gone ahead and redirected http://wiki.codemongers.com to http://www.nginx-community.org. The old wiki is still available at http://oldwiki.nginx-community.org in case there’s anything there we still need to migra…

---

## [Start use capabilities on linux](https://www.ruby-forum.com/t/start-use-capabilities-on-linux/163170)

<div class="topic-metadata">

**Author:** [@Kirill\_ASKorinskiy](https://www.ruby-forum.com/u/Kirill_ASKorinskiy)\
**Replies:** 5\
**Last updated:** [March 18, 2009, 5:26pm UTC](https://www.ruby-forum.com/t/start-use-capabilities-on-linux/163170 "2009-03-18T17:26:12Z")

</div>

From: Kirill A. Korinskiy removed\_email\_address@domain.invalid The nginx required privilege mode only on master process and only bind ports \<1024. In linux proccess can bind ports \<1024 in not privilege mode if the p…

---

## [RE: Configuration Primer](https://www.ruby-forum.com/t/re-configuration-primer/163228)

<div class="topic-metadata">

**Author:** [@Chris\_Z](https://www.ruby-forum.com/u/Chris_Z)\
**Replies:** 1\
**Last updated:** [March 18, 2009, 4:30pm UTC](https://www.ruby-forum.com/t/re-configuration-primer/163228 "2009-03-18T16:30:50Z")

</div>

Probably the only thing I’d like to see more of in the wiki / docs is real world examples, like php.net’s docs.

---

## [Nginx-0.7.43](https://www.ruby-forum.com/t/nginx-0-7-43/163230)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 1\
**Last updated:** [March 18, 2009, 4:09pm UTC](https://www.ruby-forum.com/t/nginx-0-7-43/163230 "2009-03-18T16:09:31Z")

</div>

Changes with nginx 0.7.43 18 Mar 2009 \*) Bugfix: a request was handled incorrectly, if a "root" directive used variables; the bug had appeared in 0.7.42. \*) Bugfix: if a serve…

---

## [Nginx-0.7.42](https://www.ruby-forum.com/t/nginx-0-7-42/162960)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 11\
**Last updated:** [March 18, 2009, 3:41pm UTC](https://www.ruby-forum.com/t/nginx-0-7-42/162960 "2009-03-18T15:41:20Z")

</div>

Changes with nginx 0.7.42 16 Mar 2009 \*) Change: now the "Invalid argument" error returned by setsockopt(TCP\_NODELAY) on Solaris, is ignored. \*) Change: now if a file specifie…

---

## [Details about HTTP Headers Caching module](https://www.ruby-forum.com/t/details-about-http-headers-caching-module/163231)

<div class="topic-metadata">

**Author:** [@Latesh\_Galia](https://www.ruby-forum.com/u/Latesh_Galia)\
**Replies:** 2\
**Last updated:** [March 18, 2009, 3:06pm UTC](https://www.ruby-forum.com/t/details-about-http-headers-caching-module/163231 "2009-03-18T15:06:28Z")

</div>

Here are some details about the module that we want to sponsor development for: We want to use nginx as a reverse proxy for a Domain Forwarding Service This would require nginx to cache responses that contain only he…

---

## [Compilation failed on version \>= 0.7.38 with ngx\_http\_upstream\_hash\_module](https://www.ruby-forum.com/t/compilation-failed-on-version-0-7-38-with-ngx-http-upstream-hash-module/163223)

<div class="topic-metadata">

**Author:** [@vchav](https://www.ruby-forum.com/u/vchav)\
**Replies:** 1\
**Last updated:** [March 18, 2009, 12:50pm UTC](https://www.ruby-forum.com/t/compilation-failed-on-version-0-7-38-with-ngx-http-upstream-hash-module/163223 "2009-03-18T12:50:05Z")

</div>

make\[1\]: Entering directory /usr/local/src/nginx-0.7.42' gcc -c -O -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Wno-unused-function -Wunused-variable -Wunused-value -Werror -g -I src/core -I src/event -I src/…

---

## [NginxHttpLogModule](https://www.ruby-forum.com/t/nginxhttplogmodule/163200)

<div class="topic-metadata">

**Author:** [@Chris\_Z](https://www.ruby-forum.com/u/Chris_Z)\
**Replies:** 0\
**Last updated:** [March 18, 2009, 8:27am UTC](https://www.ruby-forum.com/t/nginxhttplogmodule/163200 "2009-03-18T08:27:42Z")

</div>

In log\_format there is an option for %msec. Is it possible to get the same format but only down to the second? Chris

---

## [Phantom event?](https://www.ruby-forum.com/t/phantom-event/129149)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [March 18, 2009, 2:18am UTC](https://www.ruby-forum.com/t/phantom-event/129149 "2009-03-18T02:18:52Z")

</div>

i get these in my error logs… what does this mean? is this serious? 2008/02/14 11:01:25 \[alert\] 18361#0: phantom event 0004 for closed and removed socket 12 2008/02/14 12:04:47 \[alert\] 18361#0: phantom event 0004 for …

---

## [How to retrieve HTTP header from Apache in nginx?](https://www.ruby-forum.com/t/how-to-retrieve-http-header-from-apache-in-nginx/148162)

<div class="topic-metadata">

**Author:** [@Alex\_Man](https://www.ruby-forum.com/u/Alex_Man)\
**Replies:** 9\
**Last updated:** [March 18, 2009, 2:07am UTC](https://www.ruby-forum.com/t/how-to-retrieve-http-header-from-apache-in-nginx/148162 "2009-03-18T02:07:38Z")

</div>

Hi, I have the following setup: Apache -\> Squid -\> nginx -\> Zope Zope needs a header that is set by Apache in httpd.conf like the following: RequestHeader set USER %{VALUE} My question is, how can I ask nginx to pa…

---

## [Incorrect server address passed to PHP through FastCGI(from nginx version 0.7.36)](https://www.ruby-forum.com/t/incorrect-server-address-passed-to-php-through-fastcgi-from-nginx-version-0-7-36/163069)

<div class="topic-metadata">

**Author:** [@Kinch\_Zhang](https://www.ruby-forum.com/u/Kinch_Zhang)\
**Replies:** 5\
**Last updated:** [March 18, 2009, 12:51am UTC](https://www.ruby-forum.com/t/incorrect-server-address-passed-to-php-through-fastcgi-from-nginx-version-0-7-36/163069 "2009-03-18T00:51:48Z")

</div>

Hi, there. We’re using nginx with PHP through FastCGI, and from nginx 0.7.36 on, the PHP global variable $\_SERVER\[“SERVER\_ADDR”\] is always 0.0.0.0, but with the same PHP configuration, nginx 0.7.35 passed the correc…

---

## [Add size of empty gif](https://www.ruby-forum.com/t/add-size-of-empty-gif/196919)

<div class="topic-metadata">

**Author:** [@Kirill\_ASKorinskiy](https://www.ruby-forum.com/u/Kirill_ASKorinskiy)\
**Replies:** 2\
**Last updated:** [March 18, 2009, 12:49am UTC](https://www.ruby-forum.com/t/add-size-of-empty-gif/196919 "2009-03-18T00:49:27Z")

</div>

From: Kirill A. Korinskiy removed\_email\_address@domain.invalid ngx\_http\_empty\_gif\_module' is a simplpe module for send 1x1 transparent gif. Since the gif can contain any number of garbages data after the header, I adde…

---

## [Drupal+nginx: this works =\> using try\_files](https://www.ruby-forum.com/t/drupal-nginx-this-works-using-try-files/163091)

<div class="topic-metadata">

**Author:** [@larios](https://www.ruby-forum.com/u/larios)\
**Replies:** 4\
**Last updated:** [March 17, 2009, 11:30pm UTC](https://www.ruby-forum.com/t/drupal-nginx-this-works-using-try-files/163091 "2009-03-17T23:30:58Z")

</div>

The following has been tested in Nginx 0.7.42 + Drupal 6.10 + Ubuntu 8.10. M. The tests included calls to: http://clinica.0/index.php # ok http://clinica.0 # ok http://www.clinica.0 # ok http://clin…

---

## [Add size of empty gif](https://www.ruby-forum.com/t/add-size-of-empty-gif/163157)

<div class="topic-metadata">

**Author:** [@Kirill\_ASKorinskiy](https://www.ruby-forum.com/u/Kirill_ASKorinskiy)\
**Replies:** 0\
**Last updated:** [March 17, 2009, 8:10pm UTC](https://www.ruby-forum.com/t/add-size-of-empty-gif/163157 "2009-03-17T20:10:22Z")

</div>

From: Kirill A. Korinskiy removed\_email\_address@domain.invalid ngx\_http\_empty\_gif\_module' is a simplpe module for send 1x1 transparent gif. Since the gif can contain any number of garbages data after the header, I adde…

---

## [Rewrite URI and pass request to the upstream server](https://www.ruby-forum.com/t/rewrite-uri-and-pass-request-to-the-upstream-server/163142)

<div class="topic-metadata">

**Author:** [@rub3n](https://www.ruby-forum.com/u/rub3n)\
**Replies:** 5\
**Last updated:** [March 17, 2009, 6:54pm UTC](https://www.ruby-forum.com/t/rewrite-uri-and-pass-request-to-the-upstream-server/163142 "2009-03-17T18:54:19Z")

</div>

Hi friends, I need rewrite and old URI and pass the request to the upstream server, here is my current config file: http://pastie.org/418871 If for example I have http://pe.domain.com/xx-xxx-689 I need redirect to h…

---

## [Nginx init script for redhat (rhel5)](https://www.ruby-forum.com/t/nginx-init-script-for-redhat-rhel5/163070)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 17\
**Last updated:** [March 17, 2009, 6:32pm UTC](https://www.ruby-forum.com/t/nginx-init-script-for-redhat-rhel5/163070 "2009-03-17T18:32:34Z")

</div>

for the most part, it works fine. however, sometimes the pid file disappears (?) also, “restart” does not work if the daemon is not running already. it should handle that gracefully. anyone have a better one? i also …

---

## [How can i get a complete proxy content?](https://www.ruby-forum.com/t/how-can-i-get-a-complete-proxy-content/163004)

<div class="topic-metadata">

**Author:** [@pf\_shineyear](https://www.ruby-forum.com/u/pf_shineyear)\
**Replies:** 4\
**Last updated:** [March 17, 2009, 8:52am UTC](https://www.ruby-forum.com/t/how-can-i-get-a-complete-proxy-content/163004 "2009-03-17T08:52:04Z")

</div>

hi i try to get a complete proxy content from a body filter like this: struct ngx\_chain\_s \*tmp\_in = in; while (tmp\_in) { len = tmp\_in-\>buf-\>last - tmp\_in-\>buf-\>pos; if (len \<= 0) { if (tmp\_in-\>next == NULL)b…

---

## [17289#0: open socket #14 left in 39 connection](https://www.ruby-forum.com/t/17289-0-open-socket-14-left-in-39-connection/162993)

<div class="topic-metadata">

**Author:** [@Jeroen\_StegginkSC](https://www.ruby-forum.com/u/Jeroen_StegginkSC)\
**Replies:** 5\
**Last updated:** [March 17, 2009, 8:27am UTC](https://www.ruby-forum.com/t/17289-0-open-socket-14-left-in-39-connection/162993 "2009-03-17T08:27:56Z")

</div>

Hello, I have installed Nginx 0.6.35 and got the following error: \[alert\] 17289#0: open socket #14 left in 39 connection After this error, the server crashed. At the time the server was under a high load with high di…

---

## [Drupal+nginx: this works](https://www.ruby-forum.com/t/drupal-nginx-this-works/163077)

<div class="topic-metadata">

**Author:** [@JSAntas](https://www.ruby-forum.com/u/JSAntas)\
**Replies:** 0\
**Last updated:** [March 17, 2009, 6:42am UTC](https://www.ruby-forum.com/t/drupal-nginx-this-works/163077 "2009-03-17T06:42:49Z")

</div>

The following has been tested in a Drupal 6.10 + Ubuntu 8.10. M. The tests included calls to: http://clinica.0/index.php # ok http://clinica.0 # ok http://www.clinica.0 # ok http://clinica.0/user/pass…

---

## [Nginx + Memcached: Questions / Advice](https://www.ruby-forum.com/t/nginx-memcached-questions-advice/163032)

<div class="topic-metadata">

**Author:** [@unclouded](https://www.ruby-forum.com/u/unclouded)\
**Replies:** 2\
**Last updated:** [March 17, 2009, 1:10am UTC](https://www.ruby-forum.com/t/nginx-memcached-questions-advice/163032 "2009-03-17T01:10:27Z")

</div>

Hello, I’m looking to add some increased caching to our setup, and was interested in incorporating memcached to nginx. I just had a few questions, looking for a little direction! First, our current setup has an ngin…

---

## [Drupal try\_files php fastcgi](https://www.ruby-forum.com/t/drupal-try-files-php-fastcgi/162838)

<div class="topic-metadata">

**Author:** [@Otto\_Bretz](https://www.ruby-forum.com/u/Otto_Bretz)\
**Replies:** 9\
**Last updated:** [March 16, 2009, 9:55pm UTC](https://www.ruby-forum.com/t/drupal-try-files-php-fastcgi/162838 "2009-03-16T21:55:49Z")

</div>

Hi, I’m having trouble getting $subject to work. I’m running 0.6.35 with the try\_files patch. I tried to follow the config posted in \[1\]. My current config can be found at \[2\]. I’m also not able to get a simple phpin…

---

## [Limit connections' erratic behaviour](https://www.ruby-forum.com/t/limit-connections-erratic-behaviour/162959)

<div class="topic-metadata">

**Author:** [@Asif\_A](https://www.ruby-forum.com/u/Asif_A)\
**Replies:** 7\
**Last updated:** [March 16, 2009, 7:23pm UTC](https://www.ruby-forum.com/t/limit-connections-erratic-behaviour/162959 "2009-03-16T19:23:22Z")

</div>

Dear All, The limit connections module is behaving erratically. I have allocated 20M of Space for storing sessions and our app basically gets 100s of requests from several different hosts. We have very few hosts that…

---

## [Module development](https://www.ruby-forum.com/t/module-development/163017)

<div class="topic-metadata">

**Author:** [@Latesh\_Galia](https://www.ruby-forum.com/u/Latesh_Galia)\
**Replies:** 1\
**Last updated:** [March 16, 2009, 7:06pm UTC](https://www.ruby-forum.com/t/module-development/163017 "2009-03-16T19:06:55Z")

</div>

Hey Igor, My company is interested in getting an HTTP Header caching module developed. I have mailed you about the same about a week ago but did not receive any reply. Waiting to hear from you. Regards, Latesh G

---

## [Server\_name capture and $document\_root](https://www.ruby-forum.com/t/server-name-capture-and-document-root/163001)

<div class="topic-metadata">

**Author:** [@Rapsey](https://www.ruby-forum.com/u/Rapsey)\
**Replies:** 2\
**Last updated:** [March 16, 2009, 3:01pm UTC](https://www.ruby-forum.com/t/server-name-capture-and-document-root/163001 "2009-03-16T15:01:49Z")

</div>

I’m trying to use the new feature from 0.7.40 - captures in server\_name. I use $document\_root in SCRIPT\_FILENAME for fastcgi. The problem is that the captured part of server\_name is not being used. If I check my acces…

---

## [Seems that nginx doesn't pass information properly to php-cgi](https://www.ruby-forum.com/t/seems-that-nginx-doesnt-pass-information-properly-to-php-cgi/162992)

<div class="topic-metadata">

**Author:** [@Hannu\_Ylitalo](https://www.ruby-forum.com/u/Hannu_Ylitalo)\
**Replies:** 0\
**Last updated:** [March 16, 2009, 1:36pm UTC](https://www.ruby-forum.com/t/seems-that-nginx-doesnt-pass-information-properly-to-php-cgi/162992 "2009-03-16T13:36:22Z")

</div>

Hi, I’m trying to migrate from lighttpd to nginx on a server that is running geeklog (http://www.geeklog.net/). For example plugin configuration isn’t working and seems that nginx doesn’t pass information to php prop…

---

## [Dynamic png not working](https://www.ruby-forum.com/t/dynamic-png-not-working/162908)

<div class="topic-metadata">

**Author:** [@Chris\_Cortese](https://www.ruby-forum.com/u/Chris_Cortese)\
**Replies:** 4\
**Last updated:** [March 16, 2009, 1:10pm UTC](https://www.ruby-forum.com/t/dynamic-png-not-working/162908 "2009-03-16T13:10:32Z")

</div>

I just noticed on one of my sites that my php script that calls header(“Content-type: image/png”) and imagepng(), etc., is not creating a png image. This was working before but I’ve not only switched to nginx from Ap…

---

## [SSL cert issue](https://www.ruby-forum.com/t/ssl-cert-issue/162971)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 1\
**Last updated:** [March 16, 2009, 10:57am UTC](https://www.ruby-forum.com/t/ssl-cert-issue/162971 "2009-03-16T10:57:11Z")

</div>

I have no issues on my end - I’ve tried all the major browsers in Windows and I see our chained certificate properly tied to the major CA. However, I have a user who is reporting an issue, and this is the debug log: …

---

## [Nginx with data compression on java applet](https://www.ruby-forum.com/t/nginx-with-data-compression-on-java-applet/162800)

<div class="topic-metadata">

**Author:** [@hirantha](https://www.ruby-forum.com/u/hirantha)\
**Replies:** 5\
**Last updated:** [March 15, 2009, 7:01pm UTC](https://www.ruby-forum.com/t/nginx-with-data-compression-on-java-applet/162800 "2009-03-15T19:01:39Z")

</div>

Hi ALL, I am very new to nginx, and I found the nginx is the perfect tool for me to do reverse-proxy while compressing the data. I have successfully configured the proxy\_pass and gzip configurations and it is working …

---

## [Re: dynamic png not working](https://www.ruby-forum.com/t/re-dynamic-png-not-working/162909)

<div class="topic-metadata">

**Author:** [@Glen\_L](https://www.ruby-forum.com/u/Glen_L)\
**Replies:** 0\
**Last updated:** [March 15, 2009, 5:03pm UTC](https://www.ruby-forum.com/t/re-dynamic-png-not-working/162909 "2009-03-15T17:03:40Z")

</div>

Build your php --with-gd and --with-png-dir Make sure you have install png library

---

## [Nginx include /etc/nginx/sites-enabled/\*; No such file or di](https://www.ruby-forum.com/t/nginx-include-etc-nginx-sites-enabled-no-such-file-or-di/162899)

<div class="topic-metadata">

**Author:** [@bartee](https://www.ruby-forum.com/u/bartee)\
**Replies:** 3\
**Last updated:** [March 15, 2009, 3:45pm UTC](https://www.ruby-forum.com/t/nginx-include-etc-nginx-sites-enabled-no-such-file-or-di/162899 "2009-03-15T15:45:00Z")

</div>

I am setting up a slice on SliceHost I am slowly getting the nginx setup. However … I have this problem nginx include /etc/nginx/sites-enabled/\*; results in No such file or directory) I did a VERY basic setup to …

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

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