# Server

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

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

---

## [Anybody uses ncache in production?](https://www.ruby-forum.com/t/anybody-uses-ncache-in-production/170569)

<div class="topic-metadata">

**Author:** [@XUFENG](https://www.ruby-forum.com/u/XUFENG)\
**Replies:** 3\
**Last updated:** [June 19, 2009, 12:52pm UTC](https://www.ruby-forum.com/t/anybody-uses-ncache-in-production/170569 "2009-06-19T12:52:57Z")

</div>

Hi, does anybody uses ncache in production?(if yes,what version of nginx and ncache? on x64 or not?) does anybody uses proxy\_cache in production?(if yes,what version of nginx?) There is not enough document about nca…

---

## [Changing sources: Memcached module variant](https://www.ruby-forum.com/t/changing-sources-memcached-module-variant/170443)

<div class="topic-metadata">

**Author:** [@matamouros](https://www.ruby-forum.com/u/matamouros)\
**Replies:** 2\
**Last updated:** [June 19, 2009, 6:09am UTC](https://www.ruby-forum.com/t/changing-sources-memcached-module-variant/170443 "2009-06-19T06:09:07Z")

</div>

Hi everyone, I’m having a hard time going through the sources of the memcached module, finding the thread of things. I need to do a small change in this module’s behaviour, namely setting a URL in a var that will be …

---

## [How to start the server with no network connection?](https://www.ruby-forum.com/t/how-to-start-the-server-with-no-network-connection/170567)

<div class="topic-metadata">

**Author:** [@cyril](https://www.ruby-forum.com/u/cyril)\
**Replies:** 0\
**Last updated:** [June 19, 2009, 4:21am UTC](https://www.ruby-forum.com/t/how-to-start-the-server-with-no-network-connection/170567 "2009-06-19T04:21:06Z")

</div>

Hi there, I’m working locally and everything worked fine. But today I wanted to work somewhere where there is no network connection, and I had this error: script/server =\> Booting Mongrel =\> Rails 2.3.2 application…

---

## [Switches in configuration files?](https://www.ruby-forum.com/t/switches-in-configuration-files/170468)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 1\
**Last updated:** [June 18, 2009, 6:42pm UTC](https://www.ruby-forum.com/t/switches-in-configuration-files/170468 "2009-06-18T18:42:10Z")

</div>

Is there a way to create a variable in the config file that I can set to true or false (or 1 or 2, etc) and then make my location blocks do an IF operation based on that var to take different actions in the block. For…

---

## [Nginx fastcgi flup django issues](https://www.ruby-forum.com/t/nginx-fastcgi-flup-django-issues/170507)

<div class="topic-metadata">

**Author:** [@vanderkerkoff](https://www.ruby-forum.com/u/vanderkerkoff)\
**Replies:** 1\
**Last updated:** [June 18, 2009, 6:40pm UTC](https://www.ruby-forum.com/t/nginx-fastcgi-flup-django-issues/170507 "2009-06-18T18:40:59Z")

</div>

I’m on ubuntu hardy heron, 2.6.24-19-server 64 bit nginx/0.5.33 django 1.0.2 Python 2.5.2 mysql 5.0.51a-3ubuntu5.4 Here’s how I installed everything http://pastie.org/515408 Here’s how I restart my django app #!/…

---

## [Re: Switches in configuration files?](https://www.ruby-forum.com/t/re-switches-in-configuration-files/170545)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 0\
**Last updated:** [June 18, 2009, 6:34pm UTC](https://www.ruby-forum.com/t/re-switches-in-configuration-files/170545 "2009-06-18T18:34:33Z")

</div>

Hello everyone - any thoughts on the below post? Thank you.

---

## ["An error occurred while writing CGI reply" with fcgiwrap](https://www.ruby-forum.com/t/an-error-occurred-while-writing-cgi-reply-with-fcgiwrap/170534)

<div class="topic-metadata">

**Author:** [@taha](https://www.ruby-forum.com/u/taha)\
**Replies:** 1\
**Last updated:** [June 18, 2009, 4:47pm UTC](https://www.ruby-forum.com/t/an-error-occurred-while-writing-cgi-reply-with-fcgiwrap/170534 "2009-06-18T16:47:42Z")

</div>

Hi, I am using fcgiwrap from http://nginx.localdomain.pl/wiki/FcgiWrap to run Perl scripts with Nginx (0.6.35) and first it functioned just fine but then suddenly it stopped working with one application (Movable Type) …

---

## [Mass virtual hosting and global redirect](https://www.ruby-forum.com/t/mass-virtual-hosting-and-global-redirect/170286)

<div class="topic-metadata">

**Author:** [@NoSync](https://www.ruby-forum.com/u/NoSync)\
**Replies:** 11\
**Last updated:** [June 18, 2009, 3:24pm UTC](https://www.ruby-forum.com/t/mass-virtual-hosting-and-global-redirect/170286 "2009-06-18T15:24:03Z")

</div>

Hello everyone! I recently switched my main webserver (where I host clients’ websites) from apache to nginx and I wrote a custom generic configuration file to handle everything in one place, so domains and subdomains …

---

## [Building access data from Mongrel & Production log files](https://www.ruby-forum.com/t/building-access-data-from-mongrel-production-log-files/170528)

<div class="topic-metadata">

**Author:** [@jonathan2000](https://www.ruby-forum.com/u/jonathan2000)\
**Replies:** 0\
**Last updated:** [June 18, 2009, 3:23pm UTC](https://www.ruby-forum.com/t/building-access-data-from-mongrel-production-log-files/170528 "2009-06-18T15:23:33Z")

</div>

Hi, We’ve had NGINX logs trashed through a crash, so I’m trying to work out a way of building or assembling some access data from mongrel..log and production.log files. Any suggestions, tools or ideas folks?! Thanks…

---

## [Log Files Overwritten](https://www.ruby-forum.com/t/log-files-overwritten/170526)

<div class="topic-metadata">

**Author:** [@jonathan2000](https://www.ruby-forum.com/u/jonathan2000)\
**Replies:** 0\
**Last updated:** [June 18, 2009, 3:17pm UTC](https://www.ruby-forum.com/t/log-files-overwritten/170526 "2009-06-18T15:17:23Z")

</div>

Hi, Our NGINX box keeled a few weeks back… We’ve just come to process the access log files, to find that they have been overwritten, and start from when the NGINX process was started again. Now, we’ve worked with NGI…

---

## [Looking for help on fastcgi with different path](https://www.ruby-forum.com/t/looking-for-help-on-fastcgi-with-different-path/170515)

<div class="topic-metadata">

**Author:** [@Artifex\_Maximus](https://www.ruby-forum.com/u/Artifex_Maximus)\
**Replies:** 2\
**Last updated:** [June 18, 2009, 3:03pm UTC](https://www.ruby-forum.com/t/looking-for-help-on-fastcgi-with-different-path/170515 "2009-06-18T15:03:13Z")

</div>

Hello! I have the following config file, excerpt: location / { root /home/; index index.php index.html index.htm; location ~ .php$ { fastcgi\_pass 127.0.0.1:9000; fastcgi\_index index.php; fastcgi\_param SCRIPT\_FILE…

---

## [Error with config when upgrading from 0.6.34 to 0.7.59 (the "alias" directive must use captures insi](https://www.ruby-forum.com/t/error-with-config-when-upgrading-from-0-6-34-to-0-7-59-the-alias-directive-must-use-captures-insi/170477)

<div class="topic-metadata">

**Author:** [@Jools\_W](https://www.ruby-forum.com/u/Jools_W)\
**Replies:** 13\
**Last updated:** [June 18, 2009, 1:50pm UTC](https://www.ruby-forum.com/t/error-with-config-when-upgrading-from-0-6-34-to-0-7-59-the-alias-directive-must-use-captures-insi/170477 "2009-06-18T13:50:16Z")

</div>

I got an error the “alias” directive must use captures inside location given by regular expression in /etc/nginx/sites-enabled/default:70 Quite a confusing message for me. The line in question. alias /home/$homedir/p…

---

## [Emerg\]: "proxy\_cache\_path" directive is not allowed here in /usr/local/nginx-0.7.60/conf/nginx.conf:](https://www.ruby-forum.com/t/emerg-proxy-cache-path-directive-is-not-allowed-here-in-usr-local-nginx-0-7-60-conf-nginx-conf/170500)

<div class="topic-metadata">

**Author:** [@XUFENG](https://www.ruby-forum.com/u/XUFENG)\
**Replies:** 3\
**Last updated:** [June 18, 2009, 11:01am UTC](https://www.ruby-forum.com/t/emerg-proxy-cache-path-directive-is-not-allowed-here-in-usr-local-nginx-0-7-60-conf-nginx-conf/170500 "2009-06-18T11:01:33Z")

</div>

Hi Nginx version:0.7.60 Nginx compiling option: ./configure --prefix=/usr/local/nginx-0.7.60 Nginx conf: server { listen 8080; server\_name test.example.com; charset utf-8; access\_log logs/…

---

## [Where is third level of domain gone](https://www.ruby-forum.com/t/where-is-third-level-of-domain-gone/170411)

<div class="topic-metadata">

**Author:** [@fei\_dong](https://www.ruby-forum.com/u/fei_dong)\
**Replies:** 3\
**Last updated:** [June 18, 2009, 6:18am UTC](https://www.ruby-forum.com/t/where-is-third-level-of-domain-gone/170411 "2009-06-18T06:18:48Z")

</div>

Hello, I am using Nginx 0.7.54 with php 5.2.8 as the web server. When I configure the host name, like: \*.music.goog.com, I find a very wield phenonmenon that I can’t get the third level of this domain. I print this…

---

## [Nginx-0.8.2](https://www.ruby-forum.com/t/nginx-0-8-2/170273)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 1\
**Last updated:** [June 18, 2009, 5:56am UTC](https://www.ruby-forum.com/t/nginx-0-8-2/170273 "2009-06-18T05:56:35Z")

</div>

Changes with nginx 0.8.2 15 Jun 2009 \*) Bugfix: in open\_file\_cache and proxy/fastcgi cache interaction on start up. \*) Bugfix: open\_file\_cache might cache open file descripto…

---

## [Primary difference between ncache module and proxy\_cache](https://www.ruby-forum.com/t/primary-difference-between-ncache-module-and-proxy-cache/170491)

<div class="topic-metadata">

**Author:** [@XUFENG](https://www.ruby-forum.com/u/XUFENG)\
**Replies:** 0\
**Last updated:** [June 18, 2009, 4:38am UTC](https://www.ruby-forum.com/t/primary-difference-between-ncache-module-and-proxy-cache/170491 "2009-06-18T04:38:51Z")

</div>

Hi, what is the primary difference between ncache module and proxy\_cache taking into account of the stability and efficiency and compatibility of http 1.1 protocol Cache-Control primitive?

---

## [Supporting access\_log to a pipe?](https://www.ruby-forum.com/t/supporting-access-log-to-a-pipe/170446)

<div class="topic-metadata">

**Author:** [@wesleywu](https://www.ruby-forum.com/u/wesleywu)\
**Replies:** 3\
**Last updated:** [June 17, 2009, 10:16pm UTC](https://www.ruby-forum.com/t/supporting-access-log-to-a-pipe/170446 "2009-06-17T22:16:00Z")

</div>

I need to monitor access log in a separated application, to identify frequent visits like DoS attack. Now I’m using apache httpd. CustomLog directive of httpd (equivalent to access\_log directive in Ngnix) supports wri…

---

## [Nginx configuration issues](https://www.ruby-forum.com/t/nginx-configuration-issues/170455)

<div class="topic-metadata">

**Author:** [@Joel\_Dahl](https://www.ruby-forum.com/u/Joel_Dahl)\
**Replies:** 3\
**Last updated:** [June 17, 2009, 8:56pm UTC](https://www.ruby-forum.com/t/nginx-configuration-issues/170455 "2009-06-17T20:56:48Z")

</div>

Hi, I’ve been looking at replacing apache with nginx for a while and today I had some time over to play with the nginx configuration. I have around ~40 websites and my goal is to set up nginx to handle more websites…

---

## [Help me please about Rewrite](https://www.ruby-forum.com/t/help-me-please-about-rewrite/170420)

<div class="topic-metadata">

**Author:** [@i-comers](https://www.ruby-forum.com/u/i-comers)\
**Replies:** 1\
**Last updated:** [June 17, 2009, 7:48pm UTC](https://www.ruby-forum.com/t/help-me-please-about-rewrite/170420 "2009-06-17T19:48:07Z")

</div>

How i can convert this Rewrite Apache to Rewrite as nginx Rewrite RewriteRule !(/\[^./\]|.(|shtml|shtml|html|htm|shtml|php|php3|php4|php5|php6))$ - RewriteRule ^(sq|ar|bg|ca|zh-CN|zh-TW|hr|cs|da|nl|en|et|tl|fi|fr|gl|de…

---

## [Some questions about the memcached module](https://www.ruby-forum.com/t/some-questions-about-the-memcached-module/170418)

<div class="topic-metadata">

**Author:** [@matamouros](https://www.ruby-forum.com/u/matamouros)\
**Replies:** 1\
**Last updated:** [June 17, 2009, 5:45pm UTC](https://www.ruby-forum.com/t/some-questions-about-the-memcached-module/170418 "2009-06-17T17:45:30Z")

</div>

Greetings, I’ve been playing around with the memcached module and I was wondering if prior to sending a cache hit to the client it is possible to do something with the cache’s contents. Let me give a little bit more …

---

## [Nginx request time](https://www.ruby-forum.com/t/nginx-request-time/165420)

<div class="topic-metadata">

**Author:** [@Deepan\_C](https://www.ruby-forum.com/u/Deepan_C)\
**Replies:** 4\
**Last updated:** [June 17, 2009, 3:55pm UTC](https://www.ruby-forum.com/t/nginx-request-time/165420 "2009-06-17T15:55:10Z")

</div>

Hi, Is it possible to log the time taken for each request in the log file ? Or is there a package like apache top for nginx ? Thanks Deepan

---

## [Nginx response rate increases with more upstream ports](https://www.ruby-forum.com/t/nginx-response-rate-increases-with-more-upstream-ports/170337)

<div class="topic-metadata">

**Author:** [@Asif\_A](https://www.ruby-forum.com/u/Asif_A)\
**Replies:** 9\
**Last updated:** [June 17, 2009, 3:44pm UTC](https://www.ruby-forum.com/t/nginx-response-rate-increases-with-more-upstream-ports/170337 "2009-06-17T15:44:37Z")

</div>

Dear All, I am trying to resolve a particular issue that is not getting solved easily. Nginx is able to route requests but the speed of routing is slowing down…when I am increasing the number of upstream ports. I ha…

---

## [What does --without-http-cache mean?](https://www.ruby-forum.com/t/what-does-without-http-cache-mean/170404)

<div class="topic-metadata">

**Author:** [@XUFENG](https://www.ruby-forum.com/u/XUFENG)\
**Replies:** 5\
**Last updated:** [June 17, 2009, 12:26pm UTC](https://www.ruby-forum.com/t/what-does-without-http-cache-mean/170404 "2009-06-17T12:26:54Z")

</div>

Hi, What does --without-http-cache option mean when compiling Nginx? Is it related with proxy\_store directive or some other things? I could not find any explicit docs about this. Thank you in advance.

---

## [Need to serve multiple directories/drives on windows](https://www.ruby-forum.com/t/need-to-serve-multiple-directories-drives-on-windows/170372)

<div class="topic-metadata">

**Author:** [@dwatrous](https://www.ruby-forum.com/u/dwatrous)\
**Replies:** 8\
**Last updated:** [June 17, 2009, 2:27am UTC](https://www.ruby-forum.com/t/need-to-serve-multiple-directories-drives-on-windows/170372 "2009-06-17T02:27:27Z")

</div>

Hello, I’m interested in moving from Apache to nginx. What I’m doing with Apache right now is serve files from multiple drives on windows. For each drive I have a Directory entry in the httpd.conf and also an Alias …

---

## [Compile pronlem with old centosls](https://www.ruby-forum.com/t/compile-pronlem-with-old-centosls/170294)

<div class="topic-metadata">

**Author:** [@amichelin](https://www.ruby-forum.com/u/amichelin)\
**Replies:** 18\
**Last updated:** [June 17, 2009, 12:06am UTC](https://www.ruby-forum.com/t/compile-pronlem-with-old-centosls/170294 "2009-06-17T00:06:30Z")

</div>

I don’t know what is wrong, and couldn’t find anything about it by googling. Any ideas? \[root@s164 nginx-0.8.1\]# ./configure checking for OS Linux 2.6.9-34.ELsmp i686 checking for C compiler … found using GNU C co…

---

## [No input file specified by FastCGI](https://www.ruby-forum.com/t/no-input-file-specified-by-fastcgi/170357)

<div class="topic-metadata">

**Author:** [@meal](https://www.ruby-forum.com/u/meal)\
**Replies:** 8\
**Last updated:** [June 16, 2009, 6:46pm UTC](https://www.ruby-forum.com/t/no-input-file-specified-by-fastcgi/170357 "2009-06-16T18:46:14Z")

</div>

Hi, We have our own framework written in PHP, but it’s using .html extension (and change of this is not possible). So when I put appropriate block in config, part of site is working, but few rewrites is not. here is…

---

## [Space in URI](https://www.ruby-forum.com/t/space-in-uri/170360)

<div class="topic-metadata">

**Author:** [@JSSSSrSSSSme\_Loyet](https://www.ruby-forum.com/u/JSSSSrSSSSme_Loyet)\
**Replies:** 1\
**Last updated:** [June 16, 2009, 5:01pm UTC](https://www.ruby-forum.com/t/space-in-uri/170360 "2009-06-16T17:01:09Z")

</div>

hi igor, I have those kind of error logs : 2009/06/16 16:08:51 \[info\] 19293#0: \*179 client sent invalid request while reading client request line, client: 1.1.1.1, server: www.sample.org, request: “GET / recherche.p…

---

## [RewriteCond for HTTP header](https://www.ruby-forum.com/t/rewritecond-for-http-header/170287)

<div class="topic-metadata">

**Author:** [@polarapfel](https://www.ruby-forum.com/u/polarapfel)\
**Replies:** 4\
**Last updated:** [June 16, 2009, 8:51am UTC](https://www.ruby-forum.com/t/rewritecond-for-http-header/170287 "2009-06-16T08:51:46Z")

</div>

Hi Group, I am using several rewrite conditions and rules in nginx, but I am not able how to translate the following Apache condition to nginx: RewriteCond %{HTTP:X-ISSSL} !^TRUE$ Any help highly appreciated. Thanks…

---

## [How to secure downloading mp3 or flv files in nginx](https://www.ruby-forum.com/t/how-to-secure-downloading-mp3-or-flv-files-in-nginx/170274)

<div class="topic-metadata">

**Author:** [@XUFENG](https://www.ruby-forum.com/u/XUFENG)\
**Replies:** 8\
**Last updated:** [June 15, 2009, 5:40pm UTC](https://www.ruby-forum.com/t/how-to-secure-downloading-mp3-or-flv-files-in-nginx/170274 "2009-06-15T17:40:14Z")

</div>

Hi all, Can nginx achieve this goal? On my php page,I give the url to my mp3 file in this format http://mp3.example.com/a.mp3?key=time() then this request will go to nginx,can nginx do something like compare the uri…

---

## [Nginx-0.7.60](https://www.ruby-forum.com/t/nginx-0-7-60/170278)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 5\
**Last updated:** [June 15, 2009, 2:02pm UTC](https://www.ruby-forum.com/t/nginx-0-7-60/170278 "2009-06-15T14:02:44Z")

</div>

Changes with nginx 0.7.60 15 Jun 2009 \*) Feature: the "updating" parameter in "proxy\_cache\_use\_stale" and "fastcgi\_cache\_use\_stale" directives. \*) Feature: the "keepalive\_requ…

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

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