# Server

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

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

---

## [High reading and low writing](https://www.ruby-forum.com/t/high-reading-and-low-writing/221545)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [July 19, 2012, 3:15am UTC](https://www.ruby-forum.com/t/high-reading-and-low-writing/221545 "2012-07-19T03:15:55Z")

</div>

To reduce waiting quota, keepalive\_timeout was set to 3. While the status shows as below, Active connections: 1850 server accepts handled requests 14387580 14387580 15330890 Reading: 1312 Writing: 6 Waiting: 532 My…

---

## [Using "if -f" to return 503 for maintenace: good or bad?](https://www.ruby-forum.com/t/using-if-f-to-return-503-for-maintenace-good-or-bad/221451)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [July 19, 2012, 2:47am UTC](https://www.ruby-forum.com/t/using-if-f-to-return-503-for-maintenace-good-or-bad/221451 "2012-07-19T02:47:52Z")

</div>

Hello, Sometimes I need to regenerate my website. I do not want my users to see semi-generated site. I also do not want google to see 404 errors. The best solution is to return “503” for while I my system generates ne…

---

## [IPV4 & IPV6 Virtual Hosting - address in use](https://www.ruby-forum.com/t/ipv4-ipv6-virtual-hosting-address-in-use/221535)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [July 18, 2012, 8:21pm UTC](https://www.ruby-forum.com/t/ipv4-ipv6-virtual-hosting-address-in-use/221535 "2012-07-18T20:21:41Z")

</div>

I have the sollowing problem: If i config all sites in one file all works finde, but if i have for each host a own config than i get the error nginx: \[emerg\] bind() to \[::\]:80 failed (98: Address already in use) my c…

---

## [Limiting maximum size of cached responses](https://www.ruby-forum.com/t/limiting-maximum-size-of-cached-responses/221534)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [July 18, 2012, 8:18pm UTC](https://www.ruby-forum.com/t/limiting-maximum-size-of-cached-responses/221534 "2012-07-18T20:18:11Z")

</div>

Is there any way to limit caching by response size, so responses won’t be cached if they exceed a maximum value? E.g. Backend responses larger than 5mb won’t be cached. Jader H. Silva

---

## [Upstream "Sticky Connections?"](https://www.ruby-forum.com/t/upstream-sticky-connections/221528)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [July 18, 2012, 4:15pm UTC](https://www.ruby-forum.com/t/upstream-sticky-connections/221528 "2012-07-18T16:15:41Z")

</div>

Hello Everyone, We are currently using Nginx 1.2.1 to terminate SSL and to load balance between two JBoss servers. Here is my upstream block: upstream jboss\_servers { ip\_hash; server 192.168.1.100:8080; server 192…

---

## [Reverse proxy an apache who forces ssl](https://www.ruby-forum.com/t/reverse-proxy-an-apache-who-forces-ssl/221502)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 9\
**Last updated:** [July 18, 2012, 11:47am UTC](https://www.ruby-forum.com/t/reverse-proxy-an-apache-who-forces-ssl/221502 "2012-07-18T11:47:29Z")

</div>

Hi, I am trying to proxy an apache, who forces ssl, see my vhost config: RewriteEngine On RewriteRule /(.\*)$ https://www.acme.eu/$1 \[R=301,L\] The nginx config for port 443 looks like this: \[…\] location ~\* .(jpg|gi…

---

## [Need To Run Multiple Location Blocks](https://www.ruby-forum.com/t/need-to-run-multiple-location-blocks/221494)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [July 18, 2012, 3:45am UTC](https://www.ruby-forum.com/t/need-to-run-multiple-location-blocks/221494 "2012-07-18T03:45:28Z")

</div>

I have the following location blocks: location ^~ /publish { allow 127.0.0.1; #Allow home allow 99.100.101.102; deny all; } Then the following location block to process PHP after: location ~\\.php { try\_file…

---

## [LZ4 + nginx](https://www.ruby-forum.com/t/lz4-nginx/217024)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [July 17, 2012, 8:27pm UTC](https://www.ruby-forum.com/t/lz4-nginx/217024 "2012-07-17T20:27:03Z")

</div>

Just a feature request, Would be nice to have nginx support for LZ4 (like gzip static support), to have an alternative compression method built in…

---

## [Remove Authentication Dialog in the browser when a particular folder is accessed](https://www.ruby-forum.com/t/remove-authentication-dialog-in-the-browser-when-a-particular-folder-is-accessed/221452)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [July 17, 2012, 6:30pm UTC](https://www.ruby-forum.com/t/remove-authentication-dialog-in-the-browser-when-a-particular-folder-is-accessed/221452 "2012-07-17T18:30:43Z")

</div>

Hi I am new to nginx and I want to remove the dialog box that comes up requesting a username and password when the admin folder is accessed. eg; http://localhost/admin The previous developer who handled this left sud…

---

## [Problem with http headers when using ssl](https://www.ruby-forum.com/t/problem-with-http-headers-when-using-ssl/221501)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [July 17, 2012, 4:09pm UTC](https://www.ruby-forum.com/t/problem-with-http-headers-when-using-ssl/221501 "2012-07-17T16:09:49Z")

</div>

Hi everyone, when i’m proxying to tomcat server everything is fine, proxy\_pass works. From there i connect to some payment site, but if i decide to go back, it brings me to to site: https://www80/actionVaiisisPayment…

---

## [Nginx caching in milliseconds](https://www.ruby-forum.com/t/nginx-caching-in-milliseconds/221432)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [July 17, 2012, 10:28am UTC](https://www.ruby-forum.com/t/nginx-caching-in-milliseconds/221432 "2012-07-17T10:28:27Z")

</div>

Hello, would it be possible to cache with nginx below 1 second ? I mean in the hundreds of milliseconds ? For example: proxy\_cache\_valid 200 301 302 500ms; Have a good day, JC – Jean-Christophe Petit VP R&D et D…

---

## [Restricting the url length through nginx](https://www.ruby-forum.com/t/restricting-the-url-length-through-nginx/226334)

<div class="topic-metadata">

**Author:** [@tbt](https://www.ruby-forum.com/u/tbt)\
**Replies:** 1\
**Last updated:** [July 17, 2012, 10:27am UTC](https://www.ruby-forum.com/t/restricting-the-url-length-through-nginx/226334 "2012-07-17T10:27:16Z")

</div>

Hi, I am new to nginx and I have been assigned a project where the previous developer has restricted the url length to a certain size. I want to increase this length but cannot find the place where it has been done. …

---

## [Openupload anyone?](https://www.ruby-forum.com/t/openupload-anyone/221455)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [July 16, 2012, 8:21am UTC](https://www.ruby-forum.com/t/openupload-anyone/221455 "2012-07-16T08:21:41Z")

</div>

Hello Does anyone use ( in production ) openupload with nginx ? If yes I am interrested by some feedback. Thank you

---

## [Nginx 1.0.10 error invalid condition "'!-f"](https://www.ruby-forum.com/t/nginx-1-0-10-error-invalid-condition-f/221383)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [July 15, 2012, 3:11pm UTC](https://www.ruby-forum.com/t/nginx-1-0-10-error-invalid-condition-f/221383 "2012-07-15T15:11:09Z")

</div>

I have that kind of code which I wanna add to my nginx conf but unfortunately something is wrong and I don’t know how to fix it… location ^~ /folder/ { if ($cookie\_amember\_nr !~\* \[a-zA-Z0-9\]+) { #no identity rewrite …

---

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

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [July 15, 2012, 3:22am UTC](https://www.ruby-forum.com/t/ngx-openresty-devel-version-1-2-1-7-released/221441 "2012-07-15T03:22:25Z")

</div>

Hi, folks! After 10 days’ active development, I’m pleased to announce the new development version of ngx\_openresty, 1.2.1.7: OpenResty® - Open source This release features the new UDP and datagram unix domain cosocke…

---

## [Access to subfolder](https://www.ruby-forum.com/t/access-to-subfolder/221439)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [July 14, 2012, 6:58pm UTC](https://www.ruby-forum.com/t/access-to-subfolder/221439 "2012-07-14T18:58:17Z")

</div>

I have site protected by password: location / { auth\_basic … … } but I need excluded some folder ex. /a/b/c/ from authentication it is possible ? Posted at Nginx Forum:

---

## [Nginx high active connections](https://www.ruby-forum.com/t/nginx-high-active-connections/221172)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [July 14, 2012, 6:05pm UTC](https://www.ruby-forum.com/t/nginx-high-active-connections/221172 "2012-07-14T18:05:43Z")

</div>

We have couple of servers. nginx takes the web requests Active connections in the range of 400-450 is okay but sometimes it goes to like 4,000. at this point in time. This is abnormal What does this mean? Is it that …

---

## [Ngx.re.split implementation](https://www.ruby-forum.com/t/ngx-re-split-implementation/226319)

<div class="topic-metadata">

**Author:** [@Jader\_Henrique\_da\_S](https://www.ruby-forum.com/u/Jader_Henrique_da_S)\
**Replies:** 6\
**Last updated:** [July 13, 2012, 11:19pm UTC](https://www.ruby-forum.com/t/ngx-re-split-implementation/226319 "2012-07-13T23:19:33Z")

</div>

Hello I was checking HttpLuaModule docs and saw “ngx.re.split” implementation in the TODO section. Is it already implemented? Are there any details about this implementation (e.g. parameters, returned data)? Jader …

---

## [502 error](https://www.ruby-forum.com/t/502-error/221428)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [July 13, 2012, 10:02pm UTC](https://www.ruby-forum.com/t/502-error/221428 "2012-07-13T22:02:26Z")

</div>

Hello all, have question about 502 Bad Gateway error. Does it generated by Nginx, or by backend server? If it with in Nginx which module generates it? Thanks. M. Posted at Nginx Forum:

---

## [Reverse proxy replaces square brackets in request](https://www.ruby-forum.com/t/reverse-proxy-replaces-square-brackets-in-request/221422)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [July 13, 2012, 9:50pm UTC](https://www.ruby-forum.com/t/reverse-proxy-replaces-square-brackets-in-request/221422 "2012-07-13T21:50:44Z")

</div>

Hi, I have a redirect loop problem with a website that gets reversed proxied. It looks like the following is the cause (which I don’t know how to solve) Inspecting the site with httpfox, the request my browser sends …

---

## [Keep what was uploaded even if browser disconnects](https://www.ruby-forum.com/t/keep-what-was-uploaded-even-if-browser-disconnects/221423)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [July 13, 2012, 12:37pm UTC](https://www.ruby-forum.com/t/keep-what-was-uploaded-even-if-browser-disconnects/221423 "2012-07-13T12:37:20Z")

</div>

Hi all, this might be a little mental, but I have Actionscript code in the browser that kicks off a HTTP POST of a binary body thats about 1MB in size. If the user navigates away from the page, or somehow the browser…

---

## [Bad File Descriptor](https://www.ruby-forum.com/t/bad-file-descriptor/221413)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [July 13, 2012, 5:22am UTC](https://www.ruby-forum.com/t/bad-file-descriptor/221413 "2012-07-13T05:22:03Z")

</div>

Hello, Running v1.0.5 on ubuntu and having an issue. When I make requests I am getting this in the error logs: sendfile() failed (9: Bad file descriptor) while sending response to client Googling turns up patches t…

---

## [Variable substition inconsistency](https://www.ruby-forum.com/t/variable-substition-inconsistency/221407)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [July 13, 2012, 2:10am UTC](https://www.ruby-forum.com/t/variable-substition-inconsistency/221407 "2012-07-13T02:10:57Z")

</div>

Hi List, Here’s a section of my configuration: set $site mysite.com; root /var/www/$site; server\_name $site; access\_log /var/log/nginx/${site}\_access.log; error\_log /var/log/nginx/${site}\_error.log; In this exampl…

---

## [Proxy\_pass and URI processing](https://www.ruby-forum.com/t/proxy-pass-and-uri-processing/221406)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [July 12, 2012, 9:53pm UTC](https://www.ruby-forum.com/t/proxy-pass-and-uri-processing/221406 "2012-07-12T21:53:51Z")

</div>

So I’m looking at the proxy\_pass directive at http://wiki.nginx.org/HttpProxyModule It mentions URI processing. For these cases of URI it is transferred without the mapping. Furthermore, it is possible to indicate so…

---

## [Segfault in nginx 1.2.0 and 1.2.2 when serving 400 error pages via a reverse proxied host](https://www.ruby-forum.com/t/segfault-in-nginx-1-2-0-and-1-2-2-when-serving-400-error-pages-via-a-reverse-proxied-host/246541)

<div class="topic-metadata">

**Author:** [@Russell\_Howe](https://www.ruby-forum.com/u/Russell_Howe)\
**Replies:** 0\
**Last updated:** [July 12, 2012, 6:50pm UTC](https://www.ruby-forum.com/t/segfault-in-nginx-1-2-0-and-1-2-2-when-serving-400-error-pages-via-a-reverse-proxied-host/246541 "2012-07-12T18:50:16Z")

</div>

Earlier this year we noticed a large number of segfaulting nginx processes. This turned out to be an instance of: whereby we had a config snippet which looked like: error\_page 400 @fallback Triggered (we think) by…

---

## [Self Signed Certs](https://www.ruby-forum.com/t/self-signed-certs/221397)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [July 12, 2012, 5:18pm UTC](https://www.ruby-forum.com/t/self-signed-certs/221397 "2012-07-12T17:18:29Z")

</div>

I have a fully working installation of NGINX. I can server http and https websites when they have valid certificates. Only a few of my servers use certificates signed by 3rd Party CA and those work correctly. A few of…

---

## [Flush FastCGI response early vs. GZIP](https://www.ruby-forum.com/t/flush-fastcgi-response-early-vs-gzip/221395)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [July 12, 2012, 2:37pm UTC](https://www.ruby-forum.com/t/flush-fastcgi-response-early-vs-gzip/221395 "2012-07-12T14:37:11Z")

</div>

Sending the first few kilobytes of an HTML page to the client as early as possible enables the client to download stylesheets without having to wait for the whole HTML document (which might require database queries an…

---

## [How to config to call http://ip-address](https://www.ruby-forum.com/t/how-to-config-to-call-http-ip-address/221394)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [July 12, 2012, 1:37pm UTC](https://www.ruby-forum.com/t/how-to-config-to-call-http-ip-address/221394 "2012-07-12T13:37:01Z")

</div>

how to configure to call http://ip-address to specif location Posted at Nginx Forum:

---

## [Could anyone can tell me why the operator in this code is '\>='?](https://www.ruby-forum.com/t/could-anyone-can-tell-me-why-the-operator-in-this-code-is/226311)

<div class="topic-metadata">

**Author:** [@mogu0401](https://www.ruby-forum.com/u/mogu0401)\
**Replies:** 1\
**Last updated:** [July 12, 2012, 9:50am UTC](https://www.ruby-forum.com/t/could-anyone-can-tell-me-why-the-operator-in-this-code-is/226311 "2012-07-12T09:50:48Z")

</div>

ngx\_slab.c void \* ngx\_slab\_alloc\_locked(ngx\_slab\_pool\_t \*pool, size\_t size) { size\_t s; uintptr\_t p, n, m, mask, \*bitmap; ngx\_uint\_t i, slot, shift, map; ngx\_slab\_page\_t \*page, \*prev, \*s…

---

## [Rewrite Exclude](https://www.ruby-forum.com/t/rewrite-exclude/226326)

<div class="topic-metadata">

**Author:** [@Alexander\_Meis](https://www.ruby-forum.com/u/Alexander_Meis)\
**Replies:** 0\
**Last updated:** [July 12, 2012, 9:34am UTC](https://www.ruby-forum.com/t/rewrite-exclude/226326 "2012-07-12T09:34:26Z")

</div>

Hi, i have the following rewrite rules rewrite /files/documents/.\* /engine last; rewrite /templates/(.\*(css|js))$ /engine/backend … if (!-e $request\_filename) { rewrite . /shopware.php last; } i want everything u…

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

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