# Server

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

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

---

## [Questions about proxy\_pass and internal directives](https://www.ruby-forum.com/t/questions-about-proxy-pass-and-internal-directives/223823)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 11\
**Last updated:** [October 19, 2012, 3:33am UTC](https://www.ruby-forum.com/t/questions-about-proxy-pass-and-internal-directives/223823 "2012-10-19T03:33:16Z")

</div>

Hello, My question is two-part: given the following setup: root /home/www/mysite/static; location /foo/bar/ { proxy\_pass http://127.0.0.1:8080; proxy\_redirect off; } Why a request for “mysite.com/fo…

---

## [Gzip client & proxy with sub\_filter sanity check](https://www.ruby-forum.com/t/gzip-client-proxy-with-sub-filter-sanity-check/223822)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [October 18, 2012, 9:18pm UTC](https://www.ruby-forum.com/t/gzip-client-proxy-with-sub-filter-sanity-check/223822 "2012-10-18T21:18:09Z")

</div>

After some playing with debian’s current version of nginx I’ve reached the conclusion it’s not possible without the gunzip module. Below is my current test configuration, in short I’m trying to reduce the server bandw…

---

## [Getting waitpid error](https://www.ruby-forum.com/t/getting-waitpid-error/223638)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [October 18, 2012, 4:52pm UTC](https://www.ruby-forum.com/t/getting-waitpid-error/223638 "2012-10-18T16:52:55Z")

</div>

Hi, While calling nginx stop we are getting following error: \[alert\] 25563#0: waitpid() failed (10: No child processes) What could be the reason for this problem? How can we solve this? or Can we ignore this error ? …

---

## [Nginx php-fpm setp fastcgi\_pass\_header not being set](https://www.ruby-forum.com/t/nginx-php-fpm-setp-fastcgi-pass-header-not-being-set/223815)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [October 18, 2012, 4:37pm UTC](https://www.ruby-forum.com/t/nginx-php-fpm-setp-fastcgi-pass-header-not-being-set/223815 "2012-10-18T16:37:42Z")

</div>

I am using Nginx + php-fpm setup I noticed that I could set fastcgi\_param however fastcgi\_pass\_header is not being set. I tried to print $\_SERVER in php which has only fastcgi\_params and not fastcgi\_pass\_headers. …

---

## [Logging 'return 404' to error log?](https://www.ruby-forum.com/t/logging-return-404-to-error-log/223814)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [October 18, 2012, 2:42pm UTC](https://www.ruby-forum.com/t/logging-return-404-to-error-log/223814 "2012-10-18T14:42:01Z")

</div>

Asked this in How to… forum, but it seems not much activity, so i try to post in here… Anyone know this? Hi, I’m have a question like title subject. I have an nginx/1.2.1 installation, the nginx configuration like …

---

## [Rewrite all locations to https except one](https://www.ruby-forum.com/t/rewrite-all-locations-to-https-except-one/223808)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [October 18, 2012, 1:32pm UTC](https://www.ruby-forum.com/t/rewrite-all-locations-to-https-except-one/223808 "2012-10-18T13:32:28Z")

</div>

Hi Everyone, i have this problem with rewrite. As subject says i want to rewrite all locations to https except one, that should remain http. But that one with http isn’t redirecting properly. I’m using nginx 1.2.2 ve…

---

## [Can I use nginx as a normal proxy (not reverse proxy) to a internetwebsite?](https://www.ruby-forum.com/t/can-i-use-nginx-as-a-normal-proxy-not-reverse-proxy-to-a-internetwebsite/223810)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [October 18, 2012, 12:38pm UTC](https://www.ruby-forum.com/t/can-i-use-nginx-as-a-normal-proxy-not-reverse-proxy-to-a-internetwebsite/223810 "2012-10-18T12:38:09Z")

</div>

Hello All, I’am a rookie with nginx configuration and would be glad if someone could help me. Can I use nginx as a normal proxy (not reverse proxy) for an internal application to the internet. For exmple: I have a…

---

## [Try\_files rewrite drops other get variables](https://www.ruby-forum.com/t/try-files-rewrite-drops-other-get-variables/223758)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [October 18, 2012, 4:21am UTC](https://www.ruby-forum.com/t/try-files-rewrite-drops-other-get-variables/223758 "2012-10-18T04:21:35Z")

</div>

A couple of wees ago in “Updating some old ‘if’ statements” (Updating some old "if" statements) it was suggested I use try files instead of the ‘if’ I had. The old location did two things: It ran an extensionless file…

---

## [Http 1.1 chucking support](https://www.ruby-forum.com/t/http-1-1-chucking-support/223755)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [October 18, 2012, 3:00am UTC](https://www.ruby-forum.com/t/http-1-1-chucking-support/223755 "2012-10-18T03:00:22Z")

</div>

nginx mailing list removed\_email\_address@domain.invalid http://mailman.nginx.org/mailman/listinfo/nginx

---

## [Ngx\_openresty devel version 1.2.4.3 released](https://www.ruby-forum.com/t/ngx-openresty-devel-version-1-2-4-3-released/223797)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [October 18, 2012, 1:02am UTC](https://www.ruby-forum.com/t/ngx-openresty-devel-version-1-2-4-3-released/223797 "2012-10-18T01:02:18Z")

</div>

Hello, folks! I am happy to announce the new development version of ngx\_openresty, 1.2.4.3: http://openresty.org/#Download Special thanks go to all our contributors and users for helping make this happen! Below is …

---

## [Dynamic Proxy Pass - is there a more elegant solution?](https://www.ruby-forum.com/t/dynamic-proxy-pass-is-there-a-more-elegant-solution/223789)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [October 17, 2012, 7:33pm UTC](https://www.ruby-forum.com/t/dynamic-proxy-pass-is-there-a-more-elegant-solution/223789 "2012-10-17T19:33:53Z")

</div>

I’m X-Accel-Redirecting URLs that look like: /AWSS3/bucket/key?auth=value Right now my location that handles these and requests from S3 looks like this: location ~ /AWSS3/(.\*) { Store our ETag value. set $rails\_eta…

---

## [Patch: TPROXY support for listening sockets](https://www.ruby-forum.com/t/patch-tproxy-support-for-listening-sockets/223778)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [October 17, 2012, 2:56pm UTC](https://www.ruby-forum.com/t/patch-tproxy-support-for-listening-sockets/223778 "2012-10-17T14:56:17Z")

</div>

Hi, this patch is not meant to provide transparently IP of clients to the backends. It is meant to for nginx to be able to listen on non-local IP, as replacement for (eg.) NATing of incomming connections to local por…

---

## [Condition in location for proxy\_pass](https://www.ruby-forum.com/t/condition-in-location-for-proxy-pass/223774)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [October 17, 2012, 11:46am UTC](https://www.ruby-forum.com/t/condition-in-location-for-proxy-pass/223774 "2012-10-17T11:46:57Z")

</div>

Dear List , I need to do a conditional proxy\_pass , but it’s not happening as expected . like set $target http://www.example.com/sso/url.ping?TargetUrl=http://www.example.com/home And that $target , I would like t…

---

## [Override a set\_empty variable from http params](https://www.ruby-forum.com/t/override-a-set-empty-variable-from-http-params/223695)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [October 17, 2012, 6:05am UTC](https://www.ruby-forum.com/t/override-a-set-empty-variable-from-http-params/223695 "2012-10-17T06:05:41Z")

</div>

Hi all, I set the some params to my backend server as shown below set\_if\_empty $country\_code $http\_x\_country\_code; proxy\_set\_header X-Country-Code $country\_code; Now the http\_x\_country\_code comes via the GeoIP mo…

---

## [Gzip filter on streaming responses](https://www.ruby-forum.com/t/gzip-filter-on-streaming-responses/223731)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [October 16, 2012, 8:54pm UTC](https://www.ruby-forum.com/t/gzip-filter-on-streaming-responses/223731 "2012-10-16T20:54:05Z")

</div>

I did some investigation and the gzip filter will only activate if there is a Content-Length header with valid length. Is there any way of deflating streaming responses from the nginx push stream module? Where is ther…

---

## [Condition in location for proxy\_pass](https://www.ruby-forum.com/t/condition-in-location-for-proxy-pass/223754)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [October 16, 2012, 7:01pm UTC](https://www.ruby-forum.com/t/condition-in-location-for-proxy-pass/223754 "2012-10-16T19:01:18Z")

</div>

Dear List , I need to do a conditional proxy\_pass , but it’s not happening as expected . like set $target http://www.example.com/sso/url.ping?TargetUrl=http://www.example.com/home And that $target , I would like t…

---

## [Ngx\_slowfs\_cache-1.8](https://www.ruby-forum.com/t/ngx-slowfs-cache-1-8/217361)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [October 16, 2012, 2:03pm UTC](https://www.ruby-forum.com/t/ngx-slowfs-cache-1-8/217361 "2012-10-16T14:03:42Z")

</div>

Version 1.8 is now available at: http://labs.frickle.com/nginx\_ngx\_slowfs\_cache/ GitHub repository is available at: Changes: 2012-02-28 VERSION 1.8 \* Fix setting of slowfs process title. In case when local path…

---

## [Nginx/websockets](https://www.ruby-forum.com/t/nginx-websockets/223745)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [October 16, 2012, 1:42pm UTC](https://www.ruby-forum.com/t/nginx-websockets/223745 "2012-10-16T13:42:38Z")

</div>

Hi folks, If there are companies here that would benefit from commercially sponsoring implementation of WebSocket Protocol in nginx, feel free to email me. Many thanks – AA @ nginx

---

## [Upstream: grant recovery time to backend server](https://www.ruby-forum.com/t/upstream-grant-recovery-time-to-backend-server/223741)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [October 16, 2012, 12:51pm UTC](https://www.ruby-forum.com/t/upstream-grant-recovery-time-to-backend-server/223741 "2012-10-16T12:51:12Z")

</div>

Hello, i have a load balancing setup running with nginx in front and 2 tomcats as backend: upstream backend { ip\_hash; server 192.168.1.100; server 192.168.1.101; } Runs fine so far, but from time to time one o…

---

## [Encrypting traffic between Nginx and App Server backend (via FastCGI)](https://www.ruby-forum.com/t/encrypting-traffic-between-nginx-and-app-server-backend-via-fastcgi/223740)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [October 16, 2012, 12:44pm UTC](https://www.ruby-forum.com/t/encrypting-traffic-between-nginx-and-app-server-backend-via-fastcgi/223740 "2012-10-16T12:44:46Z")

</div>

I was wondering if it was possible to encrypt traffic between an Nginx front end and an app server back end? I have a Django application running and can have the traffic between the Django app and the database encrypt…

---

## [Connect() to unix:/var/run/php-fpm/php.sock failed](https://www.ruby-forum.com/t/connect-to-unix-var-run-php-fpm-php-sock-failed/223739)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 6\
**Last updated:** [October 16, 2012, 11:35am UTC](https://www.ruby-forum.com/t/connect-to-unix-var-run-php-fpm-php-sock-failed/223739 "2012-10-16T11:35:13Z")

</div>

Just finished running a benchmark with http://blitz.io on a development application written in PHP (using php-fpm with a unix socket, not TCP) connecting to MySQL. Started with 50 concurrent connections and scaled up …

---

## [Redirect urls](https://www.ruby-forum.com/t/redirect-urls/223707)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [October 15, 2012, 9:56pm UTC](https://www.ruby-forum.com/t/redirect-urls/223707 "2012-10-15T21:56:41Z")

</div>

I’m porting a .asp application over to something else, and I need to re-write the following url pattern: www.example.com/posts/get\_post.asp?post\_id=123 to www.example.com/posts/123 How can I do that?

---

## [About the least\_conn (http://nginx.org/r/least\_conn) load balancing option and php-fpm](https://www.ruby-forum.com/t/about-the-least-conn-http-nginx-org-r-least-conn-load-balancing-option-and-php-fpm/223724)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [October 15, 2012, 5:58pm UTC](https://www.ruby-forum.com/t/about-the-least-conn-http-nginx-org-r-least-conn-load-balancing-option-and-php-fpm/223724 "2012-10-15T17:58:15Z")

</div>

Hello, I’m testing the least\_conn option for php-fpm. I’m curious whether what I should set “listen.backlog” in php-fpm.conf settings? Should I try listen.backlog=0? or some other setting for least\_conn load balanci…

---

## [Load Balancing Algorithm](https://www.ruby-forum.com/t/load-balancing-algorithm/223709)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [October 15, 2012, 12:02pm UTC](https://www.ruby-forum.com/t/load-balancing-algorithm/223709 "2012-10-15T12:02:57Z")

</div>

Hi All, Is it possible for me to change the load balancing algorithm used in Nginx.?? Thank you in advance for the reply, aps.

---

## [$request\_uri greater than 8 characters causes core dump](https://www.ruby-forum.com/t/request-uri-greater-than-8-characters-causes-core-dump/223702)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [October 15, 2012, 9:41am UTC](https://www.ruby-forum.com/t/request-uri-greater-than-8-characters-causes-core-dump/223702 "2012-10-15T09:41:32Z")

</div>

Nginx dumps core if the $request\_uri is not found and is more than 8 characters. For example: $ GET -Sed http://localhost/en/12345 GET http://localhost/en/12345 200 OK Connection: close Date: Sun, 14 Oct 2012 23:13…

---

## [Dynamic IP Whitelisting From A Database](https://www.ruby-forum.com/t/dynamic-ip-whitelisting-from-a-database/223711)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [October 15, 2012, 7:56am UTC](https://www.ruby-forum.com/t/dynamic-ip-whitelisting-from-a-database/223711 "2012-10-15T07:56:57Z")

</div>

Hi, We have a software as a service product where each user get’s their own hosted subdomain like (me.domain.com). We would like to implement whitelisting, where users can specify certain IP addresses that are allowe…

---

## [Ngx\_openresty devel version 1.2.4.1 released](https://www.ruby-forum.com/t/ngx-openresty-devel-version-1-2-4-1-released/223698)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [October 14, 2012, 9:57pm UTC](https://www.ruby-forum.com/t/ngx-openresty-devel-version-1-2-4-1-released/223698 "2012-10-14T21:57:32Z")

</div>

Hi, guys! I am happy to announce the new development version of ngx\_openresty, 1.2.4.1: http://openresty.org/#Download Special thanks go to all our contributors and users for helping make this happen! Below is the…

---

## [Status module – cache expiration, invalidation & poisoning](https://www.ruby-forum.com/t/status-module-cache-expiration-invalidation-poisoning/223694)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [October 14, 2012, 9:07pm UTC](https://www.ruby-forum.com/t/status-module-cache-expiration-invalidation-poisoning/223694 "2012-10-14T21:07:15Z")

</div>

Hi all, I have a website thats heavily cached or intended to be heavily cached via Nginx . But somehow looking at the page response time I feeling there is a very high eviction/invalidation rate. Now is there way I…

---

## [Fastcgi\_next\_upstream settings and "Connection reset by peer" errors](https://www.ruby-forum.com/t/fastcgi-next-upstream-settings-and-connection-reset-by-peer-errors/223690)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [October 14, 2012, 12:04pm UTC](https://www.ruby-forum.com/t/fastcgi-next-upstream-settings-and-connection-reset-by-peer-errors/223690 "2012-10-14T12:04:35Z")

</div>

I have a nginx setup with a fastcgi upstream of 5 servers 10.1.1.1 to 10.1.1.5 When a PHP has a long loop (which is due to bad php coding which is difficult to fix at this moment where the PHP process itself crashes), …

---

## [Compiling Nginx on production. How to do it without down time](https://www.ruby-forum.com/t/compiling-nginx-on-production-how-to-do-it-without-down-time/223635)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 12\
**Last updated:** [October 13, 2012, 2:22pm UTC](https://www.ruby-forum.com/t/compiling-nginx-on-production-how-to-do-it-without-down-time/223635 "2012-10-13T14:22:00Z")

</div>

Hi all, I run vanilla builds of Nginx from the Nginx centos repo. But recently Ive started to realize the need for additional modules in Nginx like Nginx status, openresty, lua etc. Now this will mean that my vanilla…

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

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