# Server

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

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

---

## [File Upload without the Temp File Copy](https://www.ruby-forum.com/t/file-upload-without-the-temp-file-copy/153504)

<div class="topic-metadata">

**Author:** [@axyd80](https://www.ruby-forum.com/u/axyd80)\
**Replies:** 4\
**Last updated:** [November 18, 2008, 6:46pm UTC](https://www.ruby-forum.com/t/file-upload-without-the-temp-file-copy/153504 "2008-11-18T18:46:50Z")

</div>

Is it possible to upload file directly into database? Without creation the extra temp file on the disk. Thanks! :slight\_smile:

---

## [Ngin goes down under high traffic](https://www.ruby-forum.com/t/ngin-goes-down-under-high-traffic/153414)

<div class="topic-metadata">

**Author:** [@David\_Pospisil](https://www.ruby-forum.com/u/David_Pospisil)\
**Replies:** 3\
**Last updated:** [November 17, 2008, 12:33pm UTC](https://www.ruby-forum.com/t/ngin-goes-down-under-high-traffic/153414 "2008-11-17T12:33:42Z")

</div>

Please look at http://pub.horror.superhosting.cz/data/eth0-6h.png. Everytime nginx goes under high traffic, it stops offering files and instead of this, it starts reading of discs (it reads about 400Mb/s but send not…

---

## [Strange 'too many open files' errors with nginx 0.6.32](https://www.ruby-forum.com/t/strange-too-many-open-files-errors-with-nginx-0-6-32/153450)

<div class="topic-metadata">

**Author:** [@Arash\_F](https://www.ruby-forum.com/u/Arash_F)\
**Replies:** 2\
**Last updated:** [November 17, 2008, 12:03pm UTC](https://www.ruby-forum.com/t/strange-too-many-open-files-errors-with-nginx-0-6-32/153450 "2008-11-17T12:03:15Z")

</div>

hi,i’m seeing a strange ‘too many open files’ error with nginx (which I’m sure many of you have seen before): 2008/11/17 02:15:02 \[alert\] 21748#0: accept() failed (24: Too many open files) while accepting new connect…

---

## [Re: Re: find bug in dns resovle](https://www.ruby-forum.com/t/re-re-find-bug-in-dns-resovle/153448)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [November 17, 2008, 11:11am UTC](https://www.ruby-forum.com/t/re-re-find-bug-in-dns-resovle/153448 "2008-11-17T11:11:35Z")

</div>

Igor S.,£¡ my name is zyb,come from china. and i wanna to modify ngx\_resolve.c to add function to support mx resolve,if i modify ,i can present it just here? i have one suggesiton: i wish nginx’s common moudle can …

---

## [Support for POST client body sent with Transfer-Encoding: chunked](https://www.ruby-forum.com/t/support-for-post-client-body-sent-with-transfer-encoding-chunked/127989)

<div class="topic-metadata">

**Author:** [@carlos](https://www.ruby-forum.com/u/carlos)\
**Replies:** 3\
**Last updated:** [November 17, 2008, 11:08am UTC](https://www.ruby-forum.com/t/support-for-post-client-body-sent-with-transfer-encoding-chunked/127989 "2008-11-17T11:08:35Z")

</div>

In the process of switching from Apache 2 to an all-nginx setup for front-end servers I have found a nginx (miss-)feature that makes it impossible to service certain clients. Basically nginx will refuse to serve POST …

---

## [Using Variable in fastcgi\_pass](https://www.ruby-forum.com/t/using-variable-in-fastcgi-pass/151348)

<div class="topic-metadata">

**Author:** [@Samuel\_Vogel](https://www.ruby-forum.com/u/Samuel_Vogel)\
**Replies:** 4\
**Last updated:** [November 17, 2008, 12:36am UTC](https://www.ruby-forum.com/t/using-variable-in-fastcgi-pass/151348 "2008-11-17T00:36:46Z")

</div>

Hey, I am trying to use a variable in the fastcgi\_pass directive. It does not get parsed however. Example: 2008/10/20 12:09:59 \[crit\] 4475#0: \*3 connect() to unix:/var/run/php-fpm/socket/$userid failed (2: No such f…

---

## [Include files relative to nginx.conf](https://www.ruby-forum.com/t/include-files-relative-to-nginx-conf/153406)

<div class="topic-metadata">

**Author:** [@Joaquin\_Cuenca\_Abel](https://www.ruby-forum.com/u/Joaquin_Cuenca_Abel)\
**Replies:** 0\
**Last updated:** [November 16, 2008, 5:29pm UTC](https://www.ruby-forum.com/t/include-files-relative-to-nginx-conf/153406 "2008-11-16T17:29:58Z")

</div>

Hi, the docs say that “Since version 0.6.7, paths are relative to directory of nginx configuration file nginx.conf, but not to nginx prefix directory.” I have nginx.conf 0.7.21 in directory C:\\foo\\etc\\windows\\nginx.c…

---

## [Upload module 2.1.1](https://www.ruby-forum.com/t/upload-module-2-1-1/153377)

<div class="topic-metadata">

**Author:** [@Valery\_K](https://www.ruby-forum.com/u/Valery_K)\
**Replies:** 0\
**Last updated:** [November 16, 2008, 12:02am UTC](https://www.ruby-forum.com/t/upload-module-2-1-1/153377 "2008-11-16T00:02:31Z")

</div>

Greetings! I have to move forward somehow and I open a new branch 2.1 of upload module as well as experiment #1. Will see whether on-the-fly processing of files makes sense. Changes to this branch basically are: A…

---

## [How to rewrite this: apache change to nginx](https://www.ruby-forum.com/t/how-to-rewrite-this-apache-change-to-nginx/153344)

<div class="topic-metadata">

**Author:** [@bigbet](https://www.ruby-forum.com/u/bigbet)\
**Replies:** 0\
**Last updated:** [November 15, 2008, 6:09am UTC](https://www.ruby-forum.com/t/how-to-rewrite-this-apache-change-to-nginx/153344 "2008-11-15T06:09:21Z")

</div>

Hello, I am trying to rewrite for joomla, some stuff from apache to nginx, somehow I am not doing it right coz its not working… Can some one help me to rewrite this: RewriteEngine On Block out any script trying to se…

---

## [Post\_action only when the download is completed](https://www.ruby-forum.com/t/post-action-only-when-the-download-is-completed/153332)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [November 15, 2008, 12:42am UTC](https://www.ruby-forum.com/t/post-action-only-when-the-download-is-completed/153332 "2008-11-15T00:42:51Z")

</div>

i have a problem with post\_action on nginx.conf. And sorry for my bad English :slight\_smile: User come to my page an start a download. Now i have add the post\_action and add the download\_end.php in the download\_end.…

---

## [Load balancing Global](https://www.ruby-forum.com/t/load-balancing-global/153191)

<div class="topic-metadata">

**Author:** [@Glen\_L](https://www.ruby-forum.com/u/Glen_L)\
**Replies:** 1\
**Last updated:** [November 14, 2008, 11:41pm UTC](https://www.ruby-forum.com/t/load-balancing-global/153191 "2008-11-14T23:41:24Z")

</div>

Is that posibble to use nginx as Global Load balancer? I used GeoIP load balancing method For example 1.1.1.1 (nginx) -\> 2.2.2.2 (apache) -\> Local Network -\> 3.3.3.3 (apache) -\> External…

---

## [How can I fetch byte logs in nginx like "%{%s}t %I .\\n%{%s}t %O ."](https://www.ruby-forum.com/t/how-can-i-fetch-byte-logs-in-nginx-like-s-t-i-n-s-t-o/153314)

<div class="topic-metadata">

**Author:** [@jsimone](https://www.ruby-forum.com/u/jsimone)\
**Replies:** 7\
**Last updated:** [November 14, 2008, 10:27pm UTC](https://www.ruby-forum.com/t/how-can-i-fetch-byte-logs-in-nginx-like-s-t-i-n-s-t-o/153314 "2008-11-14T22:27:35Z")

</div>

In Apache I fetch byte logs using: CustomLog /usr/local/apache/logs/DOMAIN.COM-bytes\_log “%{%s}t %I .\\n%{%s}t %O .” Can I achieve the similar effect this does in Apache, in nginx ? If so, can anyone give me the prope…

---

## [Auth\_basic & avoiding duplication in conf file](https://www.ruby-forum.com/t/auth-basic-avoiding-duplication-in-conf-file/153175)

<div class="topic-metadata">

**Author:** [@anr](https://www.ruby-forum.com/u/anr)\
**Replies:** 2\
**Last updated:** [November 13, 2008, 2:13pm UTC](https://www.ruby-forum.com/t/auth-basic-avoiding-duplication-in-conf-file/153175 "2008-11-13T14:13:07Z")

</div>

Hi, Sorry if this is a faq. I started using v0.6.32 and I have to turn on / off auth based on the url. I have something like: server { auth\_basic … location ~\* jpeg { } location /home/return { auth\_basic off }…

---

## [Nginx load balancer with GeoIP](https://www.ruby-forum.com/t/nginx-load-balancer-with-geoip/153014)

<div class="topic-metadata">

**Author:** [@Glen\_L](https://www.ruby-forum.com/u/Glen_L)\
**Replies:** 13\
**Last updated:** [November 13, 2008, 4:09am UTC](https://www.ruby-forum.com/t/nginx-load-balancer-with-geoip/153014 "2008-11-13T04:09:50Z")

</div>

Hi there, Is nginx will support load balancing with GeoIP support? Example : If match country US Proxy\_pass http://us.server/; If match other Proxy\_pass http://default.server/; Regards, Gl…

---

## [Re: nginx imap proxy issue with imap](https://www.ruby-forum.com/t/re-nginx-imap-proxy-issue-with-imap/153185)

<div class="topic-metadata">

**Author:** [@Maxim\_D](https://www.ruby-forum.com/u/Maxim_D)\
**Replies:** 0\
**Last updated:** [November 13, 2008, 1:57am UTC](https://www.ruby-forum.com/t/re-nginx-imap-proxy-issue-with-imap/153185 "2008-11-13T01:57:03Z")

</div>

Hello! On Wed, Nov 12, 2008 at 09:48:27PM -0000, David Farrar wrote: server for 30 seconds. This is too many for real life. guess it may interest other users of nginx if this behaviour is new or rare: The other t…

---

## [Long polling via nginx proxy](https://www.ruby-forum.com/t/long-polling-via-nginx-proxy/153172)

<div class="topic-metadata">

**Author:** [@praveen](https://www.ruby-forum.com/u/praveen)\
**Replies:** 0\
**Last updated:** [November 12, 2008, 11:03pm UTC](https://www.ruby-forum.com/t/long-polling-via-nginx-proxy/153172 "2008-11-12T23:03:15Z")

</div>

hi all, i am using nginx (as a proxy load balancer) in front of my servers for a long polling application. in the configuration documentation for the proxy module it says “For Comet aplications based on long-polling …

---

## [Nginx imap proxy issue with imap](https://www.ruby-forum.com/t/nginx-imap-proxy-issue-with-imap/153153)

<div class="topic-metadata">

**Author:** [@David\_Farrar](https://www.ruby-forum.com/u/David_Farrar)\
**Replies:** 1\
**Last updated:** [November 12, 2008, 7:46pm UTC](https://www.ruby-forum.com/t/nginx-imap-proxy-issue-with-imap/153153 "2008-11-12T19:46:57Z")

</div>

Hello, We’re using nginx to proxy imap connections across a number of backends. All was fine until we introduced a new backend server running dovecot and discovered that we were (apparently) randomly seeing an ‘intern…

---

## [Nginx-0.7.21](https://www.ruby-forum.com/t/nginx-0-7-21/153070)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 7\
**Last updated:** [November 12, 2008, 1:54pm UTC](https://www.ruby-forum.com/t/nginx-0-7-21/153070 "2008-11-12T13:54:52Z")

</div>

Changes with nginx 0.7.21 11 Nov 2008 \*) Changes in the ngx\_http\_limit\_req\_module. \*) Feature: the EXSLT support in the ngx\_http\_xslt\_module. Thanks to Denis F. Latypoff. \*) …

---

## [Nginx / memcached configuration problem](https://www.ruby-forum.com/t/nginx-memcached-configuration-problem/153098)

<div class="topic-metadata">

**Author:** [@Tom\_Churchill](https://www.ruby-forum.com/u/Tom_Churchill)\
**Replies:** 0\
**Last updated:** [November 12, 2008, 7:02am UTC](https://www.ruby-forum.com/t/nginx-memcached-configuration-problem/153098 "2008-11-12T07:02:49Z")

</div>

I hope you will forgive my asking for help on what I assume is a fairly obvious error of some sort – but it’s one I’m afraid I can’t figure out. Basically, we have a cherrypy back end server that will resolve layer n…

---

## [Nginx-0.7.20](https://www.ruby-forum.com/t/nginx-0-7-20/152969)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 16\
**Last updated:** [November 11, 2008, 8:55pm UTC](https://www.ruby-forum.com/t/nginx-0-7-20/152969 "2008-11-11T20:55:30Z")

</div>

Changes with nginx 0.7.20 10 Nov 2008 \*) Changes in the ngx\_http\_gzip\_filter\_module. \*) Feature: the ngx\_http\_limit\_req\_module. \*) Bugfix: worker processes might exit on a SIGBU…

---

## [Nginx-0.7.18](https://www.ruby-forum.com/t/nginx-0-7-18/150805)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 47\
**Last updated:** [November 11, 2008, 7:48pm UTC](https://www.ruby-forum.com/t/nginx-0-7-18/150805 "2008-11-11T19:48:47Z")

</div>

Changes with nginx 0.7.18 13 Oct 2008 \*) Change: the "underscores\_in\_headers" directive; now nginx does not allows underscores in a client request header line names. \*) Featur…

---

## [If $request\_uri , then](https://www.ruby-forum.com/t/if-request-uri-then/152846)

<div class="topic-metadata">

**Author:** [@joeonrails](https://www.ruby-forum.com/u/joeonrails)\
**Replies:** 6\
**Last updated:** [November 11, 2008, 1:08pm UTC](https://www.ruby-forum.com/t/if-request-uri-then/152846 "2008-11-11T13:08:24Z")

</div>

How can I achieve the following? I want to redirect all non-file requests to a script, like this: if ($request\_uri !~\* (js|css|images|etc)$) { rewrite ^/(.+)$ /index.php?q=$1 last; break; } …

---

## [Compilation errors on Ubuntu 8.10 Intrepid Ibex](https://www.ruby-forum.com/t/compilation-errors-on-ubuntu-8-10-intrepid-ibex/152972)

<div class="topic-metadata">

**Author:** [@blair](https://www.ruby-forum.com/u/blair)\
**Replies:** 10\
**Last updated:** [November 11, 2008, 8:39am UTC](https://www.ruby-forum.com/t/compilation-errors-on-ubuntu-8-10-intrepid-ibex/152972 "2008-11-11T08:39:11Z")

</div>

Compiling either 0.6.32 or 0.7.20 on a new Ubuntu 8.10 installation with gcc 4.3.2 causes errors due to a new compiler warning (when combined with the use of -Werror in CFLAGS). There is now a compiler warning when th…

---

## [Memcached configuration issue](https://www.ruby-forum.com/t/memcached-configuration-issue/153021)

<div class="topic-metadata">

**Author:** [@Tom\_Churchill](https://www.ruby-forum.com/u/Tom_Churchill)\
**Replies:** 0\
**Last updated:** [November 11, 2008, 6:29am UTC](https://www.ruby-forum.com/t/memcached-configuration-issue/153021 "2008-11-11T06:29:45Z")

</div>

I hope you will forgive my asking for help on what I assume is a fairly obvious error of some sort – but it’s one I’m afraid I can’t figure out. Basically, we have a cherrypy back end server that will resolve layer n…

---

## [Nginx\_mp4\_streaming\_lite updated](https://www.ruby-forum.com/t/nginx-mp4-streaming-lite-updated/152292)

<div class="topic-metadata">

**Author:** [@191919](https://www.ruby-forum.com/u/191919)\
**Replies:** 6\
**Last updated:** [November 11, 2008, 4:21am UTC](https://www.ruby-forum.com/t/nginx-mp4-streaming-lite-updated/152292 "2008-11-11T04:21:07Z")

</div>

A bug-fix version has been release and can be downloaded in http://wiki.codemongers.com/NginxMP4StreamingLite Tested under: CentOS 5.2 FreeBSD 6.2 Leopard 10.5.5 nginx/0.6.32 and nginx/0.7.19 Both 32-bit and 64-bit …

---

## [Problem Starting Mongrel](https://www.ruby-forum.com/t/problem-starting-mongrel/153004)

<div class="topic-metadata">

**Author:** [@chandu4ruby](https://www.ruby-forum.com/u/chandu4ruby)\
**Replies:** 1\
**Last updated:** [November 11, 2008, 4:12am UTC](https://www.ruby-forum.com/t/problem-starting-mongrel/153004 "2008-11-11T04:12:21Z")

</div>

Hi, I am newbie started learning ruby on rails i had an application which used to run pretty well latter i upgraded from webbrick to mongrel 1.1.5 then I am getting the foloowing errors and a default application runs…

---

## [Upload module & Upload progress module do not work together](https://www.ruby-forum.com/t/upload-module-upload-progress-module-do-not-work-together/196836)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [November 8, 2008, 5:43pm UTC](https://www.ruby-forum.com/t/upload-module-upload-progress-module-do-not-work-together/196836 "2008-11-08T17:43:19Z")

</div>

Hi, I would like to use the upload module and the upload progress module at the same time. Unfortunately, the upload progress module can only work with proxy\_pass and fastcgi, however, not with upload\_pass. Is there…

---

## [php5-cgi+Nginx: which is faster 127.0.0.1:9000 or Unix sockets?](https://www.ruby-forum.com/t/php5-cgi-nginx-which-is-faster-127-0-0-1-9000-or-unix-sockets/152695)

<div class="topic-metadata">

**Author:** [@larios](https://www.ruby-forum.com/u/larios)\
**Replies:** 5\
**Last updated:** [November 8, 2008, 9:47am UTC](https://www.ruby-forum.com/t/php5-cgi-nginx-which-is-faster-127-0-0-1-9000-or-unix-sockets/152695 "2008-11-08T09:47:09Z")

</div>

We intended to test server performance using either: /usr/bin/php-cgi -q -b 127.0.0.1:9000 # i.e., the classic IP:port or: /usr/bin/php-cgi -q -b /tmp/php-fastcgi.socket # i.e. using Unix domain sockets (and having…

---

## [Problems with nginx and fastcgi](https://www.ruby-forum.com/t/problems-with-nginx-and-fastcgi/152832)

<div class="topic-metadata">

**Author:** [@sovok](https://www.ruby-forum.com/u/sovok)\
**Replies:** 0\
**Last updated:** [November 7, 2008, 9:50pm UTC](https://www.ruby-forum.com/t/problems-with-nginx-and-fastcgi/152832 "2008-11-07T21:50:42Z")

</div>

I am trying to test my server with ab… and getting this kind of error in the logs: 2008/11/07 21:48:07 \[error\] 5556#0: \*138 upstream prematurely closed connection while reading response header from upstream, client: …

---

## [If statement REGEXP question](https://www.ruby-forum.com/t/if-statement-regexp-question/152757)

<div class="topic-metadata">

**Author:** [@paul](https://www.ruby-forum.com/u/paul)\
**Replies:** 2\
**Last updated:** [November 7, 2008, 9:43pm UTC](https://www.ruby-forum.com/t/if-statement-regexp-question/152757 "2008-11-07T21:43:56Z")

</div>

How would I do something like if ( $host !~\* ^(.domain(1|2|3)abc.com.)$" ) I’ve tried, doesn’t work :confused: Nginx 0.6.32 Thanks

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

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