# Server

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

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

---

## [Testing the HttpLimitReqModule without blocking](https://www.ruby-forum.com/t/testing-the-httplimitreqmodule-without-blocking/218598)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [April 5, 2012, 9:56am UTC](https://www.ruby-forum.com/t/testing-the-httplimitreqmodule-without-blocking/218598 "2012-04-05T09:56:38Z")

</div>

Hi all, I want to implement the HttpLimitReqModule within our setup to get rid of people scraping the content of our page. However, since some of our bigger clients are using the same proxy IP to connect to our page,…

---

## [Serve from cache but fire request to upstream server to increment page view counter](https://www.ruby-forum.com/t/serve-from-cache-but-fire-request-to-upstream-server-to-increment-page-view-counter/218518)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [April 5, 2012, 5:52am UTC](https://www.ruby-forum.com/t/serve-from-cache-but-fire-request-to-upstream-server-to-increment-page-view-counter/218518 "2012-04-05T05:52:01Z")

</div>

Hi all, I have a strange case, not sure if this is addressed by nginx yet My site is cached as follows. location = / { proxy\_pass http://localhost:82; proxy\_set\_header Host $host; proxy\_set\_header …

---

## [PHP with FPM on Gentoo](https://www.ruby-forum.com/t/php-with-fpm-on-gentoo/218511)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 9\
**Last updated:** [April 5, 2012, 4:47am UTC](https://www.ruby-forum.com/t/php-with-fpm-on-gentoo/218511 "2012-04-05T04:47:25Z")

</div>

Hello, i try run Nginx with PHP-FPM under Gentoo. Under my FreeBSD Rootserver it run without any problems but under Gentoo want not run. nginx.conf \> Loading... php-fpm.conf \> Loading... emerge --info php nginx \> Lo…

---

## [Config directive inheritance: docs and rules (was: Config variable inheritance)](https://www.ruby-forum.com/t/config-directive-inheritance-docs-and-rules-was-config-variable-inheritance/218538)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [April 4, 2012, 8:19pm UTC](https://www.ruby-forum.com/t/config-directive-inheritance-docs-and-rules-was-config-variable-inheritance/218538 "2012-04-04T20:19:32Z")

</div>

Hi all - Problem with inheriting fastcgi params - NGINX - Ruby-Forum seems to contain some information I’ve not found explicitly stated anywhere else: that config directive inheritance is an all or nothing mechanism. …

---

## [POST DATA in cache\_key](https://www.ruby-forum.com/t/post-data-in-cache-key/218577)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [April 4, 2012, 7:42pm UTC](https://www.ruby-forum.com/t/post-data-in-cache-key/218577 "2012-04-04T19:42:17Z")

</div>

is it possible to use a value found within POST DATA as part of the cache key? for example, the value of variable called ‘username’ to be part of the cache key. so i basically want the cache to key to simply hash aga…

---

## [Try\_files ignored in combination with error\_page and named locations](https://www.ruby-forum.com/t/try-files-ignored-in-combination-with-error-page-and-named-locations/218548)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [April 4, 2012, 7:28pm UTC](https://www.ruby-forum.com/t/try-files-ignored-in-combination-with-error-page-and-named-locations/218548 "2012-04-04T19:28:02Z")

</div>

Hello, For some reason the following nginx configuration snippet doesn’t work as expected, try\_files seems to be ignored. When / is requested (or any other URI which points to a file which doesn’t exist), nginx’s defa…

---

## [Possible HTTP response read bug in Nginx 1.0.12](https://www.ruby-forum.com/t/possible-http-response-read-bug-in-nginx-1-0-12/218528)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [April 4, 2012, 1:10pm UTC](https://www.ruby-forum.com/t/possible-http-response-read-bug-in-nginx-1-0-12/218528 "2012-04-04T13:10:22Z")

</div>

Hi, I’ve nginx server setup that terminates SSL connections from clients and forwards plain HTTP requests to backend servers. Some of these requests can last pretty long (up to 1 minute) and usually get very short 15 …

---

## [Question about Vhost](https://www.ruby-forum.com/t/question-about-vhost/218563)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [April 4, 2012, 12:42pm UTC](https://www.ruby-forum.com/t/question-about-vhost/218563 "2012-04-04T12:42:21Z")

</div>

hy i have installed nginx on my web server, i can run the configtest on nginx.conf but i would want also check the configuration of my vhost . When i try diverse handling like this /usr/local/nginx/sbin/nginx -c -t …

---

## [Location URI Wildcard](https://www.ruby-forum.com/t/location-uri-wildcard/218556)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [April 4, 2012, 12:27am UTC](https://www.ruby-forum.com/t/location-uri-wildcard/218556 "2012-04-04T00:27:37Z")

</div>

Hello, I am trying to find a way to redirect a bunch of jpg files to an html page. This way is not working: location = /attach/201204\*.jpg { root /usr/local/nginx/html; index suspend.html; } Here is a real world …

---

## [How to limit\_req depending if the requests has a REFERER or not](https://www.ruby-forum.com/t/how-to-limit-req-depending-if-the-requests-has-a-referer-or-not/218472)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [April 4, 2012, 12:10am UTC](https://www.ruby-forum.com/t/how-to-limit-req-depending-if-the-requests-has-a-referer-or-not/218472 "2012-04-04T00:10:11Z")

</div>

Hello. I have something like this… I need to be able to apply three different limit\_req depending: a.) If the referer to click.php is domain.com … apply zone1 b.) If there is some other referer apply zone2 on click.p…

---

## [Nginx + php-fpm "modern configuration way"](https://www.ruby-forum.com/t/nginx-php-fpm-modern-configuration-way/218521)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [April 3, 2012, 11:13pm UTC](https://www.ruby-forum.com/t/nginx-php-fpm-modern-configuration-way/218521 "2012-04-03T23:13:16Z")

</div>

Hello, Everyone knows there are many nginx tutorials out there and I would like to know what’s the “modern way” when writing a php location block, I’m doing (nginx 1.1.: location ~ .php$ { try\_files $uri =404; in…

---

## [Proxmox: how to use nginx instead of apache](https://www.ruby-forum.com/t/proxmox-how-to-use-nginx-instead-of-apache/218467)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [April 3, 2012, 11:00pm UTC](https://www.ruby-forum.com/t/proxmox-how-to-use-nginx-instead-of-apache/218467 "2012-04-03T23:00:08Z")

</div>

Hello list, I wonder if anybody in this list was successful at (completely) replacing apache for nginx as the web server for the proxmox VE management system http://www.proxmox.com/products/proxmox-ve. As for simply …

---

## [Custom error pages](https://www.ruby-forum.com/t/custom-error-pages/217794)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 11\
**Last updated:** [April 3, 2012, 10:13pm UTC](https://www.ruby-forum.com/t/custom-error-pages/217794 "2012-04-03T22:13:48Z")

</div>

I’m using nginx to reverse proxy my web server. I want to be able to return a custom 503 page from nginx when I choose. I’m able to get nginx to return a 503 page by adding it to the top of the location. But that …

---

## [Config variable inheritance: docs and rules](https://www.ruby-forum.com/t/config-variable-inheritance-docs-and-rules/218531)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [April 3, 2012, 7:08pm UTC](https://www.ruby-forum.com/t/config-variable-inheritance-docs-and-rules/218531 "2012-04-03T19:08:04Z")

</div>

Hi all - Problem with inheriting fastcgi params - NGINX - Ruby-Forum seems to contain some information I’ve not found explicitly stated anywhere else: that config variable inheritance is an all or nothing mechanism. H…

---

## [If( variable exists )](https://www.ruby-forum.com/t/if-variable-exists/218529)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [April 3, 2012, 6:56pm UTC](https://www.ruby-forum.com/t/if-variable-exists/218529 "2012-04-03T18:56:52Z")

</div>

Hello, Is there a chance to test if a “$arg\_variable” (empty value) exists? The problem: “if” condition returns “false”. URL: http://example.com/?variable nginx.conf: location / { if( $arg\_variable ) { rewrite ^.…

---

## [Socket leaks., pread and SSL\_Write() in 1.0.14](https://www.ruby-forum.com/t/socket-leaks-pread-and-ssl-write-in-1-0-14/218248)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 16\
**Last updated:** [April 3, 2012, 6:32pm UTC](https://www.ruby-forum.com/t/socket-leaks-pread-and-ssl-write-in-1-0-14/218248 "2012-04-03T18:32:42Z")

</div>

Hi everyone, I just wanted to let the developers know about some error flags I discovered into Nginx 1.0.14, with debug mode disabled. Socket leaks and pread: 2012/03/24 23:29:52 \[alert\] 10770#0: open socket #46 left…

---

## [Not easy replacement of Apache with Ngnix due to error log](https://www.ruby-forum.com/t/not-easy-replacement-of-apache-with-ngnix-due-to-error-log/218477)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [April 3, 2012, 2:33pm UTC](https://www.ruby-forum.com/t/not-easy-replacement-of-apache-with-ngnix-due-to-error-log/218477 "2012-04-03T14:33:35Z")

</div>

Hi All I having the html files and cgi files for that I was using the apache, Its running fine. I heard about the Nginx and I was trying to setup the same in locally first. but during that I was getting the err…

---

## [Ngx\_http\_redis-0.3.6 released](https://www.ruby-forum.com/t/ngx-http-redis-0-3-6-released/218527)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [April 3, 2012, 1:03pm UTC](https://www.ruby-forum.com/t/ngx-http-redis-0-3-6-released/218527 "2012-04-03T13:03:38Z")

</div>

ngx\_http\_redis module version 0.3.6 released, available for immediate download at http://people.freebsd.org/~osa/ngx\_http\_redis-0.3.6.tar.gz SHA256 (ngx\_http\_redis-0.3.6.tar.gz) = 9e5d8c0f1317a6910710c94d27f9aca4968c4…

---

## [Possible trigger actio of clearing cache within location /clearcache { }](https://www.ruby-forum.com/t/possible-trigger-actio-of-clearing-cache-within-location-clearcache/218515)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [April 3, 2012, 12:18pm UTC](https://www.ruby-forum.com/t/possible-trigger-actio-of-clearing-cache-within-location-clearcache/218515 "2012-04-03T12:18:20Z")

</div>

Is it possible to somehow (and without installing PHP) invoking the action of clearing the nginx cache (rm -fr /var/www/cache/\*) by simply visiting a location {} of the server {} ? Obviously I would allow only specif…

---

## [Understanding host value in nginx error log files](https://www.ruby-forum.com/t/understanding-host-value-in-nginx-error-log-files/218471)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [April 3, 2012, 1:16am UTC](https://www.ruby-forum.com/t/understanding-host-value-in-nginx-error-log-files/218471 "2012-04-03T01:16:02Z")

</div>

I typically see entries in my error.log files of hack attempts where the host entry is the IP address of my server, but I also see some entries with host values that are domain names I don’t recognise. Example 1: 01…

---

## [If proxy\_read\_timeout - then do something?](https://www.ruby-forum.com/t/if-proxy-read-timeout-then-do-something/218485)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [April 2, 2012, 3:37pm UTC](https://www.ruby-forum.com/t/if-proxy-read-timeout-then-do-something/218485 "2012-04-02T15:37:25Z")

</div>

Hi, I would like to put a proxy\_read\_timeout and if it times out, I want to do a specific action in php and return some response to the user. Is this possible? How? Thanks, Shrinath Posted at Nginx Forum:

---

## [Nginx as remote proxy - limit number of concurrent connections?](https://www.ruby-forum.com/t/nginx-as-remote-proxy-limit-number-of-concurrent-connections/218486)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [April 2, 2012, 11:54am UTC](https://www.ruby-forum.com/t/nginx-as-remote-proxy-limit-number-of-concurrent-connections/218486 "2012-04-02T11:54:36Z")

</div>

I’m using nginx as a remote proxy server in front of a bunch of Tomcat instances, and occasionally I’m running into a situation where all available threads are used up in the Tomcat instances, which causes various pro…

---

## [$https with SSL proxy](https://www.ruby-forum.com/t/https-with-ssl-proxy/218483)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [April 2, 2012, 10:40am UTC](https://www.ruby-forum.com/t/https-with-ssl-proxy/218483 "2012-04-02T10:40:43Z")

</div>

Dear all, starting with version 1.1.11 the $https variable is activated by default. This is good as many applications rely on them because apache is using this header. However, now i cannot set or map this variable (…

---

## [Encountered '403 Forbidden Error'](https://www.ruby-forum.com/t/encountered-403-forbidden-error/218478)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [April 2, 2012, 8:34am UTC](https://www.ruby-forum.com/t/encountered-403-forbidden-error/218478 "2012-04-02T08:34:04Z")

</div>

After configuring the nginx on windows, received ‘403 Frobidden Error’ while opening the web page for the web site’s ‘index.php’ page placed at the document root of the web server: html/v4/index.php’ Any suggestions …

---

## [Anyway to assign # of workers per server {}?](https://www.ruby-forum.com/t/anyway-to-assign-of-workers-per-server/218476)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [April 2, 2012, 8:16am UTC](https://www.ruby-forum.com/t/anyway-to-assign-of-workers-per-server/218476 "2012-04-02T08:16:40Z")

</div>

Hello, Id like to isolate the resources each one of my server {} consumes… in case any of my sites gets DoSed … id like to try to contain possible effects related to used worker processes within its respective site. …

---

## [Set cache expiration based on request filename](https://www.ruby-forum.com/t/set-cache-expiration-based-on-request-filename/218436)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [March 31, 2012, 10:22pm UTC](https://www.ruby-forum.com/t/set-cache-expiration-based-on-request-filename/218436 "2012-03-31T22:22:22Z")

</div>

Hey folks, My Django website uses a subdomain to serve static content and as such I have ‘expires’ set to max. However, there is now one image on that domain that get’s re-generated every 10 minutes. How would I go a…

---

## [How to remove PHP X-Powered-By?](https://www.ruby-forum.com/t/how-to-remove-php-x-powered-by/218429)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [March 31, 2012, 4:29pm UTC](https://www.ruby-forum.com/t/how-to-remove-php-x-powered-by/218429 "2012-03-31T16:29:51Z")

</div>

I add custom X-Powered-By with “add\_header X-Powered-By custom;” However, when serving PHP fastcgi in the location, PHP X-Powered-By will also be added to make the X-Powered-By as X-Powered-By: PHP/5.3.3-1ubuntu9.10 c…

---

## [Status module, OS difference](https://www.ruby-forum.com/t/status-module-os-difference/218427)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 31, 2012, 8:11am UTC](https://www.ruby-forum.com/t/status-module-os-difference/218427 "2012-03-31T08:11:42Z")

</div>

Hi. I’m using nginx stub\_status module to get graphs on cacti. I’m also using it on various platforms, like Linux/Solaris/FreeBSD (someone will say that such a zoo is a bad idea, but still). Graphs on my cacti looks …

---

## [Nginx proxing to large remote svn repository](https://www.ruby-forum.com/t/nginx-proxing-to-large-remote-svn-repository/218419)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [March 31, 2012, 2:25am UTC](https://www.ruby-forum.com/t/nginx-proxing-to-large-remote-svn-repository/218419 "2012-03-31T02:25:13Z")

</div>

Hello all: I currently have nginx 1.0.5 proxying http to remote svn server. The svn repo is over 400G in size and constitutes all large binary files with a active userbase of about 4000. All works fine connecting dir…

---

## [Bug Report: error\_page causes hot looping under heavy load](https://www.ruby-forum.com/t/bug-report-error-page-causes-hot-looping-under-heavy-load/218403)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [March 31, 2012, 1:54am UTC](https://www.ruby-forum.com/t/bug-report-error-page-causes-hot-looping-under-heavy-load/218403 "2012-03-31T01:54:20Z")

</div>

I compiled a stable release 1.0.14 with no 3rd party modules and under heavy load, gdb is showing hot looping around when error\_page directive is used. The CPU (all 8 cores) reaches 100% usage and the server stops re…

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

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