# Server

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

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

---

## [Followup to question about $\_POST](https://www.ruby-forum.com/t/followup-to-question-about-post/161696)

<div class="topic-metadata">

**Author:** [@Chris\_Cortese](https://www.ruby-forum.com/u/Chris_Cortese)\
**Replies:** 0\
**Last updated:** [March 1, 2009, 8:35am UTC](https://www.ruby-forum.com/t/followup-to-question-about-post/161696 "2009-03-01T08:35:35Z")

</div>

I found this thread: Error\_page and log\_not\_found in nginx 0.7.8 - NGINX - Ruby-Forum So, apparently, using the error page to reroute /mycontroller/mymethod URLs, does not forward the $\_POST array. I don’t really unde…

---

## [Question on /controller/method open() failed](https://www.ruby-forum.com/t/question-on-controller-method-open-failed/161695)

<div class="topic-metadata">

**Author:** [@Chris\_Cortese](https://www.ruby-forum.com/u/Chris_Cortese)\
**Replies:** 0\
**Last updated:** [March 1, 2009, 8:12am UTC](https://www.ruby-forum.com/t/question-on-controller-method-open-failed/161695 "2009-03-01T08:12:11Z")

</div>

I am using the following to route http://mysite.com/mycontroller/mymethod to http://mysite.com/index.php?q=/mycontroller/mymethod. This works fine. However, every page I hit generates an open() failed error in the er…

---

## [Fcgiwrap upstream errors](https://www.ruby-forum.com/t/fcgiwrap-upstream-errors/161649)

<div class="topic-metadata">

**Author:** [@Chris\_Cortese](https://www.ruby-forum.com/u/Chris_Cortese)\
**Replies:** 8\
**Last updated:** [March 1, 2009, 8:01am UTC](https://www.ruby-forum.com/t/fcgiwrap-upstream-errors/161649 "2009-03-01T08:01:03Z")

</div>

Hello, I’m still trying to get fcgiwrap to handle a hello, world perl cgi script. I run: spawn-fcgi -f /usr/local/bin/fcgiwrap -s /tmp/cgi.sock The first time I try to pull up my cgi-bin/test.pl file, I get: connec…

---

## [New to nginx](https://www.ruby-forum.com/t/new-to-nginx/161655)

<div class="topic-metadata">

**Author:** [@ileider](https://www.ruby-forum.com/u/ileider)\
**Replies:** 8\
**Last updated:** [March 1, 2009, 6:13am UTC](https://www.ruby-forum.com/t/new-to-nginx/161655 "2009-03-01T06:13:22Z")

</div>

Hi, I’m new to nginx, and I’m trying to configure it but I’ve some problems. I use Ubuntu 8.10, and I installed nginx 0.6.32(apt-get install nginx) The problems I see; unknown directive “if($request\_method” If I re…

---

## [Error while starting "ruby script/server"](https://www.ruby-forum.com/t/error-while-starting-ruby-script-server/161606)

<div class="topic-metadata">

**Author:** [@thearchitect](https://www.ruby-forum.com/u/thearchitect)\
**Replies:** 0\
**Last updated:** [February 27, 2009, 7:47pm UTC](https://www.ruby-forum.com/t/error-while-starting-ruby-script-server/161606 "2009-02-27T19:47:02Z")

</div>

Hello, I am very new to Ruby on Rails, but also very excited to get those things started. I downloaded and installed “BitNami RubyStack Stack 1.4-beta-1” which includes all necessary tools for running RoR offline und…

---

## [Newbie config not catching virtual host](https://www.ruby-forum.com/t/newbie-config-not-catching-virtual-host/161513)

<div class="topic-metadata">

**Author:** [@Nuno\_MagalhSSSSes](https://www.ruby-forum.com/u/Nuno_MagalhSSSSes)\
**Replies:** 3\
**Last updated:** [February 27, 2009, 4:10pm UTC](https://www.ruby-forum.com/t/newbie-config-not-catching-virtual-host/161513 "2009-02-27T16:10:55Z")

</div>

Greetings, I’ve just set up a domain name and i can’t get nginx to parse to the correct subfolder. I think this is related to fastcgi, caused by an error between my chair and keyboard. I have /var/www/nginx-default/…

---

## [Rewritecond for nginx](https://www.ruby-forum.com/t/rewritecond-for-nginx/161563)

<div class="topic-metadata">

**Author:** [@Chris\_Cortese](https://www.ruby-forum.com/u/Chris_Cortese)\
**Replies:** 4\
**Last updated:** [February 27, 2009, 3:46pm UTC](https://www.ruby-forum.com/t/rewritecond-for-nginx/161563 "2009-02-27T15:46:48Z")

</div>

I think I figured out the answer to my last question about perl CGI. I put the path to cgi-bin in the fastcgi\_params file. I have another question: How can I tell nginx to not rewrite certain directories? I use the …

---

## [Followup to previous message](https://www.ruby-forum.com/t/followup-to-previous-message/161570)

<div class="topic-metadata">

**Author:** [@Chris\_Cortese](https://www.ruby-forum.com/u/Chris_Cortese)\
**Replies:** 1\
**Last updated:** [February 27, 2009, 3:00pm UTC](https://www.ruby-forum.com/t/followup-to-previous-message/161570 "2009-02-27T15:00:52Z")

</div>

sorry for another email but I wanted to clarify one point: My main css file is in main\_style.php. This dynamically builds my css. The problem is that http://mysite.com/style/main\_style.php is still going to http://my…

---

## [Stream ajax events, how do I handle long persistent connections?](https://www.ruby-forum.com/t/stream-ajax-events-how-do-i-handle-long-persistent-connections/161510)

<div class="topic-metadata">

**Author:** [@Emit\_Sorrels](https://www.ruby-forum.com/u/Emit_Sorrels)\
**Replies:** 1\
**Last updated:** [February 27, 2009, 2:07am UTC](https://www.ruby-forum.com/t/stream-ajax-events-how-do-i-handle-long-persistent-connections/161510 "2009-02-27T02:07:12Z")

</div>

Hi guys, To get familiar with nginx’s module api, I wrote a quick and dirty handler module that for now simply spits out a text/html based on the uri. Now, to go one step further, I want to send to the client a seri…

---

## [Memcached Question - Authenticated Users?](https://www.ruby-forum.com/t/memcached-question-authenticated-users/161507)

<div class="topic-metadata">

**Author:** [@unclouded](https://www.ruby-forum.com/u/unclouded)\
**Replies:** 2\
**Last updated:** [February 27, 2009, 12:59am UTC](https://www.ruby-forum.com/t/memcached-question-authenticated-users/161507 "2009-02-27T00:59:45Z")

</div>

Hello, I’m looking at enabling the memcache module. One question - for any member who has logged in to my site, I don’t want to serve a cached copy of the page. It’s fine for anonymous users, however. Is this poss…

---

## [Re: FCGI.pm?](https://www.ruby-forum.com/t/re-fcgi-pm/161481)

<div class="topic-metadata">

**Author:** [@joviyach](https://www.ruby-forum.com/u/joviyach)\
**Replies:** 0\
**Last updated:** [February 26, 2009, 9:06pm UTC](https://www.ruby-forum.com/t/re-fcgi-pm/161481 "2009-02-26T21:06:03Z")

</div>

But only for one instance of fcgiwrap Mike. If you want multiple instances the script works perfectly.

---

## [Memcache key double escaped](https://www.ruby-forum.com/t/memcache-key-double-escaped/161404)

<div class="topic-metadata">

**Author:** [@xguardiola](https://www.ruby-forum.com/u/xguardiola)\
**Replies:** 3\
**Last updated:** [February 26, 2009, 2:26pm UTC](https://www.ruby-forum.com/t/memcache-key-double-escaped/161404 "2009-02-26T14:26:26Z")

</div>

Hello all, I have trouble with nginx memcached module with urls containing special char, for instance : GET /list.xml?fulltext=testé&sort=rating&dir=DESC will store the following key in memcache : \<25 set brh:262:68…

---

## [Nginx blocking during long running PHP request?](https://www.ruby-forum.com/t/nginx-blocking-during-long-running-php-request/161386)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 7\
**Last updated:** [February 26, 2009, 2:26pm UTC](https://www.ruby-forum.com/t/nginx-blocking-during-long-running-php-request/161386 "2009-02-26T14:26:19Z")

</div>

I use nginx to frontend fastcgi and PHP. I have a PHP page that accesses a mySQL db and executes a query which takes about 30 seconds to execute. During that time, if I hit another php page on my site, the browser ju…

---

## [Cannot change default root path](https://www.ruby-forum.com/t/cannot-change-default-root-path/161366)

<div class="topic-metadata">

**Author:** [@yaax](https://www.ruby-forum.com/u/yaax)\
**Replies:** 12\
**Last updated:** [February 26, 2009, 12:20pm UTC](https://www.ruby-forum.com/t/cannot-change-default-root-path/161366 "2009-02-26T12:20:49Z")

</div>

I am new user of nginx, I installed it as replace of apache on cpanel server for one very busy site. I installed it to default folder /usr/local/nginx and setup it working with php fastcgi spawn, but it only works fro…

---

## [Nginx as Loadbalancer loading page somtimes not complete](https://www.ruby-forum.com/t/nginx-as-loadbalancer-loading-page-somtimes-not-complete/161391)

<div class="topic-metadata">

**Author:** [@misael](https://www.ruby-forum.com/u/misael)\
**Replies:** 3\
**Last updated:** [February 26, 2009, 10:42am UTC](https://www.ruby-forum.com/t/nginx-as-loadbalancer-loading-page-somtimes-not-complete/161391 "2009-02-26T10:42:32Z")

</div>

hi nginx users, first of all i like to thank you for this great application, i recently used nginx for my community forum backend with vbulletin, and the average user online are 10.000 users. the problems was, some…

---

## [Only allow certain file extensions?](https://www.ruby-forum.com/t/only-allow-certain-file-extensions/161296)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 3\
**Last updated:** [February 26, 2009, 8:02am UTC](https://www.ruby-forum.com/t/only-allow-certain-file-extensions/161296 "2009-02-26T08:02:02Z")

</div>

What is the best way to enforce that nginx only serves content to a list of known good extensions (like .php, .css, .xml, .jpg etc) and does a deny all on all other page types? I was thinking of using a location block…

---

## [Ecmascript module](https://www.ruby-forum.com/t/ecmascript-module/158118)

<div class="topic-metadata">

**Author:** [@Chris\_Farmiloe](https://www.ruby-forum.com/u/Chris_Farmiloe)\
**Replies:** 8\
**Last updated:** [February 26, 2009, 12:39am UTC](https://www.ruby-forum.com/t/ecmascript-module/158118 "2009-02-26T00:39:08Z")

</div>

Hi, I’ve started to build an nginx module to process server-side ecmascript (javascript) by embedding the spidermonkey engine. I’ve got a (very) rough proof of concept hacked together just now, but after about 30-50 …

---

## [Imap port 993 perl + nginx](https://www.ruby-forum.com/t/imap-port-993-perl-nginx/161348)

<div class="topic-metadata">

**Author:** [@eltercero](https://www.ruby-forum.com/u/eltercero)\
**Replies:** 2\
**Last updated:** [February 25, 2009, 6:58pm UTC](https://www.ruby-forum.com/t/imap-port-993-perl-nginx/161348 "2009-02-25T18:58:35Z")

</div>

Hello nginx’s users I have an error in the connection nginx against by the ssl Dovecot espesificamente port 993 this work excelent. #cat nginx.conf server { listen 993; protocol imap; proxy on; ssl …

---

## [I'm no sure, nginx use ssl with both auth client and backend?](https://www.ruby-forum.com/t/im-no-sure-nginx-use-ssl-with-both-auth-client-and-backend/161346)

<div class="topic-metadata">

**Author:** [@JOSE\_GONZALEZ](https://www.ruby-forum.com/u/JOSE_GONZALEZ)\
**Replies:** 1\
**Last updated:** [February 25, 2009, 6:52pm UTC](https://www.ruby-forum.com/t/im-no-sure-nginx-use-ssl-with-both-auth-client-and-backend/161346 "2009-02-25T18:52:06Z")

</div>

I configure nginx with imap/ssl by the port 993 and working fine. But I need configure nginx to support SSL between itself and the backend (dovecot)? I’m no sure, nginx use ssl with both auth client and backend? JOSE…

---

## [Need help with rewrite rule](https://www.ruby-forum.com/t/need-help-with-rewrite-rule/161291)

<div class="topic-metadata">

**Author:** [@Chris\_Cortese](https://www.ruby-forum.com/u/Chris_Cortese)\
**Replies:** 4\
**Last updated:** [February 25, 2009, 3:37pm UTC](https://www.ruby-forum.com/t/need-help-with-rewrite-rule/161291 "2009-02-25T15:37:17Z")

</div>

In Apache, I use the following rule. It runs the combinator script, which serializes, minimizes, and gzips a list of javascript files: RewriteRule ^/javascript/(.\*.js) /combine.php?type=javascript&files=$1 In nginx, …

---

## [Plug-in development request](https://www.ruby-forum.com/t/plug-in-development-request/161303)

<div class="topic-metadata">

**Author:** [@191919](https://www.ruby-forum.com/u/191919)\
**Replies:** 0\
**Last updated:** [February 25, 2009, 9:16am UTC](https://www.ruby-forum.com/t/plug-in-development-request/161303 "2009-02-25T09:16:16Z")

</div>

We are developing some nginx plug-ins which need to know and set (control) the transfer rate during the process of transfer, e.g., an upload progress plug-in or a VOD plug-in which shapes the traffic according to the …

---

## [Errors in this file (tcphack.rb)](https://www.ruby-forum.com/t/errors-in-this-file-tcphack-rb/161188)

<div class="topic-metadata">

**Author:** [@his2000x](https://www.ruby-forum.com/u/his2000x)\
**Replies:** 2\
**Last updated:** [February 25, 2009, 3:46am UTC](https://www.ruby-forum.com/t/errors-in-this-file-tcphack-rb/161188 "2009-02-25T03:46:22Z")

</div>

hi all, i can not speak english well. my os is ubuntu , unbuntu update was yesterday. and then does not work. this is mongrel error /usr/local/lib/site\_ruby/1.8/mongrel/tcphack.rb:12:in initialize\_without\_backlog'…

---

## [Apache passthru rewriting](https://www.ruby-forum.com/t/apache-passthru-rewriting/161161)

<div class="topic-metadata">

**Author:** [@skylimey](https://www.ruby-forum.com/u/skylimey)\
**Replies:** 1\
**Last updated:** [February 25, 2009, 12:14am UTC](https://www.ruby-forum.com/t/apache-passthru-rewriting/161161 "2009-02-25T00:14:03Z")

</div>

Sorry for adding yet another rewrite thread, but I did a few searching and couldn’t find anything about replicating passthru behaviour. The idea is to take something like this: domain.com/news/254/ and redirect it to…

---

## [Strange error: nginx does not flush the buffer back to the client](https://www.ruby-forum.com/t/strange-error-nginx-does-not-flush-the-buffer-back-to-the-client/161179)

<div class="topic-metadata">

**Author:** [@Peter\_Langhans](https://www.ruby-forum.com/u/Peter_Langhans)\
**Replies:** 1\
**Last updated:** [February 24, 2009, 9:19pm UTC](https://www.ruby-forum.com/t/strange-error-nginx-does-not-flush-the-buffer-back-to-the-client/161179 "2009-02-24T21:19:37Z")

</div>

Hi, I’m completely new to nginx - I’ve just started using it a day ago, but I’ve managed to set up a reverse proxy szenario with nginx as a front end and 3 apache servers (2.0.63) as the backend servers. \*The stran…

---

## [Config help - Reverse Proxy for Virtual Directories](https://www.ruby-forum.com/t/config-help-reverse-proxy-for-virtual-directories/160840)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 4\
**Last updated:** [February 24, 2009, 10:49am UTC](https://www.ruby-forum.com/t/config-help-reverse-proxy-for-virtual-directories/160840 "2009-02-24T10:49:29Z")

</div>

I’m trying to get nginx to do the following (among other things): If the URL matches /ObjJob/YYY if exists /var/www/phrogz.net/ObjJob/public/YYY, serve it statically otherwise proxy it to http://localhost:9901/YYY #no …

---

## [Nginx on Tru64/alpha](https://www.ruby-forum.com/t/nginx-on-tru64-alpha/161052)

<div class="topic-metadata">

**Author:** [@Dustin\_Marquess](https://www.ruby-forum.com/u/Dustin_Marquess)\
**Replies:** 3\
**Last updated:** [February 24, 2009, 8:00am UTC](https://www.ruby-forum.com/t/nginx-on-tru64-alpha/161052 "2009-02-24T08:00:54Z")

</div>

Hello. I recently installed nginx 0.7.37 on Tru64 5.1B-4 using Compaq C V6.5-303 compiler. Everything works great if I leave the default of worker\_processes set to 1. However, if I increase it to 2 (since this machi…

---

## [HTTP header manipulation](https://www.ruby-forum.com/t/http-header-manipulation/160923)

<div class="topic-metadata">

**Author:** [@Nuno\_MagalhSSSSes](https://www.ruby-forum.com/u/Nuno_MagalhSSSSes)\
**Replies:** 3\
**Last updated:** [February 24, 2009, 3:52am UTC](https://www.ruby-forum.com/t/http-header-manipulation/160923 "2009-02-24T03:52:14Z")

</div>

I thought i’d use a different thread instead of stealing Paul’s… HTTP-header manipulation is another type of exploit which does relate to the webserver. On that, how can i prevent nginx from sending the server name? I…

---

## [Using die in perl module](https://www.ruby-forum.com/t/using-die-in-perl-module/161157)

<div class="topic-metadata">

**Author:** [@Atif\_G](https://www.ruby-forum.com/u/Atif_G)\
**Replies:** 0\
**Last updated:** [February 23, 2009, 11:45pm UTC](https://www.ruby-forum.com/t/using-die-in-perl-module/161157 "2009-02-23T23:45:50Z")

</div>

Hi all, I would like to know the consequence in using alarm and die in a perl-handler. For example consider this http://wiki.codemongers.com/NginxEmbeddedPerlImageResize The blocking code is the following $image= …

---

## [Panel on Multilingual Web Sites at WWW2009](https://www.ruby-forum.com/t/panel-on-multilingual-web-sites-at-www2009/161148)

<div class="topic-metadata">

**Author:** [@M.TSCarrasco\_Benit](https://www.ruby-forum.com/u/M.TSCarrasco_Benit)\
**Replies:** 0\
**Last updated:** [February 23, 2009, 9:51pm UTC](https://www.ruby-forum.com/t/panel-on-multilingual-web-sites-at-www2009/161148 "2009-02-23T21:51:18Z")

</div>

I am looking for a panelist going to WWW2009.org (or living near Madrid) and familiar with nginx. The panel is on the 24 April 2009. A plus, but not essential: interest in multilingualism, other servers, browsers and …

---

## [Nginx-0.7.38](https://www.ruby-forum.com/t/nginx-0-7-38/161122)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 2\
**Last updated:** [February 23, 2009, 6:22pm UTC](https://www.ruby-forum.com/t/nginx-0-7-38/161122 "2009-02-23T18:22:57Z")

</div>

Changes with nginx 0.7.38 23 Feb 2009 \*) Feature: authentication failures logging. \*) Bugfix: name/password in auth\_basic\_user\_file were ignored after odd number of empty line…

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

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