# Server

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

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

---

## [Asynchronous file io in a module](https://www.ruby-forum.com/t/asynchronous-file-io-in-a-module/187101)

<div class="topic-metadata">

**Author:** [@wombat57](https://www.ruby-forum.com/u/wombat57)\
**Replies:** 0\
**Last updated:** [April 17, 2010, 12:30am UTC](https://www.ruby-forum.com/t/asynchronous-file-io-in-a-module/187101 "2010-04-17T00:30:49Z")

</div>

I am trying to modify the flv streaming module to support h.246 and aac flv files. All that the module has to do is find the aac and h246 sequence headers in the beginning of the file, and copy these into the output b…

---

## [Config question, is it good?](https://www.ruby-forum.com/t/config-question-is-it-good/186949)

<div class="topic-metadata">

**Author:** [@max](https://www.ruby-forum.com/u/max)\
**Replies:** 2\
**Last updated:** [April 16, 2010, 11:10pm UTC](https://www.ruby-forum.com/t/config-question-is-it-good/186949 "2010-04-16T23:10:01Z")

</div>

Hello, I got a server running Intel Xeon-Nehalem 5520-Quadcore 2.2GHz + 12 gb ram. I got the following conf in my nginx, is it a good choice? But sometimes, I still found the wordpress sites are kind of slow. Someti…

---

## [Problem with nginx rewrite rule](https://www.ruby-forum.com/t/problem-with-nginx-rewrite-rule/187084)

<div class="topic-metadata">

**Author:** [@st1905](https://www.ruby-forum.com/u/st1905)\
**Replies:** 1\
**Last updated:** [April 16, 2010, 7:07pm UTC](https://www.ruby-forum.com/t/problem-with-nginx-rewrite-rule/187084 "2010-04-16T19:07:02Z")

</div>

Hello, Here is the rule from apache RewriteRule ^ats-plug-helper.php/?$ includes/ats.php and here is my rule for nginx rewrite ^/ats-plug-helper.php/?$ /includes/ats.php last ; I\`m using php-fpm for php files. The …

---

## [Ngwsx-0.8.35 (one port of nginx on windows)](https://www.ruby-forum.com/t/ngwsx-0-8-35-one-port-of-nginx-on-windows/187081)

<div class="topic-metadata">

**Author:** [@ngwsx](https://www.ruby-forum.com/u/ngwsx)\
**Replies:** 1\
**Last updated:** [April 16, 2010, 5:19pm UTC](https://www.ruby-forum.com/t/ngwsx-0-8-35-one-port-of-nginx-on-windows/187081 "2010-04-16T17:19:52Z")

</div>

The ngwsx is one port of nginx on windows. Features: 1.native port on windows. 2.single process mode. 3.iocp event module. 4.windows service supported. … and so on. Download link: http://github.com/downloads/heh…

---

## [Ngx\_drizzle v0.0.8 and ngx\_rds\_json v0.05](https://www.ruby-forum.com/t/ngx-drizzle-v0-0-8-and-ngx-rds-json-v0-05/187057)

<div class="topic-metadata">

**Author:** [@agentzh](https://www.ruby-forum.com/u/agentzh)\
**Replies:** 3\
**Last updated:** [April 16, 2010, 11:34am UTC](https://www.ruby-forum.com/t/ngx-drizzle-v0-0-8-and-ngx-rds-json-v0-05/187057 "2010-04-16T11:34:22Z")

</div>

Hi, folks! On behalf of the ngx\_dbd team, I’m happy to announce the new releases of the ngx\_drizzle and ngx\_rds\_json modules. Here’s a brief list of (major) changes since their last releases: Fixed a nasty bug in n…

---

## [How to rewrite this on nginx?](https://www.ruby-forum.com/t/how-to-rewrite-this-on-nginx/186719)

<div class="topic-metadata">

**Author:** [@lhmwzy](https://www.ruby-forum.com/u/lhmwzy)\
**Replies:** 3\
**Last updated:** [April 16, 2010, 8:38am UTC](https://www.ruby-forum.com/t/how-to-rewrite-this-on-nginx/186719 "2010-04-16T08:38:44Z")

</div>

apache .htaccess Rewriteengine on Rewriteengine ^search.shtml$ /search.cgi%{QUERY\_STRING} Rewriteengine ^(\[^.\])/(\[^.\])/(\[^.\]\*\].html$ index.cgi?t=$1&c1=$1&p=$3

---

## [About location](https://www.ruby-forum.com/t/about-location/187049)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [April 16, 2010, 7:26am UTC](https://www.ruby-forum.com/t/about-location/187049 "2010-04-16T07:26:07Z")

</div>

Can i use this sentence in location ? if ($request\_uri ~\* "^/(list|small|big)\_.\*") { expires 1m; }

---

## [Turn off upload buffering in proxy mode](https://www.ruby-forum.com/t/turn-off-upload-buffering-in-proxy-mode/186900)

<div class="topic-metadata">

**Author:** [@Vincent\_MAUGE](https://www.ruby-forum.com/u/Vincent_MAUGE)\
**Replies:** 1\
**Last updated:** [April 16, 2010, 4:26am UTC](https://www.ruby-forum.com/t/turn-off-upload-buffering-in-proxy-mode/186900 "2010-04-16T04:26:23Z")

</div>

Hey, I setup a nginx as reverse proxy + SSL negotiation in front of apache servers. The setup works find and the configuration is quiet easy and efficient (url loadblancing, access rules). But I am facing an issue wi…

---

## [Can't compile since 0.8.33 on CentOS](https://www.ruby-forum.com/t/cant-compile-since-0-8-33-on-centos/187024)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 3\
**Last updated:** [April 15, 2010, 11:40pm UTC](https://www.ruby-forum.com/t/cant-compile-since-0-8-33-on-centos/187024 "2010-04-15T23:40:05Z")

</div>

Now that I examine this, it’s treating warnings as errors. Ideally this wouldn’t be a warning either, but what could be going on to make this force fail? 0.8.33 = no problem 0.8.34 = problem 0.8.35 = problem OS inf…

---

## [Upstream Prematurely Closed Connection](https://www.ruby-forum.com/t/upstream-prematurely-closed-connection/186964)

<div class="topic-metadata">

**Author:** [@APseudoUtopia](https://www.ruby-forum.com/u/APseudoUtopia)\
**Replies:** 0\
**Last updated:** [April 15, 2010, 12:51am UTC](https://www.ruby-forum.com/t/upstream-prematurely-closed-connection/186964 "2010-04-15T00:51:54Z")

</div>

I recently upgraded PHP from 5.2.9 to 5.3.2. Ever since then, nginx hasn’t been working properly. BUT, I can tell that it is not php’s fault because another domain is working perfectly (using the same nginx instance). …

---

## [Authorization header in combination with X-Accel-Redirect](https://www.ruby-forum.com/t/authorization-header-in-combination-with-x-accel-redirect/186919)

<div class="topic-metadata">

**Author:** [@plantian](https://www.ruby-forum.com/u/plantian)\
**Replies:** 2\
**Last updated:** [April 14, 2010, 9:31pm UTC](https://www.ruby-forum.com/t/authorization-header-in-combination-with-x-accel-redirect/186919 "2010-04-14T21:31:04Z")

</div>

I have one proxy that is handling Authorization of users for media content. This proxy really does authorize users, returning 403 if they are not permitted to access a resource. Then I proxy to amazon s3 to a privat…

---

## [Nginx upstream problem](https://www.ruby-forum.com/t/nginx-upstream-problem/186894)

<div class="topic-metadata">

**Author:** [@izghitu](https://www.ruby-forum.com/u/izghitu)\
**Replies:** 6\
**Last updated:** [April 14, 2010, 6:59pm UTC](https://www.ruby-forum.com/t/nginx-upstream-problem/186894 "2010-04-14T18:59:26Z")

</div>

Hi, I have several problems when using nginx as a load balancer. Nginx 0.8.35 CentOS 5.4 64bit Kernel 2.6.28.10 Configs: /etc/nginx/nginx.conf user nobody; worker\_processes 32; worker\_rlimit\_nofile 10240; err…

---

## [Need help setting up a caching thumbnail server](https://www.ruby-forum.com/t/need-help-setting-up-a-caching-thumbnail-server/186914)

<div class="topic-metadata">

**Author:** [@JamesAB](https://www.ruby-forum.com/u/JamesAB)\
**Replies:** 1\
**Last updated:** [April 14, 2010, 3:08pm UTC](https://www.ruby-forum.com/t/need-help-setting-up-a-caching-thumbnail-server/186914 "2010-04-14T15:08:42Z")

</div>

I’ve got a site with a lot of images and we are currently using apache to serve the static thumbnails. We have over 1.7 million thumbnails using over 30GB of disk space. So the average thumbnail is around 18kb. I’d li…

---

## [How to set the minimum size of the cache file](https://www.ruby-forum.com/t/how-to-set-the-minimum-size-of-the-cache-file/175593)

<div class="topic-metadata">

**Author:** [@Chancey](https://www.ruby-forum.com/u/Chancey)\
**Replies:** 8\
**Last updated:** [April 14, 2010, 1:03pm UTC](https://www.ruby-forum.com/t/how-to-set-the-minimum-size-of-the-cache-file/175593 "2010-04-14T13:03:03Z")

</div>

Hi, How to set the minimum size of the cache file ? 2009-09-16 Chancey

---

## [Nginx + ssi + remote uri access does not work](https://www.ruby-forum.com/t/nginx-ssi-remote-uri-access-does-not-work/186909)

<div class="topic-metadata">

**Author:** [@stunti](https://www.ruby-forum.com/u/stunti)\
**Replies:** 1\
**Last updated:** [April 14, 2010, 10:40am UTC](https://www.ruby-forum.com/t/nginx-ssi-remote-uri-access-does-not-work/186909 "2010-04-14T10:40:02Z")

</div>

I have a setup where my nginx is in front with apache+PHP behind. My PHP application cache some page in memcache which are accessed by nginx directly except some dynamic part which are build using SSI in Nginx. The f…

---

## [Problem getting Mongrel to work with RadRails](https://www.ruby-forum.com/t/problem-getting-mongrel-to-work-with-radrails/186888)

<div class="topic-metadata">

**Author:** [@jfoxny](https://www.ruby-forum.com/u/jfoxny)\
**Replies:** 10\
**Last updated:** [April 14, 2010, 8:04am UTC](https://www.ruby-forum.com/t/problem-getting-mongrel-to-work-with-radrails/186888 "2010-04-14T08:04:19Z")

</div>

Hi all, I’m very new to Ruby, and I’m trying to learn Ruby on Rails. I got a book on the subject, and I’ve installed everything according to the directions, but I can’t get the Mongrel server to work. I’m using the …

---

## [Handle user uploads in static content server (newbie question)](https://www.ruby-forum.com/t/handle-user-uploads-in-static-content-server-newbie-question/186713)

<div class="topic-metadata">

**Author:** [@leonardocg](https://www.ruby-forum.com/u/leonardocg)\
**Replies:** 12\
**Last updated:** [April 14, 2010, 3:49am UTC](https://www.ruby-forum.com/t/handle-user-uploads-in-static-content-server-newbie-question/186713 "2010-04-14T03:49:43Z")

</div>

Hi guys. Newbie question here, apologies in advance. By using a static content server (nginx as reverse proxy), how does one deal with user uploads? I mean, I can understand if I client request our websiteâ€™s /image…

---

## [Nginx, good for low-latency service on LAN?](https://www.ruby-forum.com/t/nginx-good-for-low-latency-service-on-lan/186891)

<div class="topic-metadata">

**Author:** [@markh](https://www.ruby-forum.com/u/markh)\
**Replies:** 1\
**Last updated:** [April 13, 2010, 11:03pm UTC](https://www.ruby-forum.com/t/nginx-good-for-low-latency-service-on-lan/186891 "2010-04-13T23:03:25Z")

</div>

nginx noob here… can I ask for a I’m putting together a network metadata server to service a large render farm. My basic specs: the requests are simple: basically mapping a path-like string to a string of metadata…

---

## [Nginx upstream fair](https://www.ruby-forum.com/t/nginx-upstream-fair/184933)

<div class="topic-metadata">

**Author:** [@izghitu](https://www.ruby-forum.com/u/izghitu)\
**Replies:** 2\
**Last updated:** [April 13, 2010, 10:50pm UTC](https://www.ruby-forum.com/t/nginx-upstream-fair/184933 "2010-04-13T22:50:33Z")

</div>

Hi, I have latest nginx on a 64bit CentOS running. I use it as a load balancer in front of 2 apache servers. The upstream config is the following: upstream name { fair; server apache1; server apache2; } server { …

---

## [Stupid question](https://www.ruby-forum.com/t/stupid-question/186890)

<div class="topic-metadata">

**Author:** [@Nuno\_MagalhSSSSes](https://www.ruby-forum.com/u/Nuno_MagalhSSSSes)\
**Replies:** 1\
**Last updated:** [April 13, 2010, 10:32pm UTC](https://www.ruby-forum.com/t/stupid-question/186890 "2010-04-13T22:32:59Z")

</div>

I have this config: server { listen 8080; server\_name localhost; access\_log /var/log/nginx/site.access.log; error\_log /var/log/nginx/site.error.log; charset utf-8; if ($request\_method !~ ^(GET|H…

---

## [Announcing the upstream status module](https://www.ruby-forum.com/t/announcing-the-upstream-status-module/186811)

<div class="topic-metadata">

**Author:** [@Arvind\_Jayaprakash](https://www.ruby-forum.com/u/Arvind_Jayaprakash)\
**Replies:** 5\
**Last updated:** [April 13, 2010, 10:27pm UTC](https://www.ruby-forum.com/t/announcing-the-upstream-status-module/186811 "2010-04-13T22:27:07Z")

</div>

This module provides a handler called upstream\_status that can be used as follows: location /foo { upstream\_status; } It reports all the upstream blocks configured for this server. For upstreams managed using the r…

---

## [Issues with default\_type](https://www.ruby-forum.com/t/issues-with-default-type/186861)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [April 13, 2010, 9:52pm UTC](https://www.ruby-forum.com/t/issues-with-default-type/186861 "2010-04-13T21:52:00Z")

</div>

Here’s a snippet of my configuration: location /resource/image/ { default\_type image/jpeg; add\_header Content-Type image/jpeg; mogilefs\_tracker 192.168.0.1:7001; mogilefs\_domain ‘repository:images’; mogilefs\_pass …

---

## [Nginx OPTIONS method support](https://www.ruby-forum.com/t/nginx-options-method-support/186859)

<div class="topic-metadata">

**Author:** [@leki75](https://www.ruby-forum.com/u/leki75)\
**Replies:** 0\
**Last updated:** [April 13, 2010, 3:13pm UTC](https://www.ruby-forum.com/t/nginx-options-method-support/186859 "2010-04-13T15:13:13Z")

</div>

I configured nginx with webdav support. After I try to use davfs access log shows that method is not allowed. Do you plan to support HTTP OPTIONS method? Mount command: mount -t davfs -o ro,nosuid,nodev,noexec,noask…

---

## [Mod\_proxy+mod\_cache - no upstream & set error\_page?](https://www.ruby-forum.com/t/mod-proxy-mod-cache-no-upstream-set-error-page/186815)

<div class="topic-metadata">

**Author:** [@Scott\_Smith](https://www.ruby-forum.com/u/Scott_Smith)\
**Replies:** 0\
**Last updated:** [April 12, 2010, 8:46pm UTC](https://www.ruby-forum.com/t/mod-proxy-mod-cache-no-upstream-set-error-page/186815 "2010-04-12T20:46:16Z")

</div>

Hi, I’m using Nginx with mod\_proxy+mod\_cache to proxy and cache specific pages. When the upstream ($host) is down, and the page is not cached, Nginx returns a generic 502 page. Is it possible to use error\_page? I’ve…

---

## [Epoll\_ctl failed (17: File exists)](https://www.ruby-forum.com/t/epoll-ctl-failed-17-file-exists/186507)

<div class="topic-metadata">

**Author:** [@Matthias-Christian\_S](https://www.ruby-forum.com/u/Matthias-Christian_S)\
**Replies:** 3\
**Last updated:** [April 12, 2010, 5:44pm UTC](https://www.ruby-forum.com/t/epoll-ctl-failed-17-file-exists/186507 "2010-04-12T17:44:11Z")

</div>

Hi, when I run ‘/etc/init.d/nginx reload’ on Debian, I get the following error message in /var/log/nginx/error.log and I have to restart nginx: 2010/04/08 03:07:23 \[alert\] 10719#0: epoll\_ctl(1, 7) failed (17: File ex…

---

## [Could somebody convert this .htaccess to NGINX rewrite,,?](https://www.ruby-forum.com/t/could-somebody-convert-this-htaccess-to-nginx-rewrite/186721)

<div class="topic-metadata">

**Author:** [@escavern](https://www.ruby-forum.com/u/escavern)\
**Replies:** 5\
**Last updated:** [April 12, 2010, 2:32pm UTC](https://www.ruby-forum.com/t/could-somebody-convert-this-htaccess-to-nginx-rewrite/186721 "2010-04-12T14:32:41Z")

</div>

could somebody convert this .htaccess to NGINX rewrite,?? RewriteEngine on RewriteCond %{HTTP\_HOST} ^www.(.+)$ RewriteRule ^(.\*)$ http://%1/$1 i u could, u’re the best ! Posted at Nginx Forum:

---

## [Browser module](https://www.ruby-forum.com/t/browser-module/186785)

<div class="topic-metadata">

**Author:** [@andre\_wang](https://www.ruby-forum.com/u/andre_wang)\
**Replies:** 0\
**Last updated:** [April 12, 2010, 10:40am UTC](https://www.ruby-forum.com/t/browser-module/186785 "2010-04-12T10:40:49Z")

</div>

greetings i have an issue with browser module of nginx. i have set a list of ancient\_browsers in browser.conf : ancient\_browser “GoBrowser” “MIDP” “WAP” “UP.Browser” “Obigo” “Mobile”; and configed one virutalhost : …

---

## [Worker process XXXXX exited on signal 11](https://www.ruby-forum.com/t/worker-process-xxxxx-exited-on-signal-11/186715)

<div class="topic-metadata">

**Author:** [@flash](https://www.ruby-forum.com/u/flash)\
**Replies:** 1\
**Last updated:** [April 12, 2010, 4:05am UTC](https://www.ruby-forum.com/t/worker-process-xxxxx-exited-on-signal-11/186715 "2010-04-12T04:05:42Z")

</div>

There are several posts on the Russian boards in regards to this issue; however, I have not been able to get anything out of them that would help. (I tried google translate but it is not the best with technical langua…

---

## [Re: NginX problem with Reverse Proxy'ing](https://www.ruby-forum.com/t/re-nginx-problem-with-reverse-proxying/186660)

<div class="topic-metadata">

**Author:** [@Victor\_Fondevilla](https://www.ruby-forum.com/u/Victor_Fondevilla)\
**Replies:** 4\
**Last updated:** [April 11, 2010, 4:46pm UTC](https://www.ruby-forum.com/t/re-nginx-problem-with-reverse-proxying/186660 "2010-04-11T16:46:43Z")

</div>

Something went wrong with my other mail (created a new thread by mistake) I paste here the message: The PHP file is only this: \<?php phpinfo(); ?\> Just for testing the proxy.

---

## [Slides for my talk on nginx.conf scripting](https://www.ruby-forum.com/t/slides-for-my-talk-on-nginx-conf-scripting/186650)

<div class="topic-metadata">

**Author:** [@agentzh](https://www.ruby-forum.com/u/agentzh)\
**Replies:** 1\
**Last updated:** [April 11, 2010, 12:37pm UTC](https://www.ruby-forum.com/t/slides-for-my-talk-on-nginx-conf-scripting/186650 "2010-04-11T12:37:58Z")

</div>

Hi, folks! Today I gave a talk on nginx.conf scripting in our PerlChina’s monthly meeting. Well, this talk focused mainly on the various nginx C modules and has little thing to do with Perl :stuck\_out\_tongue: Here’s …

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

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