# Server

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

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

---

## [Nginx : segfault at](https://www.ruby-forum.com/t/nginx-segfault-at/211977)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [September 19, 2011, 1:03pm UTC](https://www.ruby-forum.com/t/nginx-segfault-at/211977 "2011-09-19T13:03:30Z")

</div>

hi,all message log , I ask why ？ use nginx-1.0.4-1 ，thanks, Sep 18 15:43:29 web kernel: nginx\[794\]: segfault at 00007fff4ca24fd8 rip 0000003ea681398b rsp 00007fff4ca24fb0 error 6 Sep 18 16:39:03 web kernel: nginx\[80…

---

## [$request\_filename rename in download](https://www.ruby-forum.com/t/request-filename-rename-in-download/211968)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [September 19, 2011, 12:02pm UTC](https://www.ruby-forum.com/t/request-filename-rename-in-download/211968 "2011-09-19T12:02:54Z")

</div>

Hi, I have created a public proxy with nginx but when i download files like “proxy.\*\*\*\*\*.com/?url=google.com/images/logo\_sm.gif” the filename “logo\_sm.gif” it’s not save in browse as the real name but with the name: …

---

## [Ngx\_drizzle v0.1.1: fixed segfaults on 32-bit systems](https://www.ruby-forum.com/t/ngx-drizzle-v0-1-1-fixed-segfaults-on-32-bit-systems/211922)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [September 19, 2011, 8:03am UTC](https://www.ruby-forum.com/t/ngx-drizzle-v0-1-1-fixed-segfaults-on-32-bit-systems/211922 "2011-09-19T08:03:06Z")

</div>

Hi, folks! I’m happy to announce that ngx\_drizzle v0.1.1 has been released. You can download the latest release tarball from https://github.com/chaoslawful/drizzle-nginx-module/downloads This release fixed a long-sta…

---

## [Mongrel fails to start](https://www.ruby-forum.com/t/mongrel-fails-to-start/211966)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [September 19, 2011, 12:36am UTC](https://www.ruby-forum.com/t/mongrel-fails-to-start/211966 "2011-09-19T00:36:43Z")

</div>

I’m having trouble getting mongrel to start after upgrading some system components. \[dan@supernews:/usr/websites/papers.bsdcan.org/pentabarf/rails\] $ mongrel\_rails cluster::r::start Invalid gemspec in \[/usr/local/li…

---

## [Openresty downstream bundle maintenance requests](https://www.ruby-forum.com/t/openresty-downstream-bundle-maintenance-requests/211927)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [September 18, 2011, 11:31pm UTC](https://www.ruby-forum.com/t/openresty-downstream-bundle-maintenance-requests/211927 "2011-09-18T23:31:58Z")

</div>

Hi. A few things to consider with respect to downstream maintenance support. The configure script under the “for my $opt (@ARGV) {” loop covers a few typical items and any others cause the “die “Invalid option $opt\\n”…

---

## [GET, POST, COOKIE methods same as Apache?](https://www.ruby-forum.com/t/get-post-cookie-methods-same-as-apache/211957)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [September 18, 2011, 9:54pm UTC](https://www.ruby-forum.com/t/get-post-cookie-methods-same-as-apache/211957 "2011-09-18T21:54:59Z")

</div>

Hi, New to Nginx and Rails. Are GET, POST, and COOKIE the same as Apache? Will using POST in a form convert data into a hash/array? Thanks! Posted at Nginx Forum:

---

## [Nginx 1.0.6 perl module build failure](https://www.ruby-forum.com/t/nginx-1-0-6-perl-module-build-failure/211666)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 10\
**Last updated:** [September 18, 2011, 3:51pm UTC](https://www.ruby-forum.com/t/nginx-1-0-6-perl-module-build-failure/211666 "2011-09-18T15:51:20Z")

</div>

Snow Leopard 10.6.7, Xcode 4.0.1: $ cd nginx-1.0.6 $ ./configure --prefix=/usr/local --with-cc-opt=“-I/usr/local/include -O2 -Wno-deprecated-declarations” --with-ld-opt=“-L/usr/local/lib” –conf-path=/etc/nginx/nginx.…

---

## [Daemon off in production](https://www.ruby-forum.com/t/daemon-off-in-production/211920)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [September 17, 2011, 12:58pm UTC](https://www.ruby-forum.com/t/daemon-off-in-production/211920 "2011-09-17T12:58:05Z")

</div>

Hi, The documentations says I should never run nginx with the daemon off setting in production. I would like to do so anyway so my Python/twisted based process manager will have an easier time knowing if nginx termin…

---

## [Change nginx user in config \>\> 403 error index.html forbidden](https://www.ruby-forum.com/t/change-nginx-user-in-config-403-error-index-html-forbidden/211907)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [September 17, 2011, 12:27pm UTC](https://www.ruby-forum.com/t/change-nginx-user-in-config-403-error-index-html-forbidden/211907 "2011-09-17T12:27:40Z")

</div>

Hi All, I have just installed NGINX 1.1.2. I made my own configuration and makefile and installed the nginx server. When I set the config to: user root root; I get the hello world index.html file provided by the ngi…

---

## [Segmentation fault in drizzle-nginx-module 0.1.0](https://www.ruby-forum.com/t/segmentation-fault-in-drizzle-nginx-module-0-1-0/211905)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [September 17, 2011, 6:45am UTC](https://www.ruby-forum.com/t/segmentation-fault-in-drizzle-nginx-module-0-1-0/211905 "2011-09-17T06:45:34Z")

</div>

Env: CentOS 5.6 nginx 0.8.54 rds-json-nginx-module-0.11 mysql 5.0 drizzle7-2011.08.25 nginx.conf location =/mysql\_status { drizzle\_status; } #Common SQL Query point location =/mysql\_query …

---

## [Making Wordpress Plugins Work With Nginx](https://www.ruby-forum.com/t/making-wordpress-plugins-work-with-nginx/211889)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [September 17, 2011, 6:01am UTC](https://www.ruby-forum.com/t/making-wordpress-plugins-work-with-nginx/211889 "2011-09-17T06:01:12Z")

</div>

I’m new to Nginx (Moving from Apache). I’m having a problem where the majority of Wordpress plugin are not working. I’m using Nginx 1.1.3. Here are my configuration if it can help figuring out the problem ####nginx.co…

---

## [Can't get cache controle to set an expire date](https://www.ruby-forum.com/t/cant-get-cache-controle-to-set-an-expire-date/211890)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [September 16, 2011, 10:29pm UTC](https://www.ruby-forum.com/t/cant-get-cache-controle-to-set-an-expire-date/211890 "2011-09-16T22:29:55Z")

</div>

Hi, This is my nginx config file: nginx conf - Pastebin.com The problem is that despite setting “expires max” cache sends no expire date so I must be doing something wrong. This is what appears as header: Cache-Cont…

---

## [Passing variables from nginx to sinatra](https://www.ruby-forum.com/t/passing-variables-from-nginx-to-sinatra/211909)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [September 16, 2011, 10:29pm UTC](https://www.ruby-forum.com/t/passing-variables-from-nginx-to-sinatra/211909 "2011-09-16T22:29:03Z")

</div>

Hello, I am trying to pass a uID($uid\_got value) that has been generated by Nginx httpuseridmodule to my sinatra app. Basically I could have taken from the cookie but the cookie does not get set on the browser unless…

---

## [Problem with Hotlink Protection](https://www.ruby-forum.com/t/problem-with-hotlink-protection/211836)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [September 16, 2011, 9:54pm UTC](https://www.ruby-forum.com/t/problem-with-hotlink-protection/211836 "2011-09-16T21:54:40Z")

</div>

Dear all, I am having a problem getting hotlinking protection to work. I run an image gallery on a nginx webserver and would like to achieve that hotlinking to the images on the website is impossible to save bandwidt…

---

## [Help with AIO](https://www.ruby-forum.com/t/help-with-aio/211502)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [September 16, 2011, 4:10pm UTC](https://www.ruby-forum.com/t/help-with-aio/211502 "2011-09-16T16:10:51Z")

</div>

Hi I configured Nginx with \*aio \*mode \*on \*and 1 worker process In benchmarking I saw limit of 1024 concurrent sessions even configured to 4096 worker connections When I looked in the source code I could see that i…

---

## [Proxy\_cache\_path growing beyond max\_size](https://www.ruby-forum.com/t/proxy-cache-path-growing-beyond-max-size/210899)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [September 16, 2011, 2:23pm UTC](https://www.ruby-forum.com/t/proxy-cache-path-growing-beyond-max-size/210899 "2011-09-16T14:23:47Z")

</div>

Hi, I’ve read documentation about proxy\_cache\_path, proxy\_temp\_path and client\_body\_temp\_path directives but I’m a bit confused about proxy cache size and clean up cache manager process. Using tools like skipfish to …

---

## [Nginx-1.1.3](https://www.ruby-forum.com/t/nginx-1-1-3/211835)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [September 16, 2011, 6:54am UTC](https://www.ruby-forum.com/t/nginx-1-1-3/211835 "2011-09-16T06:54:04Z")

</div>

Changes with nginx 1.1.3 14 Sep 2011 \*) Feature: the module ngx\_http\_mp4\_module. \*) Bugfix: in Linux AIO combined with open\_file\_cache. \*) Bugfix: open\_file\_cache did not updat…

---

## [How to reference OS Environment Variales in nginx.conf](https://www.ruby-forum.com/t/how-to-reference-os-environment-variales-in-nginx-conf/211883)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [September 16, 2011, 6:07am UTC](https://www.ruby-forum.com/t/how-to-reference-os-environment-variales-in-nginx-conf/211883 "2011-09-16T06:07:08Z")

</div>

Hi there, After set a variable by set $name value, i can reference it like $name, but when i export a OS Environment Variale by env name\_from\_env, like Core functionality said, and i am sure the name\_from\_env is val…

---

## [How to check that $request\_body has some string and use it like a caching key?](https://www.ruby-forum.com/t/how-to-check-that-request-body-has-some-string-and-use-it-like-a-caching-key/211892)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [September 16, 2011, 5:09am UTC](https://www.ruby-forum.com/t/how-to-check-that-request-body-has-some-string-and-use-it-like-a-caching-key/211892 "2011-09-16T05:09:45Z")

</div>

Hi everybody, I have the following situation: Incoming request with method POST has binary body. I would like to extract piece(s) from the payload to use it like a caching key. Something like: if ( $request\_body ~\* …

---

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

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [September 15, 2011, 6:22pm UTC](https://www.ruby-forum.com/t/nginx-and-tproxy/211875 "2011-09-15T18:22:32Z")

</div>

Hi all: Can we let both work together? Anyone can share his experience with us if we want to integrate them？ thanks in advance george

---

## [How to force nginx to cache HTTP POST response for few seconds](https://www.ruby-forum.com/t/how-to-force-nginx-to-cache-http-post-response-for-few-seconds/211855)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [September 15, 2011, 11:44am UTC](https://www.ruby-forum.com/t/how-to-force-nginx-to-cache-http-post-response-for-few-seconds/211855 "2011-09-15T11:44:53Z")

</div>

Hi everybody, I’m a newbie with nginx and would like to ask your help. On potentially very high loaded site I would like to cache response to the HTTP POST for the few seconds. Works perfectly for GETs, but… nginx ve…

---

## [Nginx + Tomcat7 for single webapp and multiple alias domain](https://www.ruby-forum.com/t/nginx-tomcat7-for-single-webapp-and-multiple-alias-domain/211819)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [September 15, 2011, 11:31am UTC](https://www.ruby-forum.com/t/nginx-tomcat7-for-single-webapp-and-multiple-alias-domain/211819 "2011-09-15T11:31:16Z")

</div>

I am thinking about using NGINX instead of Apache to deliver a Tomcat7 webapp on Port :80 to the enduser. I have the following requirements: There is a single web-app in the root with any urls (its own internal ur…

---

## [$request\_uri without args](https://www.ruby-forum.com/t/request-uri-without-args/211829)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [September 14, 2011, 6:34pm UTC](https://www.ruby-forum.com/t/request-uri-without-args/211829 "2011-09-14T18:34:25Z")

</div>

Hi Is it possible to access the $request\_uri without the args at the end? I know I can use $uri - but this returns the url-decoded uri. I need the url-encoded (I.e. unchanged from original request) but with the args …

---

## [400 Bad request](https://www.ruby-forum.com/t/400-bad-request/211816)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [September 14, 2011, 5:31pm UTC](https://www.ruby-forum.com/t/400-bad-request/211816 "2011-09-14T17:31:21Z")

</div>

Hi, Having problems with urls containing percent sign. Most of them return 400 and don’t even appear neither in error.log nor in access.log. GET /download-%27.07%%27.html?frame=1 HTTP/1.1 Host: www.my.eu User-Agent:…

---

## [Load balance and re-encrypt ssl](https://www.ruby-forum.com/t/load-balance-and-re-encrypt-ssl/211830)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [September 14, 2011, 4:26pm UTC](https://www.ruby-forum.com/t/load-balance-and-re-encrypt-ssl/211830 "2011-09-14T16:26:24Z")

</div>

Hi all, I have been looking through the docs and have found that nginx will load balance ssl if the cert is setup correctly. Is there an option to have it re-encrypt before sending to the web servers? What have othe…

---

## [Rewriting the domain part of Set-Cookie in a proxy\_pass](https://www.ruby-forum.com/t/rewriting-the-domain-part-of-set-cookie-in-a-proxy-pass/208025)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 10\
**Last updated:** [September 14, 2011, 11:24am UTC](https://www.ruby-forum.com/t/rewriting-the-domain-part-of-set-cookie-in-a-proxy-pass/208025 "2011-09-14T11:24:58Z")

</div>

Hello Does nginx (or a module) provide functionality equivalent to httpd’s ProxyPassReverseCookieDomain? Long explanation: I have a simple nginx reverse proxy server { server\_name external.domain.com; location / { …

---

## [Nginx proxy truncates large file downloads to 1.1G](https://www.ruby-forum.com/t/nginx-proxy-truncates-large-file-downloads-to-1-1g/200134)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 4\
**Last updated:** [September 14, 2011, 9:53am UTC](https://www.ruby-forum.com/t/nginx-proxy-truncates-large-file-downloads-to-1-1g/200134 "2011-09-14T09:53:59Z")

</div>

Hello All: So nginx so far has been running great. Today however I discovered that when downloading a file larger than 1G (ie 1.5G) it will always fail leaving the client with a file of 1.1G and an incomplete downloa…

---

## [Nginx & Range header & proxy cache](https://www.ruby-forum.com/t/nginx-range-header-proxy-cache/211770)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [September 13, 2011, 6:05pm UTC](https://www.ruby-forum.com/t/nginx-range-header-proxy-cache/211770 "2011-09-13T18:05:30Z")

</div>

Hi If a Range request is sent to nginx proxy (e.g. header “Range: bytes=50-”) and the file isn’t in cache yet (cache MISS), the range is ignored and full file sent When the file has been cached (cache HIT), Range req…

---

## [Search headers\_in](https://www.ruby-forum.com/t/search-headers-in/211789)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [September 13, 2011, 6:02pm UTC](https://www.ruby-forum.com/t/search-headers-in/211789 "2011-09-13T18:02:25Z")

</div>

I am starting to write a new module that uses a header token. I have searched google for the answer about "how to seach in headers for a name. I want to search for “X-session-token”. I am surprised that there is no…

---

## [Using Nginx Proxy Pss IPv4 to IPv6 Problem](https://www.ruby-forum.com/t/using-nginx-proxy-pss-ipv4-to-ipv6-problem/200149)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 2\
**Last updated:** [September 13, 2011, 2:49pm UTC](https://www.ruby-forum.com/t/using-nginx-proxy-pss-ipv4-to-ipv6-problem/200149 "2011-09-13T14:49:19Z")

</div>

When do I use nginx reverse proxy to proxy from an IPv4 network to an IPv6 network, I used the following configuration file: upstream ipv6server { server \[2001:: 1\]; server \[2001:: 2\]; } location / { proxy\_pass ht…

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

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