# Server

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

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

---

## [Does nginx support linger\_close as client?](https://www.ruby-forum.com/t/does-nginx-support-linger-close-as-client/244315)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [March 21, 2016, 5:29pm UTC](https://www.ruby-forum.com/t/does-nginx-support-linger-close-as-client/244315 "2016-03-21T17:29:58Z")

</div>

Hi guys i run nginx as a proxy, it became a client when connecting to a upstream server. i want to close the connection with SO\_LINGER option when i read the full data, because linger\_close send RST to upstream se…

---

## [Workers CPU leak](https://www.ruby-forum.com/t/workers-cpu-leak/244126)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 18\
**Last updated:** [March 21, 2016, 1:01pm UTC](https://www.ruby-forum.com/t/workers-cpu-leak/244126 "2016-03-21T13:01:16Z")

</div>

Hello, I have strange issuses with nginx workers. For some time after start Nginx I notice that some process of workers cause high load to CPU ( principally sys CPU). At first I’ve got syscall traces from one of such…

---

## [How to keep alive when upstream 2 internal server nginx](https://www.ruby-forum.com/t/how-to-keep-alive-when-upstream-2-internal-server-nginx/244313)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [March 21, 2016, 8:30am UTC](https://www.ruby-forum.com/t/how-to-keep-alive-when-upstream-2-internal-server-nginx/244313 "2016-03-21T08:30:13Z")

</div>

This is my config and how i can keep alive request from port \*:83 and port \*:7082 http{ upstream download\_redirect { server 127.0.0.1:80 weight=1; keepalive 20; } server { listen 7082; server\_name…

---

## [Sites overlap in a EC2 server](https://www.ruby-forum.com/t/sites-overlap-in-a-ec2-server/244309)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 3\
**Last updated:** [March 20, 2016, 11:12pm UTC](https://www.ruby-forum.com/t/sites-overlap-in-a-ec2-server/244309 "2016-03-20T23:12:22Z")

</div>

Hi, I have an elatic virtual private server (EC2 VPS by Amazon), in which I would like to host two website (ndrini.eu and dradambrosio.eu). The first (ndrini.eu) is a django dinamic website, and the second (dradambro…

---

## [Nginx 1.9.12 proxy\_cache always returns MISS](https://www.ruby-forum.com/t/nginx-1-9-12-proxy-cache-always-returns-miss/244306)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 5\
**Last updated:** [March 19, 2016, 11:15pm UTC](https://www.ruby-forum.com/t/nginx-1-9-12-proxy-cache-always-returns-miss/244306 "2016-03-19T23:15:56Z")

</div>

Been playing with this for 2 days. proxy\_pass is working correctly but the proxy\_cache\_path remains empty whatever I make. Here’s the source I use for tests: root@NC-PH-0657-10:/etc/nginx/snippets# curl -X GET -I ht…

---

## [Nginx proxy\_path key zone](https://www.ruby-forum.com/t/nginx-proxy-path-key-zone/244307)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [March 19, 2016, 10:29pm UTC](https://www.ruby-forum.com/t/nginx-proxy-path-key-zone/244307 "2016-03-19T22:29:12Z")

</div>

The value I specify for the size of my key zone in the proxy\_path statement is that a per-worker memory allocation or a shared memory zone? (i.e. if its 64mb and I have 32 processors, does the zone consume 64mb of m…

---

## [Limit\_req is not working with dynamically extracted user address](https://www.ruby-forum.com/t/limit-req-is-not-working-with-dynamically-extracted-user-address/244302)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [March 18, 2016, 4:10pm UTC](https://www.ruby-forum.com/t/limit-req-is-not-working-with-dynamically-extracted-user-address/244302 "2016-03-18T16:10:43Z")

</div>

Hi, if our HTTP block looks like below where we find IP from X-Forwarded-For using perl module it looks like zone and limit\_req are not using correct variable $user\_real\_ip or it is reset right after logging. The ngi…

---

## [OpenResty 1.9.7.4 released](https://www.ruby-forum.com/t/openresty-1-9-7-4-released/244296)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [March 17, 2016, 2:52pm UTC](https://www.ruby-forum.com/t/openresty-1-9-7-4-released/244296 "2016-03-17T14:52:32Z")

</div>

Hi folks I am happy to announce the new formal release, 1.9.7.4, of the OpenResty web platform based on NGINX and LuaJIT: https://openresty.org/#Download Both the (portable) source code distribution and the Win32 bin…

---

## [Nginx + openssl 1.0.2 increased memory usage](https://www.ruby-forum.com/t/nginx-openssl-1-0-2-increased-memory-usage/244293)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [March 17, 2016, 12:56am UTC](https://www.ruby-forum.com/t/nginx-openssl-1-0-2-increased-memory-usage/244293 "2016-03-17T00:56:34Z")

</div>

Hello, We attempted to upgrade from nginx + openssl 1.0.1 to nginx + openssl 1.0.2, but unfortunately we ran into some memory related issues when running nginx openssl 1.0.2. When we are running nginx + openssl 1.…

---

## [Reverse Proxy without backend private key](https://www.ruby-forum.com/t/reverse-proxy-without-backend-private-key/244290)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [March 16, 2016, 11:14pm UTC](https://www.ruby-forum.com/t/reverse-proxy-without-backend-private-key/244290 "2016-03-16T23:14:56Z")

</div>

dear allI want to setup this: client ----------------- https-nginx (443) ----------------- https-backend (443) but i don’t have private key and i want to cache data…what can i do ?

---

## [Rev. proxying a java applet](https://www.ruby-forum.com/t/rev-proxying-a-java-applet/244278)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [March 16, 2016, 11:09pm UTC](https://www.ruby-forum.com/t/rev-proxying-a-java-applet/244278 "2016-03-16T23:09:40Z")

</div>

Hi, I’m a beginner to nginx. I want to rev. proxying a page with java applet. I think it is usual and nothing special … This is my 1st config: location /pl-wbr/ { rewrite /pl-wbr/(.\*) /$1 break; proxy\_pass h…

---

## [Upstream server does not match virtual host](https://www.ruby-forum.com/t/upstream-server-does-not-match-virtual-host/244289)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 4\
**Last updated:** [March 16, 2016, 5:53pm UTC](https://www.ruby-forum.com/t/upstream-server-does-not-match-virtual-host/244289 "2016-03-16T17:53:03Z")

</div>

Hello, I have a web server (nginx, iis, apache, whatever) on which I access: http://1.1.1.1 =\> displays default page http://virt1 =\> displays virtual host 1 (ping virt 1 = 1.1.1.1) When I access the url virt1 the pag…

---

## [HTTP/2 and HTTPS](https://www.ruby-forum.com/t/http-2-and-https/244280)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 15\
**Last updated:** [March 16, 2016, 1:30pm UTC](https://www.ruby-forum.com/t/http-2-and-https/244280 "2016-03-16T13:30:45Z")

</div>

Hi everyone, I have strange issue with nginx 1.9.12. I have 3 IP addresses as a server name that are alias IPs on a single Ubuntu server 15.10. Each servername related to specific protocol: http: server { listen …

---

## [Main conf created twice, only closed once?](https://www.ruby-forum.com/t/main-conf-created-twice-only-closed-once/244277)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [March 14, 2016, 2:48pm UTC](https://www.ruby-forum.com/t/main-conf-created-twice-only-closed-once/244277 "2016-03-14T14:48:28Z")

</div>

Hi, I have a problem with a module I’m writing. I need to do something in the main config after variables are read from the conf file, so I have put this in the post\_conf function. Then I need do something when to i…

---

## [How can i bind proxy\_bind to interface name?](https://www.ruby-forum.com/t/how-can-i-bind-proxy-bind-to-interface-name/244276)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [March 14, 2016, 2:23pm UTC](https://www.ruby-forum.com/t/how-can-i-bind-proxy-bind-to-interface-name/244276 "2016-03-14T14:23:56Z")

</div>

i use proxy\_bind with interface ip address, it works fine but i need bind to interface name, for example: ppp0 but it not worked, how can i do? Posted at Nginx Forum:

---

## [HLS proxying multiple sources](https://www.ruby-forum.com/t/hls-proxying-multiple-sources/244272)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [March 13, 2016, 3:41pm UTC](https://www.ruby-forum.com/t/hls-proxying-multiple-sources/244272 "2016-03-13T15:41:41Z")

</div>

Hello, I need a way to provide the ‘proxy\_pass’ argument from external script for hls streaming. One way will be to use exec\_pull with rtmp module, but this means to convert hls to rtmp, and run ffmpeg - pretty cumbe…

---

## [How Does Nginx forward connections?](https://www.ruby-forum.com/t/how-does-nginx-forward-connections/244271)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [March 13, 2016, 3:00pm UTC](https://www.ruby-forum.com/t/how-does-nginx-forward-connections/244271 "2016-03-13T15:00:12Z")

</div>

Hello All, I am thinking, how does Nginx forward TCP connections. Does it create a single TCP connection to backend server (considering single backend) or as many as clients connected to the Nginx proxy. What I mean …

---

## [Correct Rewrite?](https://www.ruby-forum.com/t/correct-rewrite/244258)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [March 13, 2016, 12:31pm UTC](https://www.ruby-forum.com/t/correct-rewrite/244258 "2016-03-13T12:31:15Z")

</div>

We currently use the following method to perform an http to https rewrite. rewrite ^ https://$server\_name$request\_uri permanent; I am planning to change it to the preferred method of: return 301 https://$server\_name$…

---

## [Nginx-1.9.12](https://www.ruby-forum.com/t/nginx-1-9-12/244127)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 7\
**Last updated:** [March 13, 2016, 12:33am UTC](https://www.ruby-forum.com/t/nginx-1-9-12/244127 "2016-03-13T00:33:20Z")

</div>

Changes with nginx 1.9.12 24 Feb 2016 \*) Feature: Huffman encoding of response headers in HTTP/2. Thanks to Vlad Krasnov. \*) Feature: the "worker\_cpu\_affinity" directive now s…

---

## [Name based virtual hosts not working](https://www.ruby-forum.com/t/name-based-virtual-hosts-not-working/244261)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [March 12, 2016, 6:00pm UTC](https://www.ruby-forum.com/t/name-based-virtual-hosts-not-working/244261 "2016-03-12T18:00:11Z")

</div>

Hi! I just did a lemp setup but I can’t get my virtual hosts to work properly. I´m totally lost and out of ideas. Two domains and one starting on e is always responding showing its root and the other starting on s …

---

## [HTTP/2 roadmap](https://www.ruby-forum.com/t/http-2-roadmap/244254)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 4\
**Last updated:** [March 12, 2016, 2:10pm UTC](https://www.ruby-forum.com/t/http-2-roadmap/244254 "2016-03-12T14:10:02Z")

</div>

Hi, What’s the best place to find details on planned features for HTTP/2 support? I’ve only been looking at HTTP/2 for a few days, so forgive me if this is already covered. It seems pretty obvious to me that it pro…

---

## [Can we ask for permission before download?](https://www.ruby-forum.com/t/can-we-ask-for-permission-before-download/244263)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [March 12, 2016, 10:11am UTC](https://www.ruby-forum.com/t/can-we-ask-for-permission-before-download/244263 "2016-03-12T10:11:07Z")

</div>

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

---

## [Problem for play my custom pages error 401](https://www.ruby-forum.com/t/problem-for-play-my-custom-pages-error-401/244262)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [March 12, 2016, 8:45am UTC](https://www.ruby-forum.com/t/problem-for-play-my-custom-pages-error-401/244262 "2016-03-12T08:45:49Z")

</div>

I come to you because I am facing a problem with the customization of the 401 error page in fact I use Nginx and rutorrent, I proceeded as follows: I create a folder named “error\_pages” I placed in the /var/www/ the…

---

## [Dns name for upstream](https://www.ruby-forum.com/t/dns-name-for-upstream/244249)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 8\
**Last updated:** [March 11, 2016, 4:02pm UTC](https://www.ruby-forum.com/t/dns-name-for-upstream/244249 "2016-03-11T16:02:13Z")

</div>

Hi, I saw this example at serverfault.com: server { … resolver 127.0.0.1; set $backend “http://dynamic.example.com:80”; proxy\_pass $backend; … } I have a few questions: If the resolver DNS becomes unavailable …

---

## [Limit\_req is limiting requests outside of location block it is applied to](https://www.ruby-forum.com/t/limit-req-is-limiting-requests-outside-of-location-block-it-is-applied-to/244253)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [March 11, 2016, 2:17pm UTC](https://www.ruby-forum.com/t/limit-req-is-limiting-requests-outside-of-location-block-it-is-applied-to/244253 "2016-03-11T14:17:39Z")

</div>

I have a location ~\* .php$ with limit\_req set inside it. But requests outside of this location block, e.g. for .js and .css files are also being limited. I only want to limit the number of requests to .php files. Thi…

---

## [Nginx cache - could not allocate node in cache keys zone](https://www.ruby-forum.com/t/nginx-cache-could-not-allocate-node-in-cache-keys-zone/244248)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 5\
**Last updated:** [March 10, 2016, 10:19pm UTC](https://www.ruby-forum.com/t/nginx-cache-could-not-allocate-node-in-cache-keys-zone/244248 "2016-03-10T22:19:25Z")

</div>

I have four servers in a pool running nginx with proxy\_cache. One of the nodes started spewing “could not allocate node in cache keys zone” errors for every request (which gave 500 status). I did a restart and it sta…

---

## [How to forward basic-auth from upstream](https://www.ruby-forum.com/t/how-to-forward-basic-auth-from-upstream/244246)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [March 10, 2016, 5:19pm UTC](https://www.ruby-forum.com/t/how-to-forward-basic-auth-from-upstream/244246 "2016-03-10T17:19:45Z")

</div>

hi list, i have an nginx infront of apaches, and the apacheshold a list of locations with basic-auth. i cannot pass the auth-request from the upstream through nginx to the user, when i access the urls through nginx …

---

## [Does stub\_status itself cause performance issues?](https://www.ruby-forum.com/t/does-stub-status-itself-cause-performance-issues/244088)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [March 10, 2016, 4:12am UTC](https://www.ruby-forum.com/t/does-stub-status-itself-cause-performance-issues/244088 "2016-03-10T04:12:52Z")

</div>

Hello, I searched everywhere but found nothing. Is there an overhead of setting stub\_status page and activate it all the time? Using Apache’s ExtendedStatus for example has an impact on performance and recommended to…

---

## [Is there a length limitation on file extensions?](https://www.ruby-forum.com/t/is-there-a-length-limitation-on-file-extensions/244220)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 6\
**Last updated:** [March 9, 2016, 9:26pm UTC](https://www.ruby-forum.com/t/is-there-a-length-limitation-on-file-extensions/244220 "2016-03-09T21:26:17Z")

</div>

I am using Nginx to serve a website that hosts a .Net application. The file a user needs to download and that triggers installation is a \*.application file, and an MS Internet Information Server associates that with …

---

## [How do I set Keep Alive](https://www.ruby-forum.com/t/how-do-i-set-keep-alive/244236)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [March 9, 2016, 2:49pm UTC](https://www.ruby-forum.com/t/how-do-i-set-keep-alive/244236 "2016-03-09T14:49:02Z")

</div>

Hello, I am new to nginx and Speedgrade suggest I enable keepalive to enhance performance of my website(s). I’ve read\*1 that enabling this is also a risk. What is the best practise? \*1 Using NGINX as an Accelerating …

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

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