# Server

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

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

---

## [Executing iptables command from module](https://www.ruby-forum.com/t/executing-iptables-command-from-module/221321)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [July 12, 2012, 7:25am UTC](https://www.ruby-forum.com/t/executing-iptables-command-from-module/221321 "2012-07-12T07:25:18Z")

</div>

I would like to implement iptables into my module, now I want to know if I should even try to do this. I know the worker processes don’t run as root but the master does. So this most likely means I would need to utili…

---

## [Error 400-403 from local network](https://www.ruby-forum.com/t/error-400-403-from-local-network/226318)

<div class="topic-metadata">

**Author:** [@JF002](https://www.ruby-forum.com/u/JF002)\
**Replies:** 0\
**Last updated:** [July 12, 2012, 12:22am UTC](https://www.ruby-forum.com/t/error-400-403-from-local-network/226318 "2012-07-12T00:22:06Z")

</div>

Hi ! I’m currently trying to install Nginx/Php-fpm. In fact, every thing seem to be ok: I can access to html and php pages using the local address (192.168.0.4/index.html, for example, 192.168.0.4 is the IP address o…

---

## [Accessing $arg\_PARAMETER for parameter with in it](https://www.ruby-forum.com/t/accessing-arg-parameter-for-parameter-with-in-it/221366)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [July 11, 2012, 10:35pm UTC](https://www.ruby-forum.com/t/accessing-arg-parameter-for-parameter-with-in-it/221366 "2012-07-11T22:35:11Z")

</div>

Hi, I have a query string parameter that has a dot in it. For example, a.b. I need to write this parameter to my log file. How do I reference it? I’ve tried $arg\_a.b but that prints -.b (ie, it prints the value of …

---

## [Client Cache Time vs. Server Cache Time](https://www.ruby-forum.com/t/client-cache-time-vs-server-cache-time/221370)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [July 11, 2012, 5:31pm UTC](https://www.ruby-forum.com/t/client-cache-time-vs-server-cache-time/221370 "2012-07-11T17:31:57Z")

</div>

Hi Guys, I’d like to setup a reverse proxy that functions as follows. Servers responds telling the client to cache content for 1 hour, but a the same time tells Nginx to cache the content for 24 hours. Every hour cli…

---

## [How to select a proper value for zone\_size argument of the upload\_progress directive?](https://www.ruby-forum.com/t/how-to-select-a-proper-value-for-zone-size-argument-of-the-upload-progress-directive/226314)

<div class="topic-metadata">

**Author:** [@Vadim\_Pavlov](https://www.ruby-forum.com/u/Vadim_Pavlov)\
**Replies:** 0\
**Last updated:** [July 11, 2012, 2:43pm UTC](https://www.ruby-forum.com/t/how-to-select-a-proper-value-for-zone-size-argument-of-the-upload-progress-directive/226314 "2012-07-11T14:43:40Z")

</div>

How many simultaneous uploads I can track with zone\_size set to 1m? Is it a total amount of memory which server allocates per zone or per upload? Thanks for any help. Posted at Nginx Forum:

---

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

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 6\
**Last updated:** [July 10, 2012, 6:35pm UTC](https://www.ruby-forum.com/t/nginx-1-3-3/221356 "2012-07-10T18:35:19Z")

</div>

Changes with nginx 1.3.3 10 Jul 2012 \*) Feature: entity tags support and the "etag" directive. \*) Bugfix: trailing dot in a source value was not ignored if the “map” directiv…

---

## [Nginx/1.3.2 - 4xx responses are returned without HTTP headers, bug?](https://www.ruby-forum.com/t/nginx-1-3-2-4xx-responses-are-returned-without-http-headers-bug/221329)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [July 10, 2012, 12:11pm UTC](https://www.ruby-forum.com/t/nginx-1-3-2-4xx-responses-are-returned-without-http-headers-bug/221329 "2012-07-10T12:11:57Z")

</div>

Hi, I think I stumbled upon a bug in nginx but I would like to get someone else’s opinion on this. It seems all 4xx errors are not prefixed by headers in HTTP responses. I have a simple test-script in bash which you …

---

## [Using http\_upload\_module with http\_perl\_module](https://www.ruby-forum.com/t/using-http-upload-module-with-http-perl-module/221326)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [July 9, 2012, 11:26am UTC](https://www.ruby-forum.com/t/using-http-upload-module-with-http-perl-module/221326 "2012-07-09T11:26:13Z")

</div>

Hi, everyone. I am trying to implement upload using http\_upload\_module with http\_perl\_module. But I am stuck at moment when upload\_module should send obtained information about successfuly uploaded file to the intern…

---

## [Is it possible to skip request body and send a response?](https://www.ruby-forum.com/t/is-it-possible-to-skip-request-body-and-send-a-response/221325)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [July 9, 2012, 9:07am UTC](https://www.ruby-forum.com/t/is-it-possible-to-skip-request-body-and-send-a-response/221325 "2012-07-09T09:07:46Z")

</div>

I’m using access\_by\_lua function to authorize request before starting upload process, It works just awesome. But in case when request is not authorized I would like to send a response skipping the stage of reading req…

---

## [Tool to BAN IPs based on amount of requests and response codes](https://www.ruby-forum.com/t/tool-to-ban-ips-based-on-amount-of-requests-and-response-codes/221319)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [July 9, 2012, 6:50am UTC](https://www.ruby-forum.com/t/tool-to-ban-ips-based-on-amount-of-requests-and-response-codes/221319 "2012-07-09T06:50:28Z")

</div>

Hello all!! Is there a log parser OR nginx module out there that can do this? I prefer this to be a tool that can invoke an iptables action, but not necessarily. BAN If an IP makes more then X requests per hour or da…

---

## [Nginx truncate files than 1G](https://www.ruby-forum.com/t/nginx-truncate-files-than-1g/221290)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [July 8, 2012, 11:56am UTC](https://www.ruby-forum.com/t/nginx-truncate-files-than-1g/221290 "2012-07-08T11:56:19Z")

</div>

Hi my nginx truncate files than 1 G Posted at Nginx Forum:

---

## [Integrating event\_add\_timer, am I doing this right?](https://www.ruby-forum.com/t/integrating-event-add-timer-am-i-doing-this-right/221297)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [July 8, 2012, 9:00am UTC](https://www.ruby-forum.com/t/integrating-event-add-timer-am-i-doing-this-right/221297 "2012-07-08T09:00:29Z")

</div>

Hi, So I have module where I need a certain number of events only to run every 1 second. As of right now I am running them on every request and it’s using a mutex lock. So at 500 requests a second you can see where t…

---

## [Nginx-1.3.2](https://www.ruby-forum.com/t/nginx-1-3-2/220961)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 26\
**Last updated:** [July 7, 2012, 5:15pm UTC](https://www.ruby-forum.com/t/nginx-1-3-2/220961 "2012-07-07T17:15:42Z")

</div>

Changes with nginx 1.3.2 26 Jun 2012 \*) Change: the "single" parameter of the "keepalive" directive is now ignored. \*) Change: SSL compression is now disabled when using all …

---

## [Make an internal site available on the web, proxy? + security](https://www.ruby-forum.com/t/make-an-internal-site-available-on-the-web-proxy-security/221292)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [July 7, 2012, 5:08pm UTC](https://www.ruby-forum.com/t/make-an-internal-site-available-on-the-web-proxy-security/221292 "2012-07-07T17:08:06Z")

</div>

Hi Forumators, Everything is done from home. I’ve a small cms (the exxxcellent lightspeed razorcms) from which I serve my own little site: adsl box is forwarding the external port 80 to svr.loc:80, and everything’s f…

---

## [Access log off nginx not working?](https://www.ruby-forum.com/t/access-log-off-nginx-not-working/221286)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [July 7, 2012, 3:53pm UTC](https://www.ruby-forum.com/t/access-log-off-nginx-not-working/221286 "2012-07-07T15:53:19Z")

</div>

I have the following drop.conf files located in /etc/nginx/drop.conf location = /favicon.ico { access\_log off; log\_not\_found off; } location = /robots.txt { allow all; access\_log off; log\_not\_found off; } location = …

---

## [Nginx serving large files - performance issues with more than ~800-1000 connections](https://www.ruby-forum.com/t/nginx-serving-large-files-performance-issues-with-more-than-800-1000-connections/219990)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [July 7, 2012, 12:17pm UTC](https://www.ruby-forum.com/t/nginx-serving-large-files-performance-issues-with-more-than-800-1000-connections/219990 "2012-07-07T12:17:46Z")

</div>

Hi, I have a cluster of 10 nginx 1.2.0 servers, on Linux. They primarily serve large files. Whenever the number of ESTABLISHED connections to nginx is above 800-1000, the things get very slow. I.e. it can take a min…

---

## [Why should I use question mark?](https://www.ruby-forum.com/t/why-should-i-use-question-mark/221276)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [July 7, 2012, 2:40am UTC](https://www.ruby-forum.com/t/why-should-i-use-question-mark/221276 "2012-07-07T02:40:31Z")

</div>

I want rewrite a uri to itself without querystring, I tried rewrite .+ $uri permanent; but it rewrite to the original uri, with querystring unstripped. After googled, I try rewrite .+ $uri? permanent; and it works c…

---

## [404 Not Found -- nginx/1.0.10](https://www.ruby-forum.com/t/404-not-found-nginx-1-0-10/214401)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 10\
**Last updated:** [July 6, 2012, 7:40pm UTC](https://www.ruby-forum.com/t/404-not-found-nginx-1-0-10/214401 "2012-07-06T19:40:31Z")

</div>

Hello First of all thank you for this forum which I have just joined. I have set up nginx and have it working very well for the past month or so. However I have faced this problem for the second time now. The last …

---

## [Compile nginx for zimbra](https://www.ruby-forum.com/t/compile-nginx-for-zimbra/221271)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 6\
**Last updated:** [July 6, 2012, 4:00pm UTC](https://www.ruby-forum.com/t/compile-nginx-for-zimbra/221271 "2012-07-06T16:00:02Z")

</div>

Hi, I have a ubuntu 10.04 TLS. When compile nginx for zimbra (http://zimbra.imladris.sk/download/src/HELIX-720.fbsd/ThirdParty/nginx/nginx-0.9-zimbra/) I get this error: gcc -o objs/nginx \\ objs/src/core/nginx…

---

## [RE: FLV module issues (was Re: nginx-1.3.2)](https://www.ruby-forum.com/t/re-flv-module-issues-was-re-nginx-1-3-2/221014)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [July 6, 2012, 9:09am UTC](https://www.ruby-forum.com/t/re-flv-module-issues-was-re-nginx-1-3-2/221014 "2012-07-06T09:09:04Z")

</div>

shahzaib, those instructions are for incredibly old versions of things. Perhaps what you’re looking for is this module… http://wiki.nginx.org/HttpFlvModule and/or this one… http://wiki.nginx.org/HttpMp4Module both…

---

## [Static file serving only works if root is a subfolder under public](https://www.ruby-forum.com/t/static-file-serving-only-works-if-root-is-a-subfolder-under-public/221266)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [July 6, 2012, 5:50am UTC](https://www.ruby-forum.com/t/static-file-serving-only-works-if-root-is-a-subfolder-under-public/221266 "2012-07-06T05:50:48Z")

</div>

I am trying to serve static cache files using nginx. There are index.html files under the rails\_root/public/cache directory. I tried the following configuration first, which doesn’t work: root \<%= current\_path %\>/publ…

---

## [NGINX + kerberos](https://www.ruby-forum.com/t/nginx-kerberos/221243)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [July 5, 2012, 6:31pm UTC](https://www.ruby-forum.com/t/nginx-kerberos/221243 "2012-07-05T18:31:59Z")

</div>

Hi, figuring out does exists kerberos auth module for NGINX, found this: scares comment: pray for no segfaults… Wile checked sources don’t see some extremely dangerous code segments. Remember that ngx\_array\_push(&c…

---

## [Locations](https://www.ruby-forum.com/t/locations/221242)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [July 5, 2012, 6:22pm UTC](https://www.ruby-forum.com/t/locations/221242 "2012-07-05T18:22:00Z")

</div>

Hello all, How can I see all locations in a handler? Is it posssible? Thanks. M. Posted at Nginx Forum:

---

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

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [July 5, 2012, 1:38am UTC](https://www.ruby-forum.com/t/ngx-openresty-devel-version-1-2-1-5-released/221222 "2012-07-05T01:38:32Z")

</div>

Hello! After more than one week’s active development, I’m happy to announce that ngx\_openresty development version, 1.2.1.5, is now released: OpenResty® - Open source Below is the change log for this release, as comp…

---

## [Map Module and Domains](https://www.ruby-forum.com/t/map-module-and-domains/221173)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [July 4, 2012, 11:57pm UTC](https://www.ruby-forum.com/t/map-module-and-domains/221173 "2012-07-04T23:57:24Z")

</div>

Ok, I was reading up on the map module and it seems the right way to do this, howeaver I really couldnt think of a way to do this (without just using the if alternative way). Blocking domains is what I want to do, my …

---

## [Problem with proxy\_pass](https://www.ruby-forum.com/t/problem-with-proxy-pass/221214)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [July 4, 2012, 4:42pm UTC](https://www.ruby-forum.com/t/problem-with-proxy-pass/221214 "2012-07-04T16:42:52Z")

</div>

Hi everyone, something wrong in my nginx.conf file: user nginx; worker\_processes 8; error\_log logs/error.log; pid logs/nginx.pid; events { worker\_connections 8192; } http { upstream www\_s…

---

## [SSI and expires header](https://www.ruby-forum.com/t/ssi-and-expires-header/220923)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [July 4, 2012, 3:48pm UTC](https://www.ruby-forum.com/t/ssi-and-expires-header/220923 "2012-07-04T15:48:31Z")

</div>

Hello, We use SSI for serving a specific file but we want it to be cached by the clients for a few hours. We know SSI removes the Expires header set by the standard headers module so we wrote a small perl\_set sub that …

---

## [What exactly does proxy\_http\_version mean?](https://www.ruby-forum.com/t/what-exactly-does-proxy-http-version-mean/221167)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [July 4, 2012, 5:17am UTC](https://www.ruby-forum.com/t/what-exactly-does-proxy-http-version-mean/221167 "2012-07-04T05:17:47Z")

</div>

Along with nginx-1.1.4, a new directive named ‘proxy\_http\_version’ introduced I thought it was something related to the communication between nginx cache and upstream web server, right? But per my tests with latest v…

---

## [Startup error -\> "duplicate listen options" if 2nd IPv6 listener is enabled](https://www.ruby-forum.com/t/startup-error-duplicate-listen-options-if-2nd-ipv6-listener-is-enabled/221175)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [July 3, 2012, 9:24pm UTC](https://www.ruby-forum.com/t/startup-error-duplicate-listen-options-if-2nd-ipv6-listener-is-enabled/221175 "2012-07-03T21:24:21Z")

</div>

I run src-built nginx/1.3.2 on linux/64. I have two nginx vhosts enabled: site 1) … server { server\_name test1.loc; listen 10.0.0.1:443; listen \[2001:xxx:xxxx:xxx::1\]:443 ipv6only=on; … site 2) … ser…

---

## [Nginx-1.2.2](https://www.ruby-forum.com/t/nginx-1-2-2/221168)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [July 3, 2012, 9:07pm UTC](https://www.ruby-forum.com/t/nginx-1-2-2/221168 "2012-07-03T21:07:23Z")

</div>

Changes with nginx 1.2.2 03 Jul 2012 \*) Change: the "single" parameter of the "keepalive" directive is now ignored. \*) Change: SSL compression is now disabled when using all …

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

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