# Server

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

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

---

## [Re: Feature request: support access\_log in IF block](https://www.ruby-forum.com/t/re-feature-request-support-access-log-in-if-block/137883)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 0\
**Last updated:** [May 17, 2008, 4:04pm UTC](https://www.ruby-forum.com/t/re-feature-request-support-access-log-in-if-block/137883 "2008-05-17T16:04:24Z")

</div>

“if (url contains something)” is basically a location directive. What you want is sublocations/nested locations which are supported but undocumented, because they don’t work 100% correctly. Interesting! I have a qu…

---

## [Feature request: support access\_log in IF block](https://www.ruby-forum.com/t/feature-request-support-access-log-in-if-block/137808)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 1\
**Last updated:** [May 16, 2008, 7:24pm UTC](https://www.ruby-forum.com/t/feature-request-support-access-log-in-if-block/137808 "2008-05-16T19:24:52Z")

</div>

According to the documentation, the access\_log directive does not supported the “if in location” context. This however would be very useful to us and I am sure others. For example, within on location block I would li…

---

## [Re: aggregating multiple upstream responses before finalizing the down stre	am request](https://www.ruby-forum.com/t/re-aggregating-multiple-upstream-responses-before-finalizing-the-down-stre-am-request/137817)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [May 16, 2008, 6:35pm UTC](https://www.ruby-forum.com/t/re-aggregating-multiple-upstream-responses-before-finalizing-the-down-stre-am-request/137817 "2008-05-16T18:35:28Z")

</div>

\---------- Forwarded Message ---------- dchapiesky@… \<dchapiesky@…\> writes: B) the headend nginx server (which has my module in it…) receives the request and passes the request on to three or more upstream servers… u…

---

## [Re: Change error page by file type?](https://www.ruby-forum.com/t/re-change-error-page-by-file-type/137805)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 0\
**Last updated:** [May 16, 2008, 3:25pm UTC](https://www.ruby-forum.com/t/re-change-error-page-by-file-type/137805 "2008-05-16T15:25:06Z")

</div>

Yes, however due to the complexity of our configuration (which includes many location blocks with several proxy\_pass blocks inside), I am trying to avoid duplicating location blocks for this purpose. I found something…

---

## [Aggregating multiple upstream responses before finalizing the downstre am request](https://www.ruby-forum.com/t/aggregating-multiple-upstream-responses-before-finalizing-the-downstre-am-request/137798)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [May 16, 2008, 2:49pm UTC](https://www.ruby-forum.com/t/aggregating-multiple-upstream-responses-before-finalizing-the-downstre-am-request/137798 "2008-05-16T14:49:00Z")

</div>

Hello, I am working on an nginx module. The simplest description of what it has to do can be summed up as a “voting based fault tolerance algorithm”. Example: A) the client requests that an URL be tested. It does so …

---

## [Src/os/unix/ngx\_files.c:164: error: â€˜IOV\_MA Xâ€™ undeclared (first use in this functi on)](https://www.ruby-forum.com/t/src-os-unix-ngx-files-c-error-a-iov-ma-xa-undeclared-first-use-in-this-functi-on/137604)

<div class="topic-metadata">

**Author:** [@Pawel\_Eljasz](https://www.ruby-forum.com/u/Pawel_Eljasz)\
**Replies:** 7\
**Last updated:** [May 16, 2008, 11:14am UTC](https://www.ruby-forum.com/t/src-os-unix-ngx-files-c-error-a-iov-ma-xa-undeclared-first-use-in-this-functi-on/137604 "2008-05-16T11:14:41Z")

</div>

hi dear all, I get bellow during 0.6.31 compilation on fedora9 2.6.25-14.fc9.x86\_64, gcc version 4.3.0 20080428 (Red Hat 4.3.0-8) (GCC) make -f objs/Makefile make\[1\]: Entering directory /home/install/nginx/nginx-0.6.…

---

## [Re: Change error page by file type?](https://www.ruby-forum.com/t/re-change-error-page-by-file-type/137745)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 2\
**Last updated:** [May 16, 2008, 10:13am UTC](https://www.ruby-forum.com/t/re-change-error-page-by-file-type/137745 "2008-05-16T10:13:18Z")

</div>

Thanks. I am sorry I didn’t mention it, but I need to do this from the same location block which was my main reason in posting the question. For instance I have a location block that takes care of serving multiple fil…

---

## [Mod\_scgi](https://www.ruby-forum.com/t/mod-scgi/134984)

<div class="topic-metadata">

**Author:** [@Manlio\_P](https://www.ruby-forum.com/u/Manlio_P)\
**Replies:** 11\
**Last updated:** [May 16, 2008, 5:37am UTC](https://www.ruby-forum.com/t/mod-scgi/134984 "2008-05-16T05:37:37Z")

</div>

I’m pleased to announce the implementation of SCGI for Nginx. It is available from my Mercurial repository: http://hg.mperillo.ath.cx/nginx/mod\_scgi/ Note that the development is still in its early stage, however the …

---

## [Mongrel.conf redirects](https://www.ruby-forum.com/t/mongrel-conf-redirects/137768)

<div class="topic-metadata">

**Author:** [@krypt](https://www.ruby-forum.com/u/krypt)\
**Replies:** 0\
**Last updated:** [May 16, 2008, 4:50am UTC](https://www.ruby-forum.com/t/mongrel-conf-redirects/137768 "2008-05-16T04:50:15Z")

</div>

So regex is apparently supported in mongrel.conf redirects, but I can’t get it to work. Anyone have an example of a regex redirect I can see?

---

## [Multihop, but with memcached](https://www.ruby-forum.com/t/multihop-but-with-memcached/137750)

<div class="topic-metadata">

**Author:** [@hirodusk](https://www.ruby-forum.com/u/hirodusk)\
**Replies:** 1\
**Last updated:** [May 15, 2008, 11:41pm UTC](https://www.ruby-forum.com/t/multihop-but-with-memcached/137750 "2008-05-15T23:41:13Z")

</div>

In the config below, the request has three branches through which it may travel: Request is a GET, serve from memcached if the key exists. Request is a GET, memcached returns a 4040, so fallback to the app server. Re…

---

## [Change error page by file type?](https://www.ruby-forum.com/t/change-error-page-by-file-type/137736)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 1\
**Last updated:** [May 15, 2008, 9:06pm UTC](https://www.ruby-forum.com/t/change-error-page-by-file-type/137736 "2008-05-15T21:06:57Z")

</div>

Hello, If someone makes a request for a .js file from our server and no such file exists, I would like to return a different error page (actually an error.js page) in response. Yet if they request a .htm page I want …

---

## [Memcache and nginx](https://www.ruby-forum.com/t/memcache-and-nginx/136985)

<div class="topic-metadata">

**Author:** [@allins](https://www.ruby-forum.com/u/allins)\
**Replies:** 7\
**Last updated:** [May 15, 2008, 7:49pm UTC](https://www.ruby-forum.com/t/memcache-and-nginx/136985 "2008-05-15T19:49:42Z")

</div>

have the same setup on two machines, identical configurations but the newer machines reports the following a few times an hour: 2008/05/07 16:36:28 \[error\] 5969#0: \*128011 memcached sent invalid trailer while sending …

---

## [Expires: modified +1d?](https://www.ruby-forum.com/t/expires-modified-1d/137693)

<div class="topic-metadata">

**Author:** [@Phillip\_B\_Oldham](https://www.ruby-forum.com/u/Phillip_B_Oldham)\
**Replies:** 4\
**Last updated:** [May 15, 2008, 5:07pm UTC](https://www.ruby-forum.com/t/expires-modified-1d/137693 "2008-05-15T17:07:57Z")

</div>

Is it possible to set the expires header based on the modified time of a file? I know you can do this in lighttpd and apache, but I can’t find any configuration examples for nginx. Phillip B Oldham The Activity Peopl…

---

## [Redirect without changing base server name?](https://www.ruby-forum.com/t/redirect-without-changing-base-server-name/137616)

<div class="topic-metadata">

**Author:** [@ewildgoose](https://www.ruby-forum.com/u/ewildgoose)\
**Replies:** 6\
**Last updated:** [May 15, 2008, 11:43am UTC](https://www.ruby-forum.com/t/redirect-without-changing-base-server-name/137616 "2008-05-15T11:43:06Z")

</div>

Hi, I have a site which hosts several domains and they are all redirected to a single vhost. I then want to redirect “/” to some starting URL, but when I do so the hostname in the URL changes to the first server name…

---

## [Mod\_strip and fastcgi](https://www.ruby-forum.com/t/mod-strip-and-fastcgi/137691)

<div class="topic-metadata">

**Author:** [@Phillip\_B\_Oldham](https://www.ruby-forum.com/u/Phillip_B_Oldham)\
**Replies:** 0\
**Last updated:** [May 15, 2008, 11:32am UTC](https://www.ruby-forum.com/t/mod-strip-and-fastcgi/137691 "2008-05-15T11:32:25Z")

</div>

I’ve compiled nginx with mod\_strip, and added “strip on;” to my location block which handles \*.php files. Doesn’t seem to be stripping any whitespace though. Does mod\_strip only work with static html files, or do I h…

---

## [Proxy store question](https://www.ruby-forum.com/t/proxy-store-question/137597)

<div class="topic-metadata">

**Author:** [@Fabio\_Coatti](https://www.ruby-forum.com/u/Fabio_Coatti)\
**Replies:** 2\
**Last updated:** [May 14, 2008, 11:30pm UTC](https://www.ruby-forum.com/t/proxy-store-question/137597 "2008-05-14T23:30:01Z")

</div>

Hi all, I’m looking at proxy store directive, that would be really useful for a situation that we are facing, but I’m wandering how the store is invalidated: when a new page is requested to the backend instead of ser…

---

## [Proxy to apache timing out on php uploads?](https://www.ruby-forum.com/t/proxy-to-apache-timing-out-on-php-uploads/137636)

<div class="topic-metadata">

**Author:** [@Nate\_Beaty](https://www.ruby-forum.com/u/Nate_Beaty)\
**Replies:** 0\
**Last updated:** [May 14, 2008, 10:23pm UTC](https://www.ruby-forum.com/t/proxy-to-apache-timing-out-on-php-uploads/137636 "2008-05-14T22:23:08Z")

</div>

hey folks, for a fairly busy site that has the ability for users to upload 4 images at a time via php (which can be fairly large), i am proxying dynamic requests from nginx to apache2 with: location / { access\_log …

---

## [GeoIP: anyway to pull out lat/lon?](https://www.ruby-forum.com/t/geoip-anyway-to-pull-out-lat-lon/136818)

<div class="topic-metadata">

**Author:** [@Phillip\_B\_Oldham](https://www.ruby-forum.com/u/Phillip_B_Oldham)\
**Replies:** 10\
**Last updated:** [May 14, 2008, 9:53pm UTC](https://www.ruby-forum.com/t/geoip-anyway-to-pull-out-lat-lon/136818 "2008-05-14T21:53:03Z")

</div>

Hi guys I’ve just got the geo module working, and I’ve geo2nginx.pl’d the maxmind geolite country data which is working great. However, for our application I need to get more information (specifically a lat/lon) back …

---

## [Nginx Problem with fastcgi\_param](https://www.ruby-forum.com/t/nginx-problem-with-fastcgi-param/137537)

<div class="topic-metadata">

**Author:** [@Erik\_Osterman](https://www.ruby-forum.com/u/Erik_Osterman)\
**Replies:** 3\
**Last updated:** [May 14, 2008, 11:24am UTC](https://www.ruby-forum.com/t/nginx-problem-with-fastcgi-param/137537 "2008-05-14T11:24:01Z")

</div>

We’ve been running Nginx(0.5.33)+FastCGI(php-cgi 5.1.6) on Fedora 6 for 1 week now and very happy with it. Before this, we were using Nginx as strictly a HTTP load balancer. I have encountered an issue migrating to Fa…

---

## [Enhanced Gentoo ebuilds for nginx 0.6.31](https://www.ruby-forum.com/t/enhanced-gentoo-ebuilds-for-nginx-0-6-31/137540)

<div class="topic-metadata">

**Author:** [@hikaru79](https://www.ruby-forum.com/u/hikaru79)\
**Replies:** 10\
**Last updated:** [May 14, 2008, 10:40am UTC](https://www.ruby-forum.com/t/enhanced-gentoo-ebuilds-for-nginx-0-6-31/137540 "2008-05-14T10:40:45Z")

</div>

Nginx 0.6.31 ebuild for use with Gentoo and derivate distributions is now available at the “connectical-contrib” overlay \[1\], with the following improvements over the official Gentoo packaging: USE=python enables bui…

---

## [How to block POST requests?](https://www.ruby-forum.com/t/how-to-block-post-requests/137529)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 4\
**Last updated:** [May 14, 2008, 6:56am UTC](https://www.ruby-forum.com/t/how-to-block-post-requests/137529 "2008-05-14T06:56:04Z")

</div>

My nginx server should never receive POST requests of any time (only HEAD and GET). How can I set up the configuration so that it will return forbidden (or otherwise just drop the request completely) if someone tries …

---

## [Re: How to block POST requests?](https://www.ruby-forum.com/t/re-how-to-block-post-requests/137551)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 0\
**Last updated:** [May 14, 2008, 5:54am UTC](https://www.ruby-forum.com/t/re-how-to-block-post-requests/137551 "2008-05-14T05:54:55Z")

</div>

Wow Calomel!! What a fantastic resource. You know, I recall coming across your site several weeks ago when first getting up to speed with nginx and it was interesting yet a bit over my head at the time. Now it is re…

---

## [AIO libray](https://www.ruby-forum.com/t/aio-libray/137535)

<div class="topic-metadata">

**Author:** [@Aleksandar\_L](https://www.ruby-forum.com/u/Aleksandar_L)\
**Replies:** 1\
**Last updated:** [May 14, 2008, 3:12am UTC](https://www.ruby-forum.com/t/aio-libray/137535 "2008-05-14T03:12:38Z")

</div>

Hi, from the author of the libev ( libev ) there is a early stage libeio ( \[cvs\] Index of /libeio ) a async IO based on threads. The documantation is here: http://pod.tst.eu/http://cvs.schmorp.de/libeio/eio.pod The…

---

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

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 3\
**Last updated:** [May 14, 2008, 2:31am UTC](https://www.ruby-forum.com/t/nginx-status-output/137425 "2008-05-14T02:31:02Z")

</div>

Active connections: 6 server accepts handled requests 1161356 1161356 1160523 Reading: 2 Writing: 4 Waiting: 0 What are those 3 numbers? server accepts handled requests ?

---

## [Packaging third party modules with nginx on Fedora](https://www.ruby-forum.com/t/packaging-third-party-modules-with-nginx-on-fedora/137496)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 0\
**Last updated:** [May 13, 2008, 5:50pm UTC](https://www.ruby-forum.com/t/packaging-third-party-modules-with-nginx-on-fedora/137496 "2008-05-13T17:50:12Z")

</div>

Hi all, I’m looking for some feedback here. I just finished updating the Fedora and EPEL 5 .specs to 0.6.31 and decided that maybe it was time to start packaging up some of the highly used, stable, third party modul…

---

## [Multihop 502s](https://www.ruby-forum.com/t/multihop-502s/137442)

<div class="topic-metadata">

**Author:** [@hirodusk](https://www.ruby-forum.com/u/hirodusk)\
**Replies:** 2\
**Last updated:** [May 13, 2008, 9:20am UTC](https://www.ruby-forum.com/t/multihop-502s/137442 "2008-05-13T09:20:41Z")

</div>

Hello all, I’ve been trying to get Nginx to do multiple hops on error page failovers. Like a cache miss on memcache (404) followed by a bad gateway on the main server ending up at a fallback server. Here’s a simpli…

---

## [What causes: 'memcached sent invalid trailer while sending to client' errors?](https://www.ruby-forum.com/t/what-causes-memcached-sent-invalid-trailer-while-sending-to-client-errors/137446)

<div class="topic-metadata">

**Author:** [@allins](https://www.ruby-forum.com/u/allins)\
**Replies:** 0\
**Last updated:** [May 13, 2008, 8:12am UTC](https://www.ruby-forum.com/t/what-causes-memcached-sent-invalid-trailer-while-sending-to-client-errors/137446 "2008-05-13T08:12:59Z")

</div>

two identical machines, only happens on one. bit of a head scratcher. had issue before upgrade to 0.6.3 still have now.

---

## [Seperate access log for requests without referrers?](https://www.ruby-forum.com/t/seperate-access-log-for-requests-without-referrers/137432)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 0\
**Last updated:** [May 13, 2008, 4:45am UTC](https://www.ruby-forum.com/t/seperate-access-log-for-requests-without-referrers/137432 "2008-05-13T04:45:55Z")

</div>

Hi - I have a need for all requests that come in without a referrer to be logged into a separate log file. Is this possible? And if so, how? I see that the access\_log can be used within the location block. The chall…

---

## [Nginx-0.6.31](https://www.ruby-forum.com/t/nginx-0-6-31/137362)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 2\
**Last updated:** [May 13, 2008, 4:19am UTC](https://www.ruby-forum.com/t/nginx-0-6-31/137362 "2008-05-13T04:19:54Z")

</div>

Changes with nginx 0.6.31 12 May 2008 \*) Bugfix: nginx did not process FastCGI response if header was at the end of FastCGI record; bug appeared in 0.6.2. Thanks to Sergey Ser…

---

## [Rewrite query string](https://www.ruby-forum.com/t/rewrite-query-string/137361)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 5\
**Last updated:** [May 12, 2008, 8:47pm UTC](https://www.ruby-forum.com/t/rewrite-query-string/137361 "2008-05-12T20:47:55Z")

</div>

Hey folks, I simply can’t figure out how to rewrite the query string in nginx. I need to turn urls like foo.php?f=111 into foo.php?111 and similar things. From reading past messages in the lists it seems like I can o…

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

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