# Server

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

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

---

## [Mail proxy auth](https://www.ruby-forum.com/t/mail-proxy-auth/230515)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 0\
**Last updated:** [June 21, 2014, 5:23am UTC](https://www.ruby-forum.com/t/mail-proxy-auth/230515 "2014-06-21T05:23:24Z")

</div>

I have wrote a perl module for nginx to authenticate IMAP/POP proxy against another IMAP server and I like your feedback because I wrote a little quick-and-dirty, and with your help this could be useful for many peopl…

---

## [Strange map $request issue](https://www.ruby-forum.com/t/strange-map-request-issue/230502)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 4\
**Last updated:** [June 20, 2014, 7:36pm UTC](https://www.ruby-forum.com/t/strange-map-request-issue/230502 "2014-06-20T19:36:20Z")

</div>

For example: map $request $testvar { default 0; ~\*montytest 1; } if ($testvar) { return 412; } \[20/Jun/2014:xx:xx:20 +0200\] 69.64.xxxx:52393 - - “GET /monty…

---

## [Using 2000+ ip prefixes in nginx geo module!](https://www.ruby-forum.com/t/using-2000-ip-prefixes-in-nginx-geo-module/230485)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 7\
**Last updated:** [June 20, 2014, 4:12pm UTC](https://www.ruby-forum.com/t/using-2000-ip-prefixes-in-nginx-geo-module/230485 "2014-06-20T16:12:36Z")

</div>

We’ve added 2000+ ip prefixes in a file “geo.conf” included in nginx vhost by using ngx-http\_geo\_module and received the following warning :- 2014/06/19 23:52:46 \[warn\] 1633#0: duplicate network “103.24.96.0/22”, val…

---

## [Sticky equivalent](https://www.ruby-forum.com/t/sticky-equivalent/230445)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 8\
**Last updated:** [June 20, 2014, 2:08pm UTC](https://www.ruby-forum.com/t/sticky-equivalent/230445 "2014-06-20T14:08:27Z")

</div>

Hi guys, I am running nginx 1.4 right now on a bunch of front end servers, i am running freebsd, and have nginx with sticky patch compiled from ports. I can’t upgrade to 1.6 or later, because the sticky port seems to …

---

## [Http Keepalive implementation](https://www.ruby-forum.com/t/http-keepalive-implementation/230462)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 2\
**Last updated:** [June 19, 2014, 11:33pm UTC](https://www.ruby-forum.com/t/http-keepalive-implementation/230462 "2014-06-19T23:33:43Z")

</div>

I was going through NGINX source code to implement keepalive for nginx zeromq plugin that I have developed. I have been inspired by ngx\_http\_upstream\_keepalive\_module. Was wondering why nginx uses a kind of two linke…

---

## [Optimization of Nginx for 128 MB RAM VPS](https://www.ruby-forum.com/t/optimization-of-nginx-for-128-mb-ram-vps/230450)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 4\
**Last updated:** [June 19, 2014, 5:53pm UTC](https://www.ruby-forum.com/t/optimization-of-nginx-for-128-mb-ram-vps/230450 "2014-06-19T17:53:21Z")

</div>

Hello, I have a 128 MB RAM VPS with 1 vcore of 2,2 GHz x86\_64 CPU. The CPU is much faster than the Rapsberry one so that is not a problem but the RAM usage, I think, is. Could You help me optimize my Nginx installa…

---

## [Nginx on Windows PHP fastcgi read timeouts](https://www.ruby-forum.com/t/nginx-on-windows-php-fastcgi-read-timeouts/230428)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 19\
**Last updated:** [June 19, 2014, 3:18pm UTC](https://www.ruby-forum.com/t/nginx-on-windows-php-fastcgi-read-timeouts/230428 "2014-06-19T15:18:16Z")

</div>

So this is going to be a bit of a long post but if i have encounterd this issue no doubt someone else will. Basically i keep getting read time outs or my web pages take a very long time to load. My server is Windows…

---

## [$upstream\_addr is returning blank](https://www.ruby-forum.com/t/upstream-addr-is-returning-blank/230466)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 2\
**Last updated:** [June 19, 2014, 2:24pm UTC](https://www.ruby-forum.com/t/upstream-addr-is-returning-blank/230466 "2014-06-19T14:24:50Z")

</div>

Hello, I want to access the value of $upstream\_addr. Below is the code, location / { echo "up = $upstream\_addr"; } The response is just "up = " . What could be the reason for this? Posted at Nginx Forum:

---

## [Problem with big files](https://www.ruby-forum.com/t/problem-with-big-files/230408)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 3\
**Last updated:** [June 19, 2014, 12:42pm UTC](https://www.ruby-forum.com/t/problem-with-big-files/230408 "2014-06-19T12:42:00Z")

</div>

Hi Recently I hit quite big problem with huge files. Nginx is a cache fronting an origin which serves huge files (several GB). Clients use mostly range requests (often to get parts towards the end of the file) and I …

---

## [Proposal to remove unused macro ngx\_sleep()](https://www.ruby-forum.com/t/proposal-to-remove-unused-macro-ngx-sleep/230470)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 0\
**Last updated:** [June 19, 2014, 10:54am UTC](https://www.ruby-forum.com/t/proposal-to-remove-unused-macro-ngx-sleep/230470 "2014-06-19T10:54:28Z")

</div>

Hello, ngx\_sleep() is newer used … and I guess it will newer used. ./os/unix/ngx\_time.h:#define ngx\_sleep(s) (void) sleep(s) Regards, yves Posted at Nginx Forum:

---

## [Upstream on OpenBSD not executing requests](https://www.ruby-forum.com/t/upstream-on-openbsd-not-executing-requests/230412)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 4\
**Last updated:** [June 19, 2014, 9:11am UTC](https://www.ruby-forum.com/t/upstream-on-openbsd-not-executing-requests/230412 "2014-06-19T09:11:05Z")

</div>

Hello everybody! I am a new and excited nginx user and I just had to hit a problem complex enough for me to post a message here hoping to get some help. OS: OpenBSD 5.5 amd64 nginx -v: nginx version: nginx/1.4.7 n…

---

## [Passing arguments to os.execute()](https://www.ruby-forum.com/t/passing-arguments-to-os-execute/230465)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 0\
**Last updated:** [June 19, 2014, 8:58am UTC](https://www.ruby-forum.com/t/passing-arguments-to-os-execute/230465 "2014-06-19T08:58:01Z")

</div>

Hello, How to send the value of a variable to a shell program using os.execute()? I want to send the value of $uri to my shell program. Below is my code, location / { set\_by\_lua $result ‘os.execute(“/tmp/test.sh $ur…

---

## [Caching servers in Local ISPs!](https://www.ruby-forum.com/t/caching-servers-in-local-isps/241026)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 40\
**Last updated:** [June 19, 2014, 7:21am UTC](https://www.ruby-forum.com/t/caching-servers-in-local-isps/241026 "2014-06-19T07:21:11Z")

</div>

Hello, We're running a high traffic website similar to youtube.com. Due to high bandwidth utilization over the network, we’re in contact with the local ISP in order to put caching server to reduce bandwidth utiliz…

---

## [Lots of work in a location block](https://www.ruby-forum.com/t/lots-of-work-in-a-location-block/234779)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [June 18, 2014, 10:14am UTC](https://www.ruby-forum.com/t/lots-of-work-in-a-location-block/234779 "2014-06-18T10:14:13Z")

</div>

Hi Folks, I’m trying to integrate a python backend into a pre-existing php website, and am having problems doing this as I need to rewrite the url at the same time… eg: this is what isn’t working. location = /example…

---

## [Nginx - OS Version supported](https://www.ruby-forum.com/t/nginx-os-version-supported/230440)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 3\
**Last updated:** [June 18, 2014, 9:30am UTC](https://www.ruby-forum.com/t/nginx-os-version-supported/230440 "2014-06-18T09:30:16Z")

</div>

Hi All, I have gone through below link which gives details about OS and Platform supported. http://nginx.org/en/#tested\_os\_and\_platforms I just want to know if Redhat 6.4 and Redhat 6.5 is supported by nginx? In lin…

---

## [URI escaping for X-Accel-Redirect and proxy\_pass in 1.4.7 and 1.6.0](https://www.ruby-forum.com/t/uri-escaping-for-x-accel-redirect-and-proxy-pass-in-1-4-7-and-1-6-0/230416)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 2\
**Last updated:** [June 18, 2014, 2:14am UTC](https://www.ruby-forum.com/t/uri-escaping-for-x-accel-redirect-and-proxy-pass-in-1-4-7-and-1-6-0/230416 "2014-06-18T02:14:33Z")

</div>

We are updating Nginx from 1.4.7 and 1.6.0 and noticed an error in our app likely related to the 1.5.9 change: now nginx expects escaped URIs in “X-Accel-Redirect” headers. We have an internal location for proxying c…

---

## [Send all requests to two separate upstream servers?](https://www.ruby-forum.com/t/send-all-requests-to-two-separate-upstream-servers/230421)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 8\
**Last updated:** [June 18, 2014, 12:09am UTC](https://www.ruby-forum.com/t/send-all-requests-to-two-separate-upstream-servers/230421 "2014-06-18T00:09:40Z")

</div>

I have a need to adjust a nginx install doing reverse proxy to a single server now to adjust it to send all requests it receives to two different upstream servers. I was thinking I could do it with the configuration …

---

## [Nginx-1.7.2](https://www.ruby-forum.com/t/nginx-1-7-2/230420)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 1\
**Last updated:** [June 17, 2014, 4:05pm UTC](https://www.ruby-forum.com/t/nginx-1-7-2/230420 "2014-06-17T16:05:33Z")

</div>

Changes with nginx 1.7.2 17 Jun 2014 \*) Feature: the "hash" directive inside the "upstream" block. \*) Feature: defragmentation of free shared memory blocks. Thanks to Wandenb…

---

## [Really high disk i/o!](https://www.ruby-forum.com/t/really-high-disk-i-o/230399)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 2\
**Last updated:** [June 16, 2014, 7:24pm UTC](https://www.ruby-forum.com/t/really-high-disk-i-o/230399 "2014-06-16T19:24:07Z")

</div>

Our server HDD i/o is constant on 8MB/s and i/o utilization + await is very high due to which nginx video streaming is really slow and we’re receiving complains from our users regarding slow streaming of the videos. …

---

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

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 1\
**Last updated:** [June 16, 2014, 5:14pm UTC](https://www.ruby-forum.com/t/nginx/230395 "2014-06-16T17:14:46Z")

</div>

Sorry to ask this, but does using this require a support contract? I’m interested in the streaming stuff, but it’s not worth $1300/yr to me… Cheers, Steve Steve H. BSc(Hons) MIITP Linkedin: http://www.linkedin.com/…

---

## [Accessing the location configuration of module 2 during post configuration processing of module 1 fo](https://www.ruby-forum.com/t/accessing-the-location-configuration-of-module-2-during-post-configuration-processing-of-module-1-fo/230304)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 5\
**Last updated:** [June 16, 2014, 4:15pm UTC](https://www.ruby-forum.com/t/accessing-the-location-configuration-of-module-2-during-post-configuration-processing-of-module-1-fo/230304 "2014-06-16T16:15:26Z")

</div>

How do we access the configuration of a an unrelated module in a given module. This may be required for example to check if the directives pertaining to module 2 were specified in location for a particular server that…

---

## [Order of directive call during request handling](https://www.ruby-forum.com/t/order-of-directive-call-during-request-handling/230392)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 1\
**Last updated:** [June 16, 2014, 1:34pm UTC](https://www.ruby-forum.com/t/order-of-directive-call-during-request-handling/230392 "2014-06-16T13:34:30Z")

</div>

I am not able to get the order in which the directive handlers are called when a request comes. I have a directive to connect to the database and the other to do put operation. In the conf file, i write the connect …

---

## [Tmp directory filling up](https://www.ruby-forum.com/t/tmp-directory-filling-up/230339)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 4\
**Last updated:** [June 16, 2014, 1:22pm UTC](https://www.ruby-forum.com/t/tmp-directory-filling-up/230339 "2014-06-16T13:22:38Z")

</div>

Hi, I have a rails application that is hosted through nginx and passenger. In this application I want provide very large files for the users to download (\>2GB) using send\_file … which is working just fine on the dev…

---

## [How to redirect error page (html) self built html error page](https://www.ruby-forum.com/t/how-to-redirect-error-page-html-self-built-html-error-page/230398)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 2\
**Last updated:** [June 16, 2014, 12:13pm UTC](https://www.ruby-forum.com/t/how-to-redirect-error-page-html-self-built-html-error-page/230398 "2014-06-16T12:13:13Z")

</div>

Hi everyone, Sorry for my english. My scenario like below ; I setup my webserver in cloud and I have my ERP server running at different DC. The connection from cloud to DC is very fast, no interuption at all. When m…

---

## [400 bad requests now returning http headers? ( crossdomain.xml )](https://www.ruby-forum.com/t/400-bad-requests-now-returning-http-headers-crossdomain-xml/230325)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 4\
**Last updated:** [June 16, 2014, 2:12am UTC](https://www.ruby-forum.com/t/400-bad-requests-now-returning-http-headers-crossdomain-xml/230325 "2014-06-16T02:12:24Z")

</div>

Hi, I’m using Nginx to serve a file called crossdomain.xml, that file is used by Flash client to allow socket crossdomain Policy. It’s a trick that many people are using instead of having a dedicated app to server th…

---

## [Rtmp Module and LibRtmp](https://www.ruby-forum.com/t/rtmp-module-and-librtmp/230368)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 4\
**Last updated:** [June 15, 2014, 1:32pm UTC](https://www.ruby-forum.com/t/rtmp-module-and-librtmp/230368 "2014-06-15T13:32:13Z")

</div>

Hello. I am seeking advice and suggestions for this issue with nginx and the rtmp module I have been working with RTMP. Previously i have worked with cRtmpServer, however nginx seems better for extending the servic…

---

## [Parse JSON POST request into nginx variable](https://www.ruby-forum.com/t/parse-json-post-request-into-nginx-variable/230385)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 2\
**Last updated:** [June 15, 2014, 3:59am UTC](https://www.ruby-forum.com/t/parse-json-post-request-into-nginx-variable/230385 "2014-06-15T03:59:03Z")

</div>

How can I read a POST request body which is JSON and get a property? I need to read a property and use it as a variable in proxy\_pass. Pseudo code: $post\_request\_body = ‘{“account”: “test.mydomain.com”, “more-stuff”…

---

## [Nginx error after trying to upload images](https://www.ruby-forum.com/t/nginx-error-after-trying-to-upload-images/230381)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 2\
**Last updated:** [June 14, 2014, 5:58pm UTC](https://www.ruby-forum.com/t/nginx-error-after-trying-to-upload-images/230381 "2014-06-14T17:58:16Z")

</div>

Hi all, Anyone have an idea why we would get this error when trying to upload image? I am stumped as to why nginx erro would be mixed in with this. Is the customers ISP using nginx and blocking our upload? Thank yo…

---

## [Apache To Nginx Web Server](https://www.ruby-forum.com/t/apache-to-nginx-web-server/230379)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 0\
**Last updated:** [June 14, 2014, 4:35pm UTC](https://www.ruby-forum.com/t/apache-to-nginx-web-server/230379 "2014-06-14T16:35:47Z")

</div>

Hello, I want to change my Web Server from Apache to Nginx, but i have a configuration error with this server. I want to change the rewrite module inside .htaccess, shown below, as nginx configuration rewrite module. …

---

## [How could I forbid outside visits without response 403](https://www.ruby-forum.com/t/how-could-i-forbid-outside-visits-without-response-403/230369)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 3\
**Last updated:** [June 14, 2014, 1:19am UTC](https://www.ruby-forum.com/t/how-could-i-forbid-outside-visits-without-response-403/230369 "2014-06-14T01:19:59Z")

</div>

Hi Buddy, I am a newer to Nginx world, now I have a project to link the varnish HTTP server and nginx together, nginx is the back end. I want to allow the connections only by varnish, so I use deny all ,this kind of …

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

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