# Server

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

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

---

## [Mapping a User Agent to an IP address:](https://www.ruby-forum.com/t/mapping-a-user-agent-to-an-ip-address/217031)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [February 20, 2012, 8:29am UTC](https://www.ruby-forum.com/t/mapping-a-user-agent-to-an-ip-address/217031 "2012-02-20T08:29:14Z")

</div>

Hey guys, I’m running NGINX as a front for my apache servers and I’m having issues where mappings within the config on occasion aren’t being set. For instance with the following config: func $my\_ip\_match{ default 0; …

---

## [Htaccess conversion nginx](https://www.ruby-forum.com/t/htaccess-conversion-nginx/217008)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 10\
**Last updated:** [February 20, 2012, 12:36am UTC](https://www.ruby-forum.com/t/htaccess-conversion-nginx/217008 "2012-02-20T00:36:03Z")

</div>

hi nginx family, RewriteEngine On RewriteRule ^(\[0-9a-zA-Z\]{1,6})$ links/?to=$1 \[L\] RewriteRule ^(\[0-9\]{1,9})/banner/(.)$ links/?uid=$1&adt=2&url=$2 \[L\] RewriteRule ^(\[0-9\]{1,9})/(.)$ links/?uid=$1&adt=1&url=$2 \[L\] h…

---

## ["error\_page"& "return" bug?](https://www.ruby-forum.com/t/error-page-return-bug/217006)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 24\
**Last updated:** [February 19, 2012, 7:37pm UTC](https://www.ruby-forum.com/t/error-page-return-bug/217006 "2012-02-19T19:37:20Z")

</div>

Hello, It appears that the error\_page directive is ignored when a status code is returned in the server context. (running v1.0.12 Stable). Server { listen etc … error\_page 503 /error\_docs/custom503.html; return 50…

---

## [Problem on proxy\_pass the feedburner via nginx](https://www.ruby-forum.com/t/problem-on-proxy-pass-the-feedburner-via-nginx/217005)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [February 19, 2012, 9:42am UTC](https://www.ruby-forum.com/t/problem-on-proxy-pass-the-feedburner-via-nginx/217005 "2012-02-19T09:42:17Z")

</div>

Hi guys, this is my first post in this forum. I want to use nginx to self host my feedburner page so as to make it possible to anyone who can access my VPS. But something is wrong as it shows nothing rather than the s…

---

## [Dynamic reverse proxy configuration](https://www.ruby-forum.com/t/dynamic-reverse-proxy-configuration/216928)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [February 19, 2012, 7:17am UTC](https://www.ruby-forum.com/t/dynamic-reverse-proxy-configuration/216928 "2012-02-19T07:17:45Z")

</div>

Hi, I am currently trying to develop a module that could allow Nginx act as a reverse proxy to a cluster of nodes using Zookeeper. I would like to ask if it is possible to develop such a module. I found a question on…

---

## [Making http\_auth\_request\_module a first-class citizen?](https://www.ruby-forum.com/t/making-http-auth-request-module-a-first-class-citizen/216840)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [February 19, 2012, 4:08am UTC](https://www.ruby-forum.com/t/making-http-auth-request-module-a-first-class-citizen/216840 "2012-02-19T04:08:28Z")

</div>

Hello Maxim, Back in 2010 you wrote that it’s not likely that your http\_auth\_request\_module would make it into nginx core. I’m curious if anything has changed over the past two years? It’s not that compiling this mod…

---

## [Can proxy\_cache gzip cached content?](https://www.ruby-forum.com/t/can-proxy-cache-gzip-cached-content/216798)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [February 19, 2012, 12:31am UTC](https://www.ruby-forum.com/t/can-proxy-cache-gzip-cached-content/216798 "2012-02-19T00:31:50Z")

</div>

Hello, I’m looking at using Nginx as a reverse proxy to cache a few millions HTML pages coming from a backend server. The cached content will very seldom (if at all) change so both proxy\_cache and proxy\_store could…

---

## [Partial downloads](https://www.ruby-forum.com/t/partial-downloads/216997)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [February 19, 2012, 12:24am UTC](https://www.ruby-forum.com/t/partial-downloads/216997 "2012-02-19T00:24:25Z")

</div>

Hello, guys, Recently, I’ve started seeing a strange problem - sometimes it happens that nginx only transfers only a small part of the file and the download gets interrupted. When I debug it, the issue narrows down to…

---

## [Nginx worker stuck, potential mod\_zip bug](https://www.ruby-forum.com/t/nginx-worker-stuck-potential-mod-zip-bug/216974)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [February 18, 2012, 11:11pm UTC](https://www.ruby-forum.com/t/nginx-worker-stuck-potential-mod-zip-bug/216974 "2012-02-18T23:11:23Z")

</div>

I’m running an older version of nginx (0.7.67) with mod\_zip 1.1.6. I believe we have a found a rare bug, I’m trying to figure out of it is with mod\_zip or with nginx, and if upgrading nginx will potentially resolve it…

---

## [Someone need to update the latest stable CentOS (Possibly RedHat) NginX files](https://www.ruby-forum.com/t/someone-need-to-update-the-latest-stable-centos-possibly-redhat-nginx-files/216918)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [February 18, 2012, 3:11pm UTC](https://www.ruby-forum.com/t/someone-need-to-update-the-latest-stable-centos-possibly-redhat-nginx-files/216918 "2012-02-18T15:11:53Z")

</div>

Hello, Following instructions on nginx: download, I tried to install NginX on CentOS 6 and it failed. See the three approaches I used below. First Try +==+==+==+==+==+==+==+==+==+==+==+==+==+==+==+==+==+==+==+==+==+…

---

## [Complexity of nginx](https://www.ruby-forum.com/t/complexity-of-nginx/216985)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [February 18, 2012, 1:38pm UTC](https://www.ruby-forum.com/t/complexity-of-nginx/216985 "2012-02-18T13:38:53Z")

</div>

Hello, Would tell me how to reduce the number of spawned php-fpm processes in order to reduce the load in your server? Results are given below: root@server \[~\]# top -c top - 10:56:37 up 6 days, 2:51, 1 user, load a…

---

## [Nginx-1.1.15](https://www.ruby-forum.com/t/nginx-1-1-15/216843)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [February 18, 2012, 4:08am UTC](https://www.ruby-forum.com/t/nginx-1-1-15/216843 "2012-02-18T04:08:13Z")

</div>

Changes with nginx 1.1.15 15 Feb 2012 \*) Feature: the "disable\_symlinks" directive. \*) Feature: the "proxy\_cookie\_domain" and "proxy\_cookie\_path" directives. \*) Bugfix: nginx…

---

## [Nginx http auth module query](https://www.ruby-forum.com/t/nginx-http-auth-module-query/216927)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 10\
**Last updated:** [February 17, 2012, 3:19pm UTC](https://www.ruby-forum.com/t/nginx-http-auth-module-query/216927 "2012-02-17T15:19:35Z")

</div>

Hi, I have the following use case - I have nginx running at port 80 and a php hiphop server running at 4247. I want to achieve the following configuration - Whenever a request is received at nginx port 80, it should …

---

## [Bug report: missing SCARCE string in nginx-1.1.15/src/http/ngx\_http\_file\_cache.c](https://www.ruby-forum.com/t/bug-report-missing-scarce-string-in-nginx-1-1-15-src-http-ngx-http-file-cache-c/216875)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [February 17, 2012, 12:23pm UTC](https://www.ruby-forum.com/t/bug-report-missing-scarce-string-in-nginx-1-1-15-src-http-ngx-http-file-cache-c/216875 "2012-02-17T12:23:44Z")

</div>

Hello, the value of the NGX\_HTTP\_CACHE\_SCARCE cache status is defined in nginx-1.1.15/src/http/ngx\_http\_cache.h, but unlike the other cache status strings, it’s missing from nginx-1.1.15/src/http/ngx\_http\_file\_cache.…

---

## [Nginx cache tuning / debug](https://www.ruby-forum.com/t/nginx-cache-tuning-debug/216943)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [February 17, 2012, 12:10pm UTC](https://www.ruby-forum.com/t/nginx-cache-tuning-debug/216943 "2012-02-17T12:10:01Z")

</div>

Hello. I cache contents with NGINX proxy\_cache in all my sites but I’m not sure I’ve the best setup. Are there rules/hints to properly set the size and/or the TTL for the cache ? Would be nice to have a tool that mon…

---

## [Wordpress Permalinks](https://www.ruby-forum.com/t/wordpress-permalinks/216921)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [February 17, 2012, 8:23am UTC](https://www.ruby-forum.com/t/wordpress-permalinks/216921 "2012-02-17T08:23:01Z")

</div>

Howdy. So I am trying to get permalinks to work with Wordpress. I have read a few articles/blog posts but still no luck. The permalink structure I am trying to use is: http://mydomain.com/wp/index.php/2012/02/sample-…

---

## [Host header and SSL](https://www.ruby-forum.com/t/host-header-and-ssl/216922)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [February 17, 2012, 8:16am UTC](https://www.ruby-forum.com/t/host-header-and-ssl/216922 "2012-02-17T08:16:10Z")

</div>

Hi, in my setup Nginx is a load balancer to many different services, some of them are using SSL (so Nginx is also SSL terminator in this case). I have many different IPs and for every IP it happen to be more than one…

---

## [Memory leaks nginx with lua memc upstream\_keepalive modules/](https://www.ruby-forum.com/t/memory-leaks-nginx-with-lua-memc-upstream-keepalive-modules/216903)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [February 17, 2012, 5:07am UTC](https://www.ruby-forum.com/t/memory-leaks-nginx-with-lua-memc-upstream-keepalive-modules/216903 "2012-02-17T05:07:38Z")

</div>

\[root@VKRT083 /home/fish\]# uname -a FreeBSD VKRT083.local 8.2-RELEASE-p3 FreeBSD 8.2-RELEASE-p3 #0: Tue Sep 27 18:45:57 UTC 2011 removed\_email\_address@domain.invalid:/usr/obj/usr/src/sys/GENERIC amd64 \[root@VKRT083 …

---

## [UserDir](https://www.ruby-forum.com/t/userdir/216325)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [February 17, 2012, 12:37am UTC](https://www.ruby-forum.com/t/userdir/216325 "2012-02-17T00:37:58Z")

</div>

I’m having trouble getting UserDir to work. I think it has something to do with the PHP fastcgi options. Can someone please take a look at my configuration and double check what I have? Any help is appreciated. Thank…

---

## [Nginx documentation status](https://www.ruby-forum.com/t/nginx-documentation-status/216911)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [February 16, 2012, 8:18pm UTC](https://www.ruby-forum.com/t/nginx-documentation-status/216911 "2012-02-16T20:18:26Z")

</div>

This is to let you all know that we’ve finished translating original Russian documentation into English, and now start the process of actively updating it to bring it up to date. So, please check this before you look …

---

## [Geoip+php](https://www.ruby-forum.com/t/geoip-php/216908)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [February 16, 2012, 6:56pm UTC](https://www.ruby-forum.com/t/geoip-php/216908 "2012-02-16T18:56:25Z")

</div>

Hi. I’d want to secure some locations with basic GeoIP like this: /etc/nginx/sites-enabled/default\_server upstream error { server localhost:9222; } server { root /var/www/htdocs; server\_name 10.10.10.10; lis…

---

## [Help with debugging - stall on response size is a symptom but what is the cause?](https://www.ruby-forum.com/t/help-with-debugging-stall-on-response-size-is-a-symptom-but-what-is-the-cause/216679)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [February 16, 2012, 6:34am UTC](https://www.ruby-forum.com/t/help-with-debugging-stall-on-response-size-is-a-symptom-but-what-is-the-cause/216679 "2012-02-16T06:34:33Z")

</div>

Hi, I’m new to nginx and am trying to use it as a front end web server to a java-based Play framework web app, via reverse proxy. But I’m getting strange timeout behaviour and am not sure how to proceed with debuggin…

---

## [Rewriting Base URL when passing](https://www.ruby-forum.com/t/rewriting-base-url-when-passing/216851)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 16\
**Last updated:** [February 15, 2012, 11:14pm UTC](https://www.ruby-forum.com/t/rewriting-base-url-when-passing/216851 "2012-02-15T23:14:20Z")

</div>

I’m trying to setup Django through UWSGI using Nginx. I got the UWSGI pass to work using this function location / { include uwsgi\_params; uwsgi\_pass 127.0.…

---

## [I patched the spnego module](https://www.ruby-forum.com/t/i-patched-the-spnego-module/216828)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [February 15, 2012, 7:11pm UTC](https://www.ruby-forum.com/t/i-patched-the-spnego-module/216828 "2012-02-15T19:11:26Z")

</div>

Hi, i only want to announce, that i patched the spnego module, so you can use it as a 100% replacement to apache2+mod\_auth\_kerb. I installed in on 3 hosts running now for about 2 weeks without an error. Perhaps s…

---

## [.htaccess issues](https://www.ruby-forum.com/t/htaccess-issues/216682)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 21\
**Last updated:** [February 15, 2012, 6:40pm UTC](https://www.ruby-forum.com/t/htaccess-issues/216682 "2012-02-15T18:40:26Z")

</div>

I’m starting to use nginx as a proxy/cache (apache back-end), and I’ve a problem regarding directories that uses .htaccess to restrict access by ip (allow,deny). The first time when a allowed IP access this area (i.e…

---

## [Basic Auth only for external IPs and not localhost or LAN networks](https://www.ruby-forum.com/t/basic-auth-only-for-external-ips-and-not-localhost-or-lan-networks/216824)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [February 15, 2012, 11:17am UTC](https://www.ruby-forum.com/t/basic-auth-only-for-external-ips-and-not-localhost-or-lan-networks/216824 "2012-02-15T11:17:22Z")

</div>

Hi all, I have a location directive with basic auth in it. location / { auth\_basic "Admin Login"; auth\_basic\_user\_file /etc/nginx/.htpasswd; How do I specify a rule such that the ba…

---

## [Send SubRequest after the Response is shown to the user](https://www.ruby-forum.com/t/send-subrequest-after-the-response-is-shown-to-the-user/216799)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [February 14, 2012, 1:34pm UTC](https://www.ruby-forum.com/t/send-subrequest-after-the-response-is-shown-to-the-user/216799 "2012-02-14T13:34:47Z")

</div>

I tried using post\_action but it was causing delay: I think this is how post\_action works, please correct if am wrong. 1-\> Nginx get the REQUEST 2-\> Nginx receives the RESPONSE generated by PHP 3-\> Nginx sends a SUB\_…

---

## [Serving dynamically generated files](https://www.ruby-forum.com/t/serving-dynamically-generated-files/216765)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [February 14, 2012, 12:07pm UTC](https://www.ruby-forum.com/t/serving-dynamically-generated-files/216765 "2012-02-14T12:07:36Z")

</div>

Hi everybody, I’m trying to serve dynamically generated TXT files using PHP through fastcgi\_pass, but I have a problem that I can’t solve. This is what I have done: The TXT files are going to be used by a “GPRS prin…

---

## [Binding nginx to a single interface](https://www.ruby-forum.com/t/binding-nginx-to-a-single-interface/216630)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 10\
**Last updated:** [February 13, 2012, 9:50pm UTC](https://www.ruby-forum.com/t/binding-nginx-to-a-single-interface/216630 "2012-02-13T21:50:09Z")

</div>

I have two nics on my server. I have nginx set to listen on one of them using “listen 10.1.2.3 80” However, it keeps listening on the other ip as well. So i’m unable to start anything else on port 80 on that inter…

---

## [Try\_files and filter modules](https://www.ruby-forum.com/t/try-files-and-filter-modules/216754)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [February 13, 2012, 3:07pm UTC](https://www.ruby-forum.com/t/try-files-and-filter-modules/216754 "2012-02-13T15:07:56Z")

</div>

Hello, is there a reason (or workaround) why try\_files doesn’t work with filter modules (in my case its image\_filter)? For example: location ~ (.)/small\_(.) { try\_files $uri $1/medium\_$2 $1/large\_$2; image\_filter …

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

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