# Server

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

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

---

## [Nginx 1.2.1 warning when using clang](https://www.ruby-forum.com/t/nginx-1-2-1-warning-when-using-clang/220947)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [June 26, 2012, 9:01am UTC](https://www.ruby-forum.com/t/nginx-1-2-1-warning-when-using-clang/220947 "2012-06-26T09:01:46Z")

</div>

OpenSUSE 11.4 using clang warning : src/core/nginx.c:487:37: warning: array index of ‘3’ indexes past the end of an array (that contains 3 elements) \[-Warray-bounds\] if (ngx\_strcmp(var\[i\].data, “TZ”) == 0 ~~~~~~~…

---

## [How to disable auto redirect to visual host?](https://www.ruby-forum.com/t/how-to-disable-auto-redirect-to-visual-host/220948)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [June 26, 2012, 8:47am UTC](https://www.ruby-forum.com/t/how-to-disable-auto-redirect-to-visual-host/220948 "2012-06-26T08:47:45Z")

</div>

server { server\_name www.clickzeed.com; listen 80; server\_name\_in\_redirect off; root /home/wwwroot/clickzeed; } but i not set anything about www.test.com when i access www.test.com in visual host it auto redirect …

---

## [A Challenging Config](https://www.ruby-forum.com/t/a-challenging-config/220924)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [June 26, 2012, 8:44am UTC](https://www.ruby-forum.com/t/a-challenging-config/220924 "2012-06-26T08:44:49Z")

</div>

Ok, Ive been working on a project for a long time. It involves automated config file building for the nginx web server :slight\_smile: Now im adding caching. The user of the software can using the interface select rege…

---

## [Nginx + gunicorn + web.py](https://www.ruby-forum.com/t/nginx-gunicorn-web-py/220927)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [June 25, 2012, 4:55pm UTC](https://www.ruby-forum.com/t/nginx-gunicorn-web-py/220927 "2012-06-25T16:55:41Z")

</div>

Hello everyone, As you can see in configuration, we have nginx servers (there are 2 of them) as reverse proxy which keep requests balanced for 6 gunicorn application(web.py framework) nodes. In python part, we calcul…

---

## [AJP from apache to nginx](https://www.ruby-forum.com/t/ajp-from-apache-to-nginx/220915)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [June 25, 2012, 2:50pm UTC](https://www.ruby-forum.com/t/ajp-from-apache-to-nginx/220915 "2012-06-25T14:50:01Z")

</div>

Hi everyone, first of all i’m completely new user of nginx. I want to move from apache-tomcat to nginx-tomcat, but i’m having big problems with nginx ajp module and how to use it. Any help would be greatly appreciated…

---

## [Limit zone nor working](https://www.ruby-forum.com/t/limit-zone-nor-working/220876)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [June 25, 2012, 12:57pm UTC](https://www.ruby-forum.com/t/limit-zone-nor-working/220876 "2012-06-25T12:57:15Z")

</div>

limit\_conn\_zone $remote\_user zone=peruser:10m; limit\_conn peruser 1 ; Not working why? Thank you Posted at Nginx Forum:

---

## [Cache and mobile video playback](https://www.ruby-forum.com/t/cache-and-mobile-video-playback/220830)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [June 25, 2012, 12:48pm UTC](https://www.ruby-forum.com/t/cache-and-mobile-video-playback/220830 "2012-06-25T12:48:29Z")

</div>

Hello, We are using nginx as a load balancer for mp4 videos. Everything works perfectly but we started having issues with mobile video playback. Somehow the video, after it’s stored on the nginx cache, can’t be played …

---

## [Nginx rewrite expression dilemma](https://www.ruby-forum.com/t/nginx-rewrite-expression-dilemma/220920)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [June 25, 2012, 12:39pm UTC](https://www.ruby-forum.com/t/nginx-rewrite-expression-dilemma/220920 "2012-06-25T12:39:42Z")

</div>

Hi, Having following apache config working: ========================================================= \<Directory /data/www/dev/domain.com/cf/htdocs/get\> Options FollowSymlinks RewriteEngine on RewriteRule …

---

## [Problem with try files: =404 results in php files being downloaded instead of parsed by php](https://www.ruby-forum.com/t/problem-with-try-files-404-results-in-php-files-being-downloaded-instead-of-parsed-by-php/220909)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [June 25, 2012, 12:22pm UTC](https://www.ruby-forum.com/t/problem-with-try-files-404-results-in-php-files-being-downloaded-instead-of-parsed-by-php/220909 "2012-06-25T12:22:10Z")

</div>

Hello, I tried changing my template configuration so that it would show “404 not found” instead of “No input file specified.” but to my surprise, try\_files did something completely unpredictable and now I’m stuck with …

---

## [Gzip gzip\_min\_length directives doesn't work in ajax?](https://www.ruby-forum.com/t/gzip-gzip-min-length-directives-doesnt-work-in-ajax/220894)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [June 25, 2012, 12:11pm UTC](https://www.ruby-forum.com/t/gzip-gzip-min-length-directives-doesnt-work-in-ajax/220894 "2012-06-25T12:11:38Z")

</div>

I have the following conf http { … gzip on; gzip\_min\_length 1000; gzip\_buffers 16 64k; gzip\_http\_version 1.1; gzip\_comp\_level 6; gzip\_types text/plain application/x-javascript text/css application/xml; gzip\_var…

---

## [Fwd: nginx.org documents in simplified Chinese](https://www.ruby-forum.com/t/fwd-nginx-org-documents-in-simplified-chinese/220917)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [June 25, 2012, 11:43am UTC](https://www.ruby-forum.com/t/fwd-nginx-org-documents-in-simplified-chinese/220917 "2012-06-25T11:43:36Z")

</div>

Hello, could someone with Chinese language do a brief review of an enclosed diff for us? Thanks in advance, -------- Original Message -------- Subject: Re: nginx.org documents in simplified Chinese Date: Thu, 3…

---

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

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [June 25, 2012, 6:40am UTC](https://www.ruby-forum.com/t/ngx-openresty-devel-version-1-2-1-3-released/220912 "2012-06-25T06:40:54Z")

</div>

Hello! After about three days’ active development, I’m happy to annouce the new development version of ngx\_openresty, 1.2.1.3: OpenResty® - Open source Below is the change log for this release (compared with the last …

---

## [Conversion of PHP single machine setup to nginx/php residing on different boxes](https://www.ruby-forum.com/t/conversion-of-php-single-machine-setup-to-nginx-php-residing-on-different-boxes/220347)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [June 24, 2012, 12:34pm UTC](https://www.ruby-forum.com/t/conversion-of-php-single-machine-setup-to-nginx-php-residing-on-different-boxes/220347 "2012-06-24T12:34:08Z")

</div>

Hello, I am trying to implement http://www.howtoforge.com/installing-nginx-with- php5-and-mysql-support-on-debian-squeeze , where the nginx server config looks like so: root /usr/share; # #err…

---

## [Delay error 503 code with ngx\_http\_delay](https://www.ruby-forum.com/t/delay-error-503-code-with-ngx-http-delay/220873)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [June 23, 2012, 4:19pm UTC](https://www.ruby-forum.com/t/delay-error-503-code-with-ngx-http-delay/220873 "2012-06-23T16:19:28Z")

</div>

I would like to add a small delay to error 503 responses back to the client. Error code 503 is triggered when a client hits the “limit\_req\_zone” of 200 requests per minute. Maxim’s ngx\_http\_delay looks like the right …

---

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

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [June 22, 2012, 5:18pm UTC](https://www.ruby-forum.com/t/ngx-openresty-devel-version-1-2-1-1-released/220869 "2012-06-22T17:18:21Z")

</div>

Hello! After about one week’s active development, the new development version of ngx\_openresty, 1.2.1.1, is now released: OpenResty® - Open source Below is the change log for this release, as compared to the last r…

---

## [TCP Socket TIME\_WAIT problem](https://www.ruby-forum.com/t/tcp-socket-time-wait-problem/220859)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [June 22, 2012, 1:15pm UTC](https://www.ruby-forum.com/t/tcp-socket-time-wait-problem/220859 "2012-06-22T13:15:52Z")

</div>

Hi folks, I’m deeply testing NGINX to understand boundaries and limits because I’d like to create a webservice for an high performance application in our LAN. I’m currently running NGINX 1.2.1 on Linux and I’m just se…

---

## [Limit\_req\_zone to sleep instead of an error 504 or 404](https://www.ruby-forum.com/t/limit-req-zone-to-sleep-instead-of-an-error-504-or-404/220844)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [June 22, 2012, 2:55am UTC](https://www.ruby-forum.com/t/limit-req-zone-to-sleep-instead-of-an-error-504-or-404/220844 "2012-06-22T02:55:47Z")

</div>

I would like to propose to replace the error code “limit\_req\_zone” sends back to a user with a simple sleep statement instead. I am using limit\_req\_zone on some production servers to limit the amount of downloads ea…

---

## [Proxy\_cache not working for me](https://www.ruby-forum.com/t/proxy-cache-not-working-for-me/220846)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [June 22, 2012, 1:51am UTC](https://www.ruby-forum.com/t/proxy-cache-not-working-for-me/220846 "2012-06-22T01:51:30Z")

</div>

http { proxy\_cache\_path /dev/shm/cache/nginx/ levels=1:2 keys\_zone=cache:30m inactive=1d max\_size=500M; proxy\_temp\_path /dev/shm/cache/nginx/tmp 1 2; proxy\_cache\_key “$scheme$request\_method$re…

---

## [Module which adds new upstream host and port](https://www.ruby-forum.com/t/module-which-adds-new-upstream-host-and-port/220845)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [June 22, 2012, 1:49am UTC](https://www.ruby-forum.com/t/module-which-adds-new-upstream-host-and-port/220845 "2012-06-22T01:49:45Z")

</div>

Module which adds new upstream host and port to pool. How it should be done? Posted at Nginx Forum:

---

## [Intermittent proxy\_pass error - body shows headers](https://www.ruby-forum.com/t/intermittent-proxy-pass-error-body-shows-headers/220838)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [June 21, 2012, 9:59pm UTC](https://www.ruby-forum.com/t/intermittent-proxy-pass-error-body-shows-headers/220838 "2012-06-21T21:59:28Z")

</div>

Hi all First kudos to all of the maintainers of modules and the nginx team. Great product guys!! I am getting an intermittent error where the headers of a 302 redirect are being shown as the body in the browser. The…

---

## [Proxy\_pass destination set by request custom header](https://www.ruby-forum.com/t/proxy-pass-destination-set-by-request-custom-header/220834)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [June 21, 2012, 7:07pm UTC](https://www.ruby-forum.com/t/proxy-pass-destination-set-by-request-custom-header/220834 "2012-06-21T19:07:06Z")

</div>

Hello, location ~ ^/api/v(\\d)/foo/bar/(.\*) { proxy\_set\_header X-Real-IP $remote\_addr; proxy\_set\_header X-Forwarded-For $proxy\_add\_x\_forwarded\_for; proxy\_set\_header Host $http\_host; proxy\_redirect off; proxy\_max\_t…

---

## [Geo-ip latency, or lazy load variables](https://www.ruby-forum.com/t/geo-ip-latency-or-lazy-load-variables/220832)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [June 21, 2012, 5:59pm UTC](https://www.ruby-forum.com/t/geo-ip-latency-or-lazy-load-variables/220832 "2012-06-21T17:59:18Z")

</div>

Hi, We are testing the Geo-IP module with the city and country databases and noticed a decrease in performance for all locations on the server. It seems that whenever the geoip\_country and geoip\_city directives are s…

---

## [Different limit\_req rules for different user agents](https://www.ruby-forum.com/t/different-limit-req-rules-for-different-user-agents/220713)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [June 21, 2012, 1:46pm UTC](https://www.ruby-forum.com/t/different-limit-req-rules-for-different-user-agents/220713 "2012-06-21T13:46:47Z")

</div>

Hello. I need to check client’s user agent and apply different limit\_req rules for different UAs. I’ve been trying to do it this way: http { limit\_req\_zone $binary\_remote\_addr zone=bots:10m rate=1r/m; server { … …

---

## [Reverse proxy shopping system](https://www.ruby-forum.com/t/reverse-proxy-shopping-system/220799)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [June 21, 2012, 11:22am UTC](https://www.ruby-forum.com/t/reverse-proxy-shopping-system/220799 "2012-06-21T11:22:53Z")

</div>

Hi, I have several shopping systems running on apache that I would like to proxy with nginx. In general it works fine, but in some shops I have the problem that when I add items to the shopping cart and then proceed t…

---

## [Error handling of "Connection refused" conditions](https://www.ruby-forum.com/t/error-handling-of-connection-refused-conditions/220801)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [June 20, 2012, 10:58pm UTC](https://www.ruby-forum.com/t/error-handling-of-connection-refused-conditions/220801 "2012-06-20T22:58:38Z")

</div>

I am using nginx to distribute http load across three upstream application servers. It actually works really well in normal usage, but when we restart one of the upstream servers for maintenance (such as for an OS upd…

---

## [Need help with writing module](https://www.ruby-forum.com/t/need-help-with-writing-module/220800)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [June 20, 2012, 8:45pm UTC](https://www.ruby-forum.com/t/need-help-with-writing-module/220800 "2012-06-20T20:45:54Z")

</div>

I am new to nginx. This going to be my first module. What would be best way to write it? When there is specific http requeset, module should open file and read the tex from it, and write some text to the file. It shou…

---

## [HttpProxyModule vs HttpFastcgiModule](https://www.ruby-forum.com/t/httpproxymodule-vs-httpfastcgimodule/220803)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [June 20, 2012, 8:38pm UTC](https://www.ruby-forum.com/t/httpproxymodule-vs-httpfastcgimodule/220803 "2012-06-20T20:38:53Z")

</div>

As I understand, we have to use HttpFastcgiModule for fastcgi call caching and HttpProxyModule for static files. Could someone please explain the reasons for why we have this distinction. In most of the cases I obse…

---

## [Dropped connections on our Nginx](https://www.ruby-forum.com/t/dropped-connections-on-our-nginx/220783)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [June 20, 2012, 2:49pm UTC](https://www.ruby-forum.com/t/dropped-connections-on-our-nginx/220783 "2012-06-20T14:49:00Z")

</div>

Hi list I have a problem with dropped connections on an Nginx cluster that has up to 100k requests per minute per Nginx instance. It seems that in around 1 of 10\`000 requests that are sent to our Nginx, the TCP conne…

---

## [Ngx.location.capture\_multi multiple posts](https://www.ruby-forum.com/t/ngx-location-capture-multi-multiple-posts/220755)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [June 20, 2012, 8:32am UTC](https://www.ruby-forum.com/t/ngx-location-capture-multi-multiple-posts/220755 "2012-06-20T08:32:56Z")

</div>

Hello, I try to use ngx.location.capture\_multi to send multiple post requests: upstream \_server1 { server server1:80; } upstream \_server2 { server server2:80; } server { listen 10.0.0.254:80; server\_name server…

---

## [How to set html files into memcache](https://www.ruby-forum.com/t/how-to-set-html-files-into-memcache/220688)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 7\
**Last updated:** [June 20, 2012, 8:26am UTC](https://www.ruby-forum.com/t/how-to-set-html-files-into-memcache/220688 "2012-06-20T08:26:30Z")

</div>

Using HttpMemcachedModule I could easily integrate memcache with nginx. I wanted to know how do I set the missing htmls into memcache. Like this If $uri in memchache serve from memcache else set into memcache serv…

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

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