# Server

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

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

---

## [Preferred way to do redirects (rewrite or return)](https://www.ruby-forum.com/t/preferred-way-to-do-redirects-rewrite-or-return/236662)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [September 23, 2013, 10:46pm UTC](https://www.ruby-forum.com/t/preferred-way-to-do-redirects-rewrite-or-return/236662 "2013-09-23T22:46:33Z")

</div>

What is the preferred way to do redirects? I know of two solutions: rewrite “^/help/?$” https://support.mydomain.com permanent; or location ^/help/?$ { return 301 https://support.mydomain.com; } I think I like usin…

---

## [Reverse proxy removes Transfer-Encoding: chunked](https://www.ruby-forum.com/t/reverse-proxy-removes-transfer-encoding-chunked/246251)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [September 23, 2013, 9:42pm UTC](https://www.ruby-forum.com/t/reverse-proxy-removes-transfer-encoding-chunked/246251 "2013-09-23T21:42:50Z")

</div>

I’m trying to setup a nginx (1.4.1) reverse proxy to a HornetQ API using this configuration: proxy\_http\_version 1.1; proxy\_set\_header Host $host; upstream app { server 127.0.0.1:8000; keepalive 8; } server { lis…

---

## [Log module question: does the buffer mess up the order of the log entries?](https://www.ruby-forum.com/t/log-module-question-does-the-buffer-mess-up-the-order-of-the-log-entries/236650)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [September 23, 2013, 7:49pm UTC](https://www.ruby-forum.com/t/log-module-question-does-the-buffer-mess-up-the-order-of-the-log-entries/236650 "2013-09-23T19:49:29Z")

</div>

Hi experts, I am reading the log module source code, there is something difficult to make sure, so I ask for your help. Access log module use a buffer to buffer log entries before writing to the file system, the buff…

---

## [Read quotes about courage](https://www.ruby-forum.com/t/read-quotes-about-courage/236652)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [September 23, 2013, 10:46am UTC](https://www.ruby-forum.com/t/read-quotes-about-courage/236652 "2013-09-23T10:46:30Z")

</div>

Quotes have motivated many people from age groups and have assisted them to comprehend their way of way of lifestyle in a better way. They have been essential happy quotes from plenty of your energy and effort person…

---

## [Ngx\_openresty stable version 1.4.2.8 released](https://www.ruby-forum.com/t/ngx-openresty-stable-version-1-4-2-8-released/236644)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [September 23, 2013, 12:47am UTC](https://www.ruby-forum.com/t/ngx-openresty-stable-version-1-4-2-8-released/236644 "2013-09-23T00:47:29Z")

</div>

Hello folks! I am happy to announce that the new stable version of ngx\_openresty, 1.4.2.8, is now released: http://openresty.org/#Download Special thanks go to all the contributors for making this happen! Below is t…

---

## [How to redirect only if/after a FAILED basic authentication?](https://www.ruby-forum.com/t/how-to-redirect-only-if-after-a-failed-basic-authentication/236647)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [September 23, 2013, 12:05am UTC](https://www.ruby-forum.com/t/how-to-redirect-only-if-after-a-failed-basic-authentication/236647 "2013-09-23T00:05:24Z")

</div>

I’m setting up an auth-before-proxy\_pass config. The following works now: location / { root /dev/null; auth\_basic “Restricted Remote”; auth\_basic\_user\_file /data/etc/security/auth/passwd.basic; proxy\_pass h…

---

## [Nginx as an AUTH + proxy\_pass in front of a mail server on the LAN; I'm missing something about pass](https://www.ruby-forum.com/t/nginx-as-an-auth-proxy-pass-in-front-of-a-mail-server-on-the-lan-im-missing-something-about-pass/246236)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 5\
**Last updated:** [September 22, 2013, 11:16pm UTC](https://www.ruby-forum.com/t/nginx-as-an-auth-proxy-pass-in-front-of-a-mail-server-on-the-lan-im-missing-something-about-pass/246236 "2013-09-22T23:16:19Z")

</div>

I have a mail server on my lan. It exposes a WebUI over SSL on port:443. It currently only has 1-step, password authentication. I want to add a 2nd layer of authentication, and put that mailserver behind an nginx s…

---

## [Broken pipe while sending request to upstream](https://www.ruby-forum.com/t/broken-pipe-while-sending-request-to-upstream/236582)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [September 20, 2013, 9:28am UTC](https://www.ruby-forum.com/t/broken-pipe-while-sending-request-to-upstream/236582 "2013-09-20T09:28:00Z")

</div>

Hi. I’ve set up nginx as a proxy for a jetty service. Works nicely, most of the time, except … when issuing a (somewhat) larger POST request to some entity which is protected by HTTP Basic access authentication. T…

---

## [Rewrite URL to only show value of $\_GET argument](https://www.ruby-forum.com/t/rewrite-url-to-only-show-value-of-get-argument/236503)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 13\
**Last updated:** [September 20, 2013, 1:52am UTC](https://www.ruby-forum.com/t/rewrite-url-to-only-show-value-of-get-argument/236503 "2013-09-20T01:52:51Z")

</div>

Hello, I have read through the nginx rewrite documentation and looked at various examples, but can’t figure out how to create a rewrite rule for the following (if it is possible). I’d like to rewrite the URL of a php…

---

## [Send data in fragments with nginx!](https://www.ruby-forum.com/t/send-data-in-fragments-with-nginx/236609)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [September 19, 2013, 2:27pm UTC](https://www.ruby-forum.com/t/send-data-in-fragments-with-nginx/236609 "2013-09-19T14:27:57Z")

</div>

Hello, We're using video streaming site with nginx and most of the users download videos via IDM(Internet Download Manager). We want to prevent this downloading by sending videos into fragments so IDM will not be …

---

## [Root inside Location Block? Pitfalls says NO, Beginner’s Guide says YES](https://www.ruby-forum.com/t/root-inside-location-block-pitfalls-says-no-beginner-s-guide-says-yes/246259)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [September 19, 2013, 2:20pm UTC](https://www.ruby-forum.com/t/root-inside-location-block-pitfalls-says-no-beginner-s-guide-says-yes/246259 "2013-09-19T14:20:56Z")

</div>

Practically the first two pages I read when starting with nginx were: which says “putting Root inside Location Block is BAD” - don’t do it. and http://nginx.org/en/docs/beginners\_guide.html which gives this as its …

---

## [Fedora 19 performs poorly](https://www.ruby-forum.com/t/fedora-19-performs-poorly/246232)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [September 19, 2013, 1:09pm UTC](https://www.ruby-forum.com/t/fedora-19-performs-poorly/246232 "2013-09-19T13:09:02Z")

</div>

Note: same message also posted in -ru list I’m trying to migrate from Fedora 14 (2.6.35.14-97.fc14.x86\_64) to Fedora 19 (3.10.11-200.fc19.x86\_64) worker\_processes 40; events { worker\_connections 8000; use epoll; …

---

## [HTTP\_X\_FORWARDED\_FOR being truncated/prefixed with a comma and no IP for some requests](https://www.ruby-forum.com/t/http-x-forwarded-for-being-truncated-prefixed-with-a-comma-and-no-ip-for-some-requests/246240)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [September 19, 2013, 12:36pm UTC](https://www.ruby-forum.com/t/http-x-forwarded-for-being-truncated-prefixed-with-a-comma-and-no-ip-for-some-requests/246240 "2013-09-19T12:36:53Z")

</div>

Hi - I have confirmed an unusual situation in which it appears the leading address is being stripped from x-forwarded-for headers passed on to downstream hosts (running Apache in this case) on very specific requests.…

---

## [Timeout serving large requests](https://www.ruby-forum.com/t/timeout-serving-large-requests/229702)

<div class="topic-metadata">

**Author:** [@BrindleFly](https://www.ruby-forum.com/u/BrindleFly)\
**Replies:** 13\
**Last updated:** [September 19, 2013, 11:54am UTC](https://www.ruby-forum.com/t/timeout-serving-large-requests/229702 "2013-09-19T11:54:14Z")

</div>

I’m struggling to find the source of a timeout. I am running Nginx (1.2.6), Passenger 3.0.18, and Rails 3.2.11. On serving one long running request, I find the results (CSV file) truncated after being returned from t…

---

## [How to get rid of 204 Intercepted requests of IDM?](https://www.ruby-forum.com/t/how-to-get-rid-of-204-intercepted-requests-of-idm/236594)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 5\
**Last updated:** [September 19, 2013, 9:18am UTC](https://www.ruby-forum.com/t/how-to-get-rid-of-204-intercepted-requests-of-idm/236594 "2013-09-19T09:18:48Z")

</div>

Hello, We're running a video streaming website with nginx for streaming videos. The issue we’re having is, whenever user try to stream any mp4 or flv file from our site using chrome, IDM(Internet Download Mana…

---

## [Limit IP req/s excl bots](https://www.ruby-forum.com/t/limit-ip-req-s-excl-bots/236597)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 4\
**Last updated:** [September 19, 2013, 2:01am UTC](https://www.ruby-forum.com/t/limit-ip-req-s-excl-bots/236597 "2013-09-19T02:01:04Z")

</div>

Does anyone know if there is any truth to this blog post: And if so where about in the code its implemented? I was trying to find out if its possible to use a map to control limit req/s limits but I still cant find…

---

## [Re: nginx-1.5.5 (corrected URL)](https://www.ruby-forum.com/t/re-nginx-1-5-5-corrected-url/236589)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [September 18, 2013, 4:35am UTC](https://www.ruby-forum.com/t/re-nginx-1-5-5-corrected-url/236589 "2013-09-18T04:35:21Z")

</div>

Hello Nginx users, (corrected link below) Now available: Nginx 1.5.5 for Windows http://goo.gl/mHIAeL (32-bit and 64-bit versions) These versions are to support legacy users who are already using Cygwin based builds …

---

## [Nginx-1.5.5](https://www.ruby-forum.com/t/nginx-1-5-5/246258)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [September 18, 2013, 4:13am UTC](https://www.ruby-forum.com/t/nginx-1-5-5/246258 "2013-09-18T04:13:43Z")

</div>

Changes with nginx 1.5.5 17 Sep 2013 \*) Change: now nginx assumes HTTP/1.0 by default if it is not able to detect protocol reliably. \*) Feature: the "disable\_symlinks" direct…

---

## [How can I use get arguments of POST-request in own module?](https://www.ruby-forum.com/t/how-can-i-use-get-arguments-of-post-request-in-own-module/236572)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [September 17, 2013, 9:16am UTC](https://www.ruby-forum.com/t/how-can-i-use-get-arguments-of-post-request-in-own-module/236572 "2013-09-17T09:16:23Z")

</div>

Hello! I develop some module and I need recieve POST-request’s arguments. GET-request and HTTP-header easy to use but how may POST-request were used I don’t know… Posted at Nginx Forum:

---

## [Multiple listen directives](https://www.ruby-forum.com/t/multiple-listen-directives/246225)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 4\
**Last updated:** [September 16, 2013, 8:39pm UTC](https://www.ruby-forum.com/t/multiple-listen-directives/246225 "2013-09-16T20:39:32Z")

</div>

Hi all, I want to build an active/active cluster and therefore configure nginx to listen on multiple IP adresses. I read http://nginx.org/en/doc/http/ngx\_http\_core\_module.html#listen but found no information if I can…

---

## [Status code 000 in the logs](https://www.ruby-forum.com/t/status-code-000-in-the-logs/246247)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [September 16, 2013, 6:47pm UTC](https://www.ruby-forum.com/t/status-code-000-in-the-logs/246247 "2013-09-16T18:47:20Z")

</div>

What does status code 000 mean in the Nginx logs? I have the following in the config: location = /get-img.pl { limit\_req zone=slow burst=10; proxy\_pass http://service\_perl; } get-img.…

---

## [PHP, AJAX: large data being truncated on nginx](https://www.ruby-forum.com/t/php-ajax-large-data-being-truncated-on-nginx/236561)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [September 16, 2013, 3:30pm UTC](https://www.ruby-forum.com/t/php-ajax-large-data-being-truncated-on-nginx/236561 "2013-09-16T15:30:21Z")

</div>

Hello, My PHP installation is configured to accept 8M of post data and use to 128M of physical memory. I have also configured following in nginx conf client\_body\_buffer\_size 100k; client\_header\_buffer\_size 100k; …

---

## [Ngx\_openresty mainline version 1.4.2.7 released](https://www.ruby-forum.com/t/ngx-openresty-mainline-version-1-4-2-7-released/236557)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [September 16, 2013, 12:17am UTC](https://www.ruby-forum.com/t/ngx-openresty-mainline-version-1-4-2-7-released/236557 "2013-09-16T00:17:06Z")

</div>

Hello folks! I am happy to announce that the new mainline version of ngx\_openresty, 1.4.2.7, is now released: http://openresty.org/#Download Special thanks go to all the contributors for making this happen! Below is…

---

## [Guide to Nginx + SSL + SPDY](https://www.ruby-forum.com/t/guide-to-nginx-ssl-spdy/246210)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 10\
**Last updated:** [September 14, 2013, 11:07pm UTC](https://www.ruby-forum.com/t/guide-to-nginx-ssl-spdy/246210 "2013-09-14T23:07:29Z")

</div>

hi list, i recently had to dig deeper into nginx + ssl-setup and came up with a short documentation on how to setup and run nginx as SSL-Gateway/Offload, including SPDY. beside basic configuration this guide covers …

---

## [How to serve subdomain from subfolder of the domain root?](https://www.ruby-forum.com/t/how-to-serve-subdomain-from-subfolder-of-the-domain-root/236551)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [September 14, 2013, 10:58am UTC](https://www.ruby-forum.com/t/how-to-serve-subdomain-from-subfolder-of-the-domain-root/236551 "2013-09-14T10:58:26Z")

</div>

In a server as server { server\_name domain.com \*.domain.com root /var/www/$server\_name; } is it possible to set locations for subdomains based on subfolders of the $server\_name ? location matching sub1.domain.co…

---

## [Query part included in location match after rewrite (bug or feature?)](https://www.ruby-forum.com/t/query-part-included-in-location-match-after-rewrite-bug-or-feature/236549)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 4\
**Last updated:** [September 13, 2013, 4:51pm UTC](https://www.ruby-forum.com/t/query-part-included-in-location-match-after-rewrite-bug-or-feature/236549 "2013-09-13T16:51:52Z")

</div>

Hi, According to documentation, “location” matches only against URI path, ignoring query string. However, after “rewrite”, when using variables containing “?” character (like $request\_uri for illustration), query bec…

---

## [Problem with double slashes in urls with uwsgi and sockets](https://www.ruby-forum.com/t/problem-with-double-slashes-in-urls-with-uwsgi-and-sockets/246235)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [September 13, 2013, 4:27pm UTC](https://www.ruby-forum.com/t/problem-with-double-slashes-in-urls-with-uwsgi-and-sockets/246235 "2013-09-13T16:27:20Z")

</div>

I have python app running under uwsgi with nginx. I’m using unix sockets to connect nginx to uwsgi. My python app is receiving single slashes in urls that originally had a double slash. For example, if the url is ht…

---

## [Reverse proxy deleting ETag header from response](https://www.ruby-forum.com/t/reverse-proxy-deleting-etag-header-from-response/246209)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 5\
**Last updated:** [September 12, 2013, 5:24pm UTC](https://www.ruby-forum.com/t/reverse-proxy-deleting-etag-header-from-response/246209 "2013-09-12T17:24:13Z")

</div>

I have a simple config that proxies to/from a django app: upstream django\_app{ server 127.0.0.1:4567; } server { listen 80; server\_name xxxxxxxxx; location / { proxy\_pass\_header Set-Cookie; proxy\_pass\_head…

---

## [Compressed page streams detection and optimization](https://www.ruby-forum.com/t/compressed-page-streams-detection-and-optimization/246175)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [September 12, 2013, 4:36pm UTC](https://www.ruby-forum.com/t/compressed-page-streams-detection-and-optimization/246175 "2013-09-12T16:36:18Z")

</div>

Hello, I have a website serving a number of different PHP based applications. Some of them natively serve their own gzipped pages, others only serve compressed HTML but uncompressed .css and .js files, others don’t c…

---

## [LDAP Auth only for external addresses](https://www.ruby-forum.com/t/ldap-auth-only-for-external-addresses/246201)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 3\
**Last updated:** [September 11, 2013, 2:46pm UTC](https://www.ruby-forum.com/t/ldap-auth-only-for-external-addresses/246201 "2013-09-11T14:46:51Z")

</div>

Hi, I configured a nginx 1.5.4 server with the ngnix-auth-ldap module. It works all fine, but im looking for an option to distinguish the client networks. My goal is, that users from the network 10...\* and 172...\* do…

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

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