# Server

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

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

---

## [GeoIP Country Filtering](https://www.ruby-forum.com/t/geoip-country-filtering/226427)

<div class="topic-metadata">

**Author:** [@AJ\_Weber](https://www.ruby-forum.com/u/AJ_Weber)\
**Replies:** 0\
**Last updated:** [November 29, 2012, 9:51pm UTC](https://www.ruby-forum.com/t/geoip-country-filtering/226427 "2012-11-29T21:51:53Z")

</div>

Does anyone have any “best practices” on filtering using the GeoIP variables? I’d like to filter my entire site based upon “allowed countries” (it’s a very specialized site), and am wondering the best place to check …

---

## [Nginx Filed Descriptor are increasing in n\*n space complexity](https://www.ruby-forum.com/t/nginx-filed-descriptor-are-increasing-in-n-n-space-complexity/224877)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [November 29, 2012, 2:09pm UTC](https://www.ruby-forum.com/t/nginx-filed-descriptor-are-increasing-in-n-n-space-complexity/224877 "2012-11-29T14:09:45Z")

</div>

HI, If I increase nginx worker count. File descriptor count are getting increased in n\*n oder. Example with 10 worker. 2 0xffff8801c4dec000 10 0xffff8801c4dec300 10 0xffff8801c4dec600 2 0xffff8801c4dec900 10 0xff…

---

## [Solved! body\_filter\_by\_lua issues](https://www.ruby-forum.com/t/solved-body-filter-by-lua-issues/224876)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [November 29, 2012, 12:15pm UTC](https://www.ruby-forum.com/t/solved-body-filter-by-lua-issues/224876 "2012-11-29T12:15:09Z")

</div>

Hi all I got my modifying reverse proxy working by adding proxy\_set\_header Accept-Encoding ‘’; before my body\_filter\_by\_lua code block. This way I force the proxy to give me uncompressed data, and then the lua code w…

---

## [Does body\_filter\_by\_lua get called when proxied server returns gzipped data?](https://www.ruby-forum.com/t/does-body-filter-by-lua-get-called-when-proxied-server-returns-gzipped-data/229228)

<div class="topic-metadata">

**Author:** [@Bart\_van\_Deenen](https://www.ruby-forum.com/u/Bart_van_Deenen)\
**Replies:** 0\
**Last updated:** [November 29, 2012, 11:38am UTC](https://www.ruby-forum.com/t/does-body-filter-by-lua-get-called-when-proxied-server-returns-gzipped-data/229228 "2012-11-29T11:38:19Z")

</div>

Hi I posted the recent thread on problems with body\_filter\_by\_lua, and I think it finally has to do with the fact that my browser allows gzipped data, and the server in my example returns gzipped data. I only found o…

---

## [RE: nginx+lua reverse proxy empty body (NOT weird repeatable behavior)](https://www.ruby-forum.com/t/re-nginx-lua-reverse-proxy-empty-body-not-weird-repeatable-behavior/226417)

<div class="topic-metadata">

**Author:** [@Bart\_van\_Deenen](https://www.ruby-forum.com/u/Bart_van_Deenen)\
**Replies:** 0\
**Last updated:** [November 29, 2012, 11:29am UTC](https://www.ruby-forum.com/t/re-nginx-lua-reverse-proxy-empty-body-not-weird-repeatable-behavior/226417 "2012-11-29T11:29:32Z")

</div>

Hi all I would love to retract the last post. The curl call does work (I used another nginx config file than the one I thought I was using). :frowning: So now I feel dumb. I still have the same problem when I use a b…

---

## [Error compiling 1.3.8 (or .4 or .7) with SPDY patch](https://www.ruby-forum.com/t/error-compiling-1-3-8-or-4-or-7-with-spdy-patch/224866)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [November 29, 2012, 3:46am UTC](https://www.ruby-forum.com/t/error-compiling-1-3-8-or-4-or-7-with-spdy-patch/224866 "2012-11-29T03:46:44Z")

</div>

On ubuntu 10.04. (AWS AMI) Background: I’m trying to setup a rails server to host nginx + SPDY on an AWS AMI with Ubuntu 10.04. After patching the source tree with the SPDY path I keep getting this error: src/http/…

---

## [Rewrite all directory URLs with certain exceptions](https://www.ruby-forum.com/t/rewrite-all-directory-urls-with-certain-exceptions/224840)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 7\
**Last updated:** [November 28, 2012, 2:04pm UTC](https://www.ruby-forum.com/t/rewrite-all-directory-urls-with-certain-exceptions/224840 "2012-11-28T14:04:30Z")

</div>

Hello I have urls like example.com/123 I need them rewritten to Example Domain However, I want to skip certain directories from rewrite eg. example.com/status example.com/admin right now I have this: if (!-e $req…

---

## [Configuring Hg as backend](https://www.ruby-forum.com/t/configuring-hg-as-backend/224826)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [November 28, 2012, 10:44am UTC](https://www.ruby-forum.com/t/configuring-hg-as-backend/224826 "2012-11-28T10:44:33Z")

</div>

Hi all, I’m trying to set up Hg behind nginx (web view, clone, pull, push) following the official wiki: http://mercurial.selenic.com/wiki/HgServeNginx. I have created an empty repository ($ hg init t1), set up the fo…

---

## [Syslog-ng?](https://www.ruby-forum.com/t/syslog-ng/224820)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [November 27, 2012, 5:31pm UTC](https://www.ruby-forum.com/t/syslog-ng/224820 "2012-11-27T17:31:29Z")

</div>

Hi all. I am currently deploying an evnironment with nginx webservers. I would like to store logs centrally with syslog-ng. I would like to make it as efficient as it can be, I’ve found two “howtos”: http://pastebin…

---

## [Problem with "if" and "$remote\_addr"](https://www.ruby-forum.com/t/problem-with-if-and-remote-addr/224806)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [November 27, 2012, 3:31am UTC](https://www.ruby-forum.com/t/problem-with-if-and-remote-addr/224806 "2012-11-27T03:31:37Z")

</div>

Hello, I have strange problem. If i enter phpinfo file i get: \_SERVER\[“REMOTE\_ADDR”\] 80.239.242.1 \_SERVER\[“HTTP\_X\_FORWARDED\_FOR”\] 79.173.35.1 So my IP is 80.239.242.1 I want to block access to location from other ip…

---

## ["/stats" question (webalizer)](https://www.ruby-forum.com/t/stats-question-webalizer/224788)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [November 26, 2012, 12:57pm UTC](https://www.ruby-forum.com/t/stats-question-webalizer/224788 "2012-11-26T12:57:49Z")

</div>

Hello, I have configured my web server as shown here: My question is related to domain.com/stats page. (How) Can I disable it not to show Webalizer stats? (How) Can I make it show the stats to a different url know o…

---

## [Custom 502 error page is ignored](https://www.ruby-forum.com/t/custom-502-error-page-is-ignored/224765)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [November 26, 2012, 9:42am UTC](https://www.ruby-forum.com/t/custom-502-error-page-is-ignored/224765 "2012-11-26T09:42:03Z")

</div>

Dear all, I’m currently wondering why nginx ignores my custom 502 Bad Gateway page and instead serves the internal 502 error page. I’m using nginx version 1.2.4 and php-fpm 5.4.8 The behaivior occures every time and…

---

## [Need help convert apache rewrite rules to nginx](https://www.ruby-forum.com/t/need-help-convert-apache-rewrite-rules-to-nginx/224760)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [November 25, 2012, 7:52am UTC](https://www.ruby-forum.com/t/need-help-convert-apache-rewrite-rules-to-nginx/224760 "2012-11-25T07:52:28Z")

</div>

Hello, need help with convert apache rewrite rules to nginx. My .htaccess: RewriteEngine on RewriteBase / ErrorDocument 404 / RewriteCond %{REQUEST\_FILENAME} !-f RewriteCond %{REQUEST\_FILENAME} !-d RewriteRule ^na…

---

## [Fwd: help with apache rewrite convert to nginx](https://www.ruby-forum.com/t/fwd-help-with-apache-rewrite-convert-to-nginx/224759)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [November 25, 2012, 1:52am UTC](https://www.ruby-forum.com/t/fwd-help-with-apache-rewrite-convert-to-nginx/224759 "2012-11-25T01:52:38Z")

</div>

Hello, need help with convert apache rewrite rules to nginx. My .htaccess: RewriteEngine on RewriteBase / ErrorDocument 404 / RewriteCond %{REQUEST\_FILENAME} !-f RewriteCond %{REQUEST\_FILENAME} !-d RewriteRule ^na…

---

## [Setting header for fastcgi response](https://www.ruby-forum.com/t/setting-header-for-fastcgi-response/224744)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [November 24, 2012, 11:49am UTC](https://www.ruby-forum.com/t/setting-header-for-fastcgi-response/224744 "2012-11-24T11:49:09Z")

</div>

Hi, In my nginx config, I have a virtual path (/foo), e.g. location = /foo { expires 1h; add\_header Cache-Control “public”; } This path does not exist, and it goes into the fcgi using location / { try\_files $uri …

---

## [Unsupported FastCGI protocol - Django](https://www.ruby-forum.com/t/unsupported-fastcgi-protocol-django/224708)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [November 24, 2012, 7:09am UTC](https://www.ruby-forum.com/t/unsupported-fastcgi-protocol-django/224708 "2012-11-24T07:09:55Z")

</div>

I can no longer access my Django app via a nginx / fastcgi proxy on Centos 5.7 after upgrading to Django 1.4.2 Upgrading nginx via yum didn’t solve the problem. The error message in the logs is: upstream sent unsupp…

---

## [Adding cachekey to log\_format directive](https://www.ruby-forum.com/t/adding-cachekey-to-log-format-directive/224469)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [November 23, 2012, 5:59pm UTC](https://www.ruby-forum.com/t/adding-cachekey-to-log-format-directive/224469 "2012-11-23T17:59:12Z")

</div>

Good morning, I’m trying to add the generated cache key of a proxied request to a log\_format directive. From what I can tell, this variable is not normally available when logging requests so I’ve to modify the proxy …

---

## [Nginx and php-fpm on WIndows](https://www.ruby-forum.com/t/nginx-and-php-fpm-on-windows/224729)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [November 23, 2012, 3:05pm UTC](https://www.ruby-forum.com/t/nginx-and-php-fpm-on-windows/224729 "2012-11-23T15:05:06Z")

</div>

Hello, I try nginx on Windows 7 with php-fpm for development on local machine. Nginx configuration is set to cooperate with php-fpm. But when I try show my index.php from document root directory, I see only blank pag…

---

## [Allow IPv6/Mask](https://www.ruby-forum.com/t/allow-ipv6-mask/224726)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [November 23, 2012, 1:37pm UTC](https://www.ruby-forum.com/t/allow-ipv6-mask/224726 "2012-11-23T13:37:29Z")

</div>

Hi I wan’t to allow just the local-IPv4-Subnet. Something like this: listen \*:80; allow 192.168.42.0/24; deny all; After switching to IPv6-Dual-Layer I tried this … listen \[::\]:80; allow ::ffff:192.168.42.0/120; …

---

## [How to know if my nginx is in good health?](https://www.ruby-forum.com/t/how-to-know-if-my-nginx-is-in-good-health/224698)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [November 22, 2012, 4:56pm UTC](https://www.ruby-forum.com/t/how-to-know-if-my-nginx-is-in-good-health/224698 "2012-11-22T16:56:10Z")

</div>

Hi, I am running a nginx on EC2 (m1.small) for SSL termination. I am using 2 workers on Ubuntu, with latest nginx (stable), the network throughput is around 2Mbps and system load average is around 2 to 3. I am wonder…

---

## [Request\_time exstreamly larger than upstream\_response\_time for some queries when using fastcgi](https://www.ruby-forum.com/t/request-time-exstreamly-larger-than-upstream-response-time-for-some-queries-when-using-fastcgi/224668)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [November 22, 2012, 8:03am UTC](https://www.ruby-forum.com/t/request-time-exstreamly-larger-than-upstream-response-time-for-some-queries-when-using-fastcgi/224668 "2012-11-22T08:03:26Z")

</div>

Hi， I run python in backend, and use nginx to proxy queries to python by using fastcgi. I found some strange things in my nginx log those days. Some queries’ $request\_time are up to 40 seconds which their $upstream\_…

---

## [Tengine-1.4.2](https://www.ruby-forum.com/t/tengine-1-4-2/224697)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [November 22, 2012, 6:31am UTC](https://www.ruby-forum.com/t/tengine-1-4-2/224697 "2012-11-22T06:31:06Z")

</div>

Hi folks, We are glad to announce that Tengine-1.4.2 development version has been released. You can either checkout the source code from github: GitHub - alibaba-archive/tengine: This project has been transfered to ht…

---

## [SSL proxy without certificate](https://www.ruby-forum.com/t/ssl-proxy-without-certificate/224693)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [November 22, 2012, 4:56am UTC](https://www.ruby-forum.com/t/ssl-proxy-without-certificate/224693 "2012-11-22T04:56:29Z")

</div>

Hello! I want to proxy ssl connections to a backend without a certicate but it isn’t working: server { listen x.x.x.x:443; location / { proxy\_pass https://y.y.y.y:443; } } I tried to use an approach like this (c…

---

## [How nginx define a free worker?](https://www.ruby-forum.com/t/how-nginx-define-a-free-worker/224682)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [November 22, 2012, 3:49am UTC](https://www.ruby-forum.com/t/how-nginx-define-a-free-worker/224682 "2012-11-22T03:49:15Z")

</div>

Hi, If I have n cores and I am running n nginx worker process how nginx will decide free worker for next connection? Will it be doing round robin? If it is not using round robin what method it use? Is there a way …

---

## [Nginx + fossil configuration problem](https://www.ruby-forum.com/t/nginx-fossil-configuration-problem/224661)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 8\
**Last updated:** [November 21, 2012, 11:43pm UTC](https://www.ruby-forum.com/t/nginx-fossil-configuration-problem/224661 "2012-11-21T23:43:47Z")

</div>

Hi, I am new to nginx. My issue is with nginx configuration that should proxy a connection to a fossil server I am running in the background. This fossil server is serving a folder of fossils. I found example configu…

---

## [As Proxy](https://www.ruby-forum.com/t/as-proxy/224609)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [November 21, 2012, 8:15pm UTC](https://www.ruby-forum.com/t/as-proxy/224609 "2012-11-21T20:15:45Z")

</div>

Hi, We are trying to use nginx as a proxy. We have a pylons framework for our application which uses paster to deliver the resources. PFA the configuration we have for nginx. Somehow the css files and images are not…

---

## [Problems with php DOMDocument class (URGENT)](https://www.ruby-forum.com/t/problems-with-php-domdocument-class-urgent/224675)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [November 21, 2012, 7:37pm UTC](https://www.ruby-forum.com/t/problems-with-php-domdocument-class-urgent/224675 "2012-11-21T19:37:12Z")

</div>

Hello to everyone, Unfortunately I have an urgent problem that I can not solve. I’m migrating a webapp that runs on nginx in a CentOS 6 server. The webapp use DOMDocument php class. The php-xml module is installed c…

---

## [Internally redirected requests](https://www.ruby-forum.com/t/internally-redirected-requests/224674)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [November 21, 2012, 4:13pm UTC](https://www.ruby-forum.com/t/internally-redirected-requests/224674 "2012-11-21T16:13:46Z")

</div>

How to do internal redirect (which is the best way)? I do not want to apply to this “include”. Maybe I can do something like this: location /a { alias @app; } location /b { alias @app; } location @app { … } Should…

---

## [Server\_name](https://www.ruby-forum.com/t/server-name/178473)

<div class="topic-metadata">

**Author:** [@Marcos\_N](https://www.ruby-forum.com/u/Marcos_N)\
**Replies:** 5\
**Last updated:** [November 21, 2012, 7:47am UTC](https://www.ruby-forum.com/t/server-name/178473 "2012-11-21T07:47:42Z")

</div>

I use this: server { server\_name \_; server\_name\_in\_redirect off; fastcgi\_param SERVER\_NAME $server\_name; } but when I inspect $SERVER\[“SERVER\_NAME”\] I get this "", but I would like to get the domain name, …

---

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

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [November 21, 2012, 12:48am UTC](https://www.ruby-forum.com/t/ngx-openresty-devel-version-1-2-4-9-released/224663 "2012-11-21T00:48:06Z")

</div>

Hello, folks! I am happy to announce the new development version of ngx\_openresty, 1.2.4.9: http://openresty.org/#Download Special thanks go to all our contributors and users for helping make this happen! Below is …

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

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