# Server

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

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

---

## [Nginx geoip redirect based on country codes but exclude googlebot](https://www.ruby-forum.com/t/nginx-geoip-redirect-based-on-country-codes-but-exclude-googlebot/199260)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 5\
**Last updated:** [November 18, 2010, 6:55pm UTC](https://www.ruby-forum.com/t/nginx-geoip-redirect-based-on-country-codes-but-exclude-googlebot/199260 "2010-11-18T18:55:17Z")

</div>

Hello, I want to redirect people to specific pages on a website according to their country but i dont want to redirect googlebot or other spiders, how can i do this with nginx ? I have done redirection with php earli…

---

## [Add\_header help](https://www.ruby-forum.com/t/add-header-help/199302)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 1\
**Last updated:** [November 18, 2010, 8:32am UTC](https://www.ruby-forum.com/t/add-header-help/199302 "2010-11-18T08:32:17Z")

</div>

I’m using nginx for load balancer. For debugging purposes, I’m trying to add\_header on 50x error. But based on manual, it’s not possible. location = /50x.html { add\_header Cluster server01; …

---

## [Awstats not piking up log files](https://www.ruby-forum.com/t/awstats-not-piking-up-log-files/199296)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 0\
**Last updated:** [November 18, 2010, 4:10am UTC](https://www.ruby-forum.com/t/awstats-not-piking-up-log-files/199296 "2010-11-18T04:10:43Z")

</div>

Nginx installed and cache also Ever since that feel awstats not showing correct stats. It showing a very low number same with google ana… also Please suggest action urgent Posted at Nginx Forum:

---

## [Embedded Perl module and SSI](https://www.ruby-forum.com/t/embedded-perl-module-and-ssi/199293)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 0\
**Last updated:** [November 18, 2010, 2:59am UTC](https://www.ruby-forum.com/t/embedded-perl-module-and-ssi/199293 "2010-11-18T02:59:57Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, My question is: Is there any chance I can get server-side-included response body (i.e., the result of those SSI directives) in my own Perl handler? Currently wi…

---

## [\[Patch\] Option to not use the default error log file during startup](https://www.ruby-forum.com/t/patch-option-to-not-use-the-default-error-log-file-during-startup/199060)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 2\
**Last updated:** [November 18, 2010, 2:40am UTC](https://www.ruby-forum.com/t/patch-option-to-not-use-the-default-error-log-file-during-startup/199060 "2010-11-18T02:40:10Z")

</div>

Nginx always tries to open its default log file ($prefix/log/error.log) even if I specified a different error\_log in the config file. This is done inside ngx\_log\_init(). This has two implications: All errors that occ…

---

## [Nginx and CVE-2010-3864](https://www.ruby-forum.com/t/nginx-and-cve-2010-3864/199280)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 2\
**Last updated:** [November 18, 2010, 1:53am UTC](https://www.ruby-forum.com/t/nginx-and-cve-2010-3864/199280 "2010-11-18T01:53:35Z")

</div>

I think I know the answer to this but since the consequences of misguessing are somewhat dire, I figured I’d better ask. For the advisory, http://www.openssl.org/news/secadv\_20101116.txt are we nginx users safe if we…

---

## [Proxy/Redirect issue](https://www.ruby-forum.com/t/proxy-redirect-issue/199268)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 1\
**Last updated:** [November 17, 2010, 5:29pm UTC](https://www.ruby-forum.com/t/proxy-redirect-issue/199268 "2010-11-17T17:29:32Z")

</div>

I have setup an nginx proxy with a couple of servers behind it, also running nginx. For the most part everything works nicely, although I have a strange issue. I have my domains setup with a wildcard CNAME record so…

---

## [Issue with upstream](https://www.ruby-forum.com/t/issue-with-upstream/199189)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 10\
**Last updated:** [November 17, 2010, 1:38pm UTC](https://www.ruby-forum.com/t/issue-with-upstream/199189 "2010-11-17T13:38:09Z")

</div>

I’m having some problems configuring upstream servers with localhost backup (error page) upstream backend1 { server 1.2.3.4; server 2.3.4.5; server localhost backup; } upstream backend2 { server 3.4.5.6; server…

---

## [About cleanup of subrequests](https://www.ruby-forum.com/t/about-cleanup-of-subrequests/199254)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 3\
**Last updated:** [November 17, 2010, 1:35pm UTC](https://www.ruby-forum.com/t/about-cleanup-of-subrequests/199254 "2010-11-17T13:35:37Z")

</div>

HI,ALL I have written a nginx module which may produce thousands of subrequests.Each subrequest may connect to the upstream and fetch data. Like map-reduce, my module map the main request to many subrequest and redu…

---

## [IPv6 bug](https://www.ruby-forum.com/t/ipv6-bug/199196)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 4\
**Last updated:** [November 17, 2010, 1:14pm UTC](https://www.ruby-forum.com/t/ipv6-bug/199196 "2010-11-17T13:14:54Z")

</div>

I am sorry but my English is poor, I can’t discribe this problem clearly. There is a screen to show you this bug: \[2001:470:1f05:117a::80\] is running with apache 2.2.16 , and \[2001:4858:aaaa:1:1::80\] is running wit…

---

## [Httpauth bug or my config mistake?](https://www.ruby-forum.com/t/httpauth-bug-or-my-config-mistake/199244)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 3\
**Last updated:** [November 17, 2010, 10:51am UTC](https://www.ruby-forum.com/t/httpauth-bug-or-my-config-mistake/199244 "2010-11-17T10:51:40Z")

</div>

Hi i try set up http auth in one of my domain sub-folder but httpauth not work properly. mys conf. location /adm/ { auth\_basic Restrito; auth\_basic\_user\_file /var/www/tv/adm/.htpasswd; …

---

## [What if I just delete a file from cache to invalidate cache item?](https://www.ruby-forum.com/t/what-if-i-just-delete-a-file-from-cache-to-invalidate-cache-item/199203)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 3\
**Last updated:** [November 17, 2010, 9:46am UTC](https://www.ruby-forum.com/t/what-if-i-just-delete-a-file-from-cache-to-invalidate-cache-item/199203 "2010-11-17T09:46:19Z")

</div>

I have a system handling tons of requests per second (god bless nginx). I have proxy\_cache\_key “$request\_uri”; proxy\_cache\_valid 200 1s; I need to increase the cache lifetime. What if I set proxy\_cache\_valid to …

---

## [Memory leak on ngx\_http\_auth\_pam\_module](https://www.ruby-forum.com/t/memory-leak-on-ngx-http-auth-pam-module/199192)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 0\
**Last updated:** [November 16, 2010, 2:59pm UTC](https://www.ruby-forum.com/t/memory-leak-on-ngx-http-auth-pam-module/199192 "2010-11-16T14:59:37Z")

</div>

This weekend Neil C. removed\_email\_address@domain.invalid reported me a bug on the ngx\_http\_auth\_pam\_module; the problem was that the current code was not calling pam\_end() when there was an authentication failure, re…

---

## [Eventfd() failed](https://www.ruby-forum.com/t/eventfd-failed/199120)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 3\
**Last updated:** [November 16, 2010, 1:42pm UTC](https://www.ruby-forum.com/t/eventfd-failed/199120 "2010-11-16T13:42:56Z")

</div>

Hi, all I install nginx on my server listned on port 82 but when try access browser just said “Waiting…” and not show dwfault page. I found follow errors in error.log. nginx version: 0.8.53 kernel version: 2.6.18 T…

---

## [Awstats](https://www.ruby-forum.com/t/awstats/199184)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 0\
**Last updated:** [November 16, 2010, 12:46pm UTC](https://www.ruby-forum.com/t/awstats/199184 "2010-11-16T12:46:25Z")

</div>

Nginx was installed and cache also Ever since that feel awstats not showing correct stats. It showing a very low number same with google ana… also Please suggest action Posted at Nginx Forum:

---

## [Perl\_modules directive is not allowed](https://www.ruby-forum.com/t/perl-modules-directive-is-not-allowed/199171)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 2\
**Last updated:** [November 16, 2010, 8:40am UTC](https://www.ruby-forum.com/t/perl-modules-directive-is-not-allowed/199171 "2010-11-16T08:40:23Z")

</div>

Environment: ubuntu10:10 nginx0.8.53 nginx compile parameters: nginx version: nginx/0.8.53 built by gcc 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5) TLS SNI support enabled configure arguments: --user=www-data --group=www-…

---

## [Do you know howto setup mailman+nginx+fcgiwrap+ubuntu/debian?, was: Bug in NginxHttpFcgiModule's fas](https://www.ruby-forum.com/t/do-you-know-howto-setup-mailman-nginx-fcgiwrap-ubuntu-debian-was-bug-in-nginxhttpfcgimodules-fas/198972)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 4\
**Last updated:** [November 15, 2010, 7:54pm UTC](https://www.ruby-forum.com/t/do-you-know-howto-setup-mailman-nginx-fcgiwrap-ubuntu-debian-was-bug-in-nginxhttpfcgimodules-fas/198972 "2010-11-15T19:54:34Z")

</div>

On Thu, 11 Nov 2010 05:35:46 +0300,removed\_email\_address@domain.invalid wrote: Hi there, Hi Francis, I thank you for your attempt at trying to help me. This problem reminds me of a similar one that was debated in t…

---

## [Query and join op after sharding](https://www.ruby-forum.com/t/query-and-join-op-after-sharding/199131)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 0\
**Last updated:** [November 15, 2010, 11:53am UTC](https://www.ruby-forum.com/t/query-and-join-op-after-sharding/199131 "2010-11-15T11:53:01Z")

</div>

hi, all I’m handling something about sharding (or partition) recently. What I want to do is to add more machines or nodes to my system so that storing more data is possibale (maybe scale-out?). I found many people a…

---

## [Nginx Cache Valid till - Help](https://www.ruby-forum.com/t/nginx-cache-valid-till-help/199077)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 4\
**Last updated:** [November 15, 2010, 4:30am UTC](https://www.ruby-forum.com/t/nginx-cache-valid-till-help/199077 "2010-11-15T04:30:21Z")

</div>

Hi, I have a issue my nginx cofig is working ok just i want cache to clear only once in 15 days. But it is clearing everyday and new images showing on homepage ( we use random images hence on each refresh its new) h…

---

## [Handling mangled server names](https://www.ruby-forum.com/t/handling-mangled-server-names/199094)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 1\
**Last updated:** [November 15, 2010, 3:03am UTC](https://www.ruby-forum.com/t/handling-mangled-server-names/199094 "2010-11-15T03:03:16Z")

</div>

Lo, At work, we have a perfectly functioning proxy server, which I don’t trust. :-/ So I wanted to use my home infrastructure in a transparent way (e.g., no SSH port forwarding) to allow me just to use my browser to …

---

## [Nginx serving static files - caching?](https://www.ruby-forum.com/t/nginx-serving-static-files-caching/199012)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 4\
**Last updated:** [November 15, 2010, 2:24am UTC](https://www.ruby-forum.com/t/nginx-serving-static-files-caching/199012 "2010-11-15T02:24:30Z")

</div>

Hi, we want to establish some service that will deliver static files (images) with a size between 1-120 KB. The service should handle (at the moment) ~130.000.000 requests per month, so not that few and not extremly …

---

## [Nginx memcache or pecl memcache?](https://www.ruby-forum.com/t/nginx-memcache-or-pecl-memcache/199096)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 1\
**Last updated:** [November 14, 2010, 9:35pm UTC](https://www.ruby-forum.com/t/nginx-memcache-or-pecl-memcache/199096 "2010-11-14T21:35:07Z")

</div>

Which I should use? Memcache from nginx or memcache from pecl? Maybe both? What benefits have using memcache via nginx opposite do memcache via php? Posted at Nginx Forum:

---

## [NGINX and WordPress help.An Unexpected HTTP Error](https://www.ruby-forum.com/t/nginx-and-wordpress-help-an-unexpected-http-error/199033)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 2\
**Last updated:** [November 14, 2010, 5:07pm UTC](https://www.ruby-forum.com/t/nginx-and-wordpress-help-an-unexpected-http-error/199033 "2010-11-14T17:07:20Z")

</div>

Getting a strange error when I try to browse to the install pages on my site’s wp-admin, running 32-bit Arch, NGINX 0.8.53, PHP 5.3.3 (fpm-fcgi), and so far I’ve tried this on WP 3.0.0 and 3.0.1. An Unexpected HTTP Er…

---

## [The question on the uwsgi and Mercurial](https://www.ruby-forum.com/t/the-question-on-the-uwsgi-and-mercurial/199078)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 1\
**Last updated:** [November 14, 2010, 8:47am UTC](https://www.ruby-forum.com/t/the-question-on-the-uwsgi-and-mercurial/199078 "2010-11-14T08:47:42Z")

</div>

Environment: ubuntu10:10 nginx0.8.53 nginx compile parameters: ./configure --user=www-data --group=www-data --prefix=/ –with-http\_stub\_status\_module --with-http\_ssl\_module –with-http\_perl\_module --with-sha1=/usr/…

---

## [Question about the env](https://www.ruby-forum.com/t/question-about-the-env/199007)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 3\
**Last updated:** [November 13, 2010, 12:53pm UTC](https://www.ruby-forum.com/t/question-about-the-env/199007 "2010-11-13T12:53:31Z")

</div>

Hey, I noticed that the “env” directive in the main module is not an equivalent of “export” in bash or “putenv” in C stdlib. The variables defined by “env” seems only can be used by the embeded Perl module, right? Th…

---

## [URL Redirect Problems](https://www.ruby-forum.com/t/url-redirect-problems/198985)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 5\
**Last updated:** [November 12, 2010, 7:56pm UTC](https://www.ruby-forum.com/t/url-redirect-problems/198985 "2010-11-12T19:56:30Z")

</div>

Hello everyone, I’m having problems attempting to redirect to another website. My objective here is when I visit “Site A” and click on a link, it will take me to another site on the same server, “Site B”. The URL has …

---

## [Magento 1.4, nginx, php fastcgi through spawn-fcgi, and malfunctioning AJAX](https://www.ruby-forum.com/t/magento-1-4-nginx-php-fastcgi-through-spawn-fcgi-and-malfunctioning-ajax/199022)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 0\
**Last updated:** [November 12, 2010, 3:38pm UTC](https://www.ruby-forum.com/t/magento-1-4-nginx-php-fastcgi-through-spawn-fcgi-and-malfunctioning-ajax/199022 "2010-11-12T15:38:04Z")

</div>

Hi, Here is a screen cast of the issue: http://screencast.com/t/ZquL9DBgvxmU A Magento 1.4 site I administer was ported from Plesk+Apache to cPanel+Nginx recently, and all seemed fine, except, the Catalog \> Manage C…

---

## [How to convert Apache rewrite rule to nginx](https://www.ruby-forum.com/t/how-to-convert-apache-rewrite-rule-to-nginx/198950)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 1\
**Last updated:** [November 12, 2010, 1:14pm UTC](https://www.ruby-forum.com/t/how-to-convert-apache-rewrite-rule-to-nginx/198950 "2010-11-12T13:14:14Z")

</div>

Hi I have a RewriteRule in Apache : RewriteCond %{QUERY\_STRING} came\_from=http(.\*) RewriteRule ^/(.\*)login\_form$ https://%{SERVER\_NAME}/$1login\_form?came\_from=https%1 \[NE,L\] Can somebody let me know the equivalent o…

---

## [Proxy caching large files with too many temporary files](https://www.ruby-forum.com/t/proxy-caching-large-files-with-too-many-temporary-files/199014)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 0\
**Last updated:** [November 12, 2010, 10:37am UTC](https://www.ruby-forum.com/t/proxy-caching-large-files-with-too-many-temporary-files/199014 "2010-11-12T10:37:12Z")

</div>

Hello community ! I’m currently using nginx as a proxy cache to a backend where large files are stored and I have a big blocking issue. I’m using the following structure: Client — Cache1 — Cache2 — HTTP with large fi…

---

## [Trying to show http password for only certain IP blocks](https://www.ruby-forum.com/t/trying-to-show-http-password-for-only-certain-ip-blocks/198989)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 1\
**Last updated:** [November 12, 2010, 1:24am UTC](https://www.ruby-forum.com/t/trying-to-show-http-password-for-only-certain-ip-blocks/198989 "2010-11-12T01:24:30Z")

</div>

Below is our (scrubbed) configuration… What we are trying to do is show an HTTP password prompt for people from IPs that are not “whitelisted” We had found a blog post that had said this was possible using allow/deny…

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

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