# Server

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

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

---

## [Fastcgi problem](https://www.ruby-forum.com/t/fastcgi-problem/160950)

<div class="topic-metadata">

**Author:** [@Paul\_van\_der\_Linden](https://www.ruby-forum.com/u/Paul_van_der_Linden)\
**Replies:** 6\
**Last updated:** [February 23, 2009, 2:13pm UTC](https://www.ruby-forum.com/t/fastcgi-problem/160950 "2009-02-23T14:13:04Z")

</div>

I was trying to install moin on fastcgi with nginx. The problem is I only see the front page of the moin wiki, and any other url don’t seem to make its way through nginx to the fastcgi process. It just displays the de…

---

## [A more general substitution filter module](https://www.ruby-forum.com/t/a-more-general-substitution-filter-module/159394)

<div class="topic-metadata">

**Author:** [@yaoweibin](https://www.ruby-forum.com/u/yaoweibin)\
**Replies:** 1\
**Last updated:** [February 23, 2009, 11:20am UTC](https://www.ruby-forum.com/t/a-more-general-substitution-filter-module/159394 "2009-02-23T11:20:50Z")

</div>

nginx\_substitutions\_filter nginx\_substitutions\_filter is a filter module which can do both regular expression and fixed string substitutions on response bodies. This module is quite different from the Nginx’s Substit…

---

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

<div class="topic-metadata">

**Author:** [@bigbet](https://www.ruby-forum.com/u/bigbet)\
**Replies:** 1\
**Last updated:** [February 23, 2009, 10:55am UTC](https://www.ruby-forum.com/t/how-to-rewrite-this-apache-to-nginx/161064 "2009-02-23T10:55:10Z")

</div>

RewriteEngine On Options +Followsymlinks RewriteBase / RewriteCond %{REQUEST\_FILENAME} -d RewriteRule ^.\* - \[L,QSA\] RewriteCond %{REQUEST\_FILENAME} !-f RewriteRule ^./images/(.)$ /images/$1 \[L\]

---

## [Nginx does not allow multiple lines in a header value?](https://www.ruby-forum.com/t/nginx-does-not-allow-multiple-lines-in-a-header-value/161072)

<div class="topic-metadata">

**Author:** [@addywaddy](https://www.ruby-forum.com/u/addywaddy)\
**Replies:** 0\
**Last updated:** [February 23, 2009, 6:31am UTC](https://www.ruby-forum.com/t/nginx-does-not-allow-multiple-lines-in-a-header-value/161072 "2009-02-23T06:31:25Z")

</div>

hey folks, I ran into a funny issue with nginx when working on accepting oauth calls. Nginx is stripping the authorization header out if the field value contains newlines. Http 1.1 guidelines state that this is val…

---

## [I hope the codes can compiled under MingW](https://www.ruby-forum.com/t/i-hope-the-codes-can-compiled-under-mingw/160548)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [February 23, 2009, 3:15am UTC](https://www.ruby-forum.com/t/i-hope-the-codes-can-compiled-under-mingw/160548 "2009-02-23T03:15:54Z")

</div>

Subject: I hope the codes can compiled under MingWDate: Wed, 18 Feb 2009 00:06:15 +0800 Cause MingW will compile the codes to native banary,I hope some day I can get this kind of code.I think it’s better than the one …

---

## [Need help optimizing nginx to redirect from HTTP/80 to HTTPS/443](https://www.ruby-forum.com/t/need-help-optimizing-nginx-to-redirect-from-http-80-to-https-443/161022)

<div class="topic-metadata">

**Author:** [@larios](https://www.ruby-forum.com/u/larios)\
**Replies:** 2\
**Last updated:** [February 22, 2009, 3:19pm UTC](https://www.ruby-forum.com/t/need-help-optimizing-nginx-to-redirect-from-http-80-to-https-443/161022 "2009-02-22T15:19:17Z")

</div>

I am trying to optimize Nginx (Nginx/0.6.35 + Ubuntu 8.10) to redirect from HTTP/80 to HTTPS/443 I.e., any calls made to: http://pma.clinicacgm.0/ , should go into: https://pma.clinicacgm.0/ Could you review the be…

---

## [Nginx-0.7.36](https://www.ruby-forum.com/t/nginx-0-7-36/160946)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 10\
**Last updated:** [February 22, 2009, 4:19am UTC](https://www.ruby-forum.com/t/nginx-0-7-36/160946 "2009-02-22T04:19:33Z")

</div>

Changes with nginx 0.7.36 21 Feb 2009 \*) Feature: a preliminary IPv6 support; the "listen" directive of the HTTP module supports IPv6. \*) Bugfix: the $ancient\_browser variable…

---

## [Send custom 404 error without changing page](https://www.ruby-forum.com/t/send-custom-404-error-without-changing-page/160978)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 1\
**Last updated:** [February 21, 2009, 8:05pm UTC](https://www.ruby-forum.com/t/send-custom-404-error-without-changing-page/160978 "2009-02-21T20:05:37Z")

</div>

What is the best way to send a custom 404 error to the browser without it changing the URL on the user? For instance I currently have this: error\_page 404 /404.php; But then the URL in their browser is http:…

---

## [Nginx-0.7.37](https://www.ruby-forum.com/t/nginx-0-7-37/160965)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 0\
**Last updated:** [February 21, 2009, 4:00pm UTC](https://www.ruby-forum.com/t/nginx-0-7-37/160965 "2009-02-21T16:00:10Z")

</div>

Changes with nginx 0.7.37 21 Feb 2009 \*) Bugfix: directive using upstreams did not work; the bug had appeared in 0.7.36.

---

## [Make nginx only listen to localhost](https://www.ruby-forum.com/t/make-nginx-only-listen-to-localhost/160951)

<div class="topic-metadata">

**Author:** [@Gendouki\_Office](https://www.ruby-forum.com/u/Gendouki_Office)\
**Replies:** 5\
**Last updated:** [February 21, 2009, 2:43pm UTC](https://www.ruby-forum.com/t/make-nginx-only-listen-to-localhost/160951 "2009-02-21T14:43:52Z")

</div>

I am trying to make nginx only accessible by localhost:8080 i have tried doing server { listen 127.0.0.1:8080; server\_name \_; … however it still accepts requests from external ip’s how can i stop this? i ha…

---

## [Location workflow question](https://www.ruby-forum.com/t/location-workflow-question/160931)

<div class="topic-metadata">

**Author:** [@euhost.netSmatevz](https://www.ruby-forum.com/u/euhost.netSmatevz)\
**Replies:** 3\
**Last updated:** [February 21, 2009, 10:00am UTC](https://www.ruby-forum.com/t/location-workflow-question/160931 "2009-02-21T10:00:54Z")

</div>

Hello i have here a configuration, where a request to /forum/viewforum-18-bla.php is not parsed by php. My Question is: why doesnt the “location ~ .php$” get’s executed after the “location ^~ /forum/” is finished? s…

---

## [Secure nginx](https://www.ruby-forum.com/t/secure-nginx/160917)

<div class="topic-metadata">

**Author:** [@uddun](https://www.ruby-forum.com/u/uddun)\
**Replies:** 3\
**Last updated:** [February 21, 2009, 8:20am UTC](https://www.ruby-forum.com/t/secure-nginx/160917 "2009-02-21T08:20:13Z")

</div>

Is there some specific parameters that are used to lock down nginx for example that might prevent sql injection or css attacks. I have read “Apache Security” and “Preventing Apache Web Attacks” but not quite sure how …

---

## [Dovecot, POP and IMAP](https://www.ruby-forum.com/t/dovecot-pop-and-imap/160618)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 3\
**Last updated:** [February 21, 2009, 3:44am UTC](https://www.ruby-forum.com/t/dovecot-pop-and-imap/160618 "2009-02-21T03:44:10Z")

</div>

Hello, How to setup nginx with Dovecot POP and IMAP also IMAP SSL, exim SMTP support on cPanel server? Should I configure the Mail Core module? Thanks in advance.

---

## [Nginx max connections](https://www.ruby-forum.com/t/nginx-max-connections/160615)

<div class="topic-metadata">

**Author:** [@Swish](https://www.ruby-forum.com/u/Swish)\
**Replies:** 5\
**Last updated:** [February 21, 2009, 3:37am UTC](https://www.ruby-forum.com/t/nginx-max-connections/160615 "2009-02-21T03:37:42Z")

</div>

Is there any method to tell if Nginx is hitting max connections, other than getting a request timeout? Will anything appear in the logs? I ask for tuning purposes to get the optimal number of worker\_processes and wor…

---

## [Need help configuring a rails app (redmine)](https://www.ruby-forum.com/t/need-help-configuring-a-rails-app-redmine/160924)

<div class="topic-metadata">

**Author:** [@pelletiermaxime](https://www.ruby-forum.com/u/pelletiermaxime)\
**Replies:** 0\
**Last updated:** [February 21, 2009, 12:00am UTC](https://www.ruby-forum.com/t/need-help-configuring-a-rails-app-redmine/160924 "2009-02-21T00:00:46Z")

</div>

Hi, I’m trying to configure nginx to be able to use redmine at http://myurl.ca/redmine and I can’t figure out how to do it. After trying things for a few hours, I put my config over at port 81 and it’s working correc…

---

## [Mongrel as a Windows Service (not running Rails)](https://www.ruby-forum.com/t/mongrel-as-a-windows-service-not-running-rails/160790)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 3\
**Last updated:** [February 20, 2009, 7:31pm UTC](https://www.ruby-forum.com/t/mongrel-as-a-windows-service-not-running-rails/160790 "2009-02-20T19:31:11Z")

</div>

Hi, I hope you can help me with this. I have implemented a simple web app on top of Mongrel and now I need to run it as a Windows Service. I explored the mongrel\_service gem and it looks like I will need an executable…

---

## [How can I disable the rails logging in development?](https://www.ruby-forum.com/t/how-can-i-disable-the-rails-logging-in-development/160861)

<div class="topic-metadata">

**Author:** [@roallen](https://www.ruby-forum.com/u/roallen)\
**Replies:** 1\
**Last updated:** [February 20, 2009, 4:29pm UTC](https://www.ruby-forum.com/t/how-can-i-disable-the-rails-logging-in-development/160861 "2009-02-20T16:29:40Z")

</div>

I can’t seem to disable rails logging when using Mongrel. Any fix for this? Also unanswered on the Rails forum: http://www.ruby-forum.com/topic/109422#784596 Re: how can I disable the SQL logging which occurs in dev…

---

## [New third party module: GeoIP](https://www.ruby-forum.com/t/new-third-party-module-geoip/160461)

<div class="topic-metadata">

**Author:** [@spilgames](https://www.ruby-forum.com/u/spilgames)\
**Replies:** 2\
**Last updated:** [February 20, 2009, 3:47pm UTC](https://www.ruby-forum.com/t/new-third-party-module-geoip/160461 "2009-02-20T15:47:34Z")

</div>

The Nginx GeoIP module is based on the original Geo module, the difference being that it is not being controlled by a piece of config, but makes use of the MaxMind GeoIP binary API natively. It provides for fast looku…

---

## [Linux ps reports mongrel as \[ruby18\]](https://www.ruby-forum.com/t/linux-ps-reports-mongrel-as-ruby18/160609)

<div class="topic-metadata">

**Author:** [@devtheo](https://www.ruby-forum.com/u/devtheo)\
**Replies:** 1\
**Last updated:** [February 20, 2009, 2:41pm UTC](https://www.ruby-forum.com/t/linux-ps-reports-mongrel-as-ruby18/160609 "2009-02-20T14:41:36Z")

</div>

I’m running two sets of mongrels using mongrel 1.1.4, one for production one for staging. When executing ‘ps’ from a linux shell, the production mongrels report as expected, however the staging processes are listed as …

---

## [Bug report: nginx \< apache+mod\_svn](https://www.ruby-forum.com/t/bug-report-nginx-apache-mod-svn/160856)

<div class="topic-metadata">

**Author:** [@Phillip\_B\_Oldham](https://www.ruby-forum.com/u/Phillip_B_Oldham)\
**Replies:** 0\
**Last updated:** [February 20, 2009, 11:59am UTC](https://www.ruby-forum.com/t/bug-report-nginx-apache-mod-svn/160856 "2009-02-20T11:59:11Z")

</div>

Had an odd bug running nginx with versions 0.7.26 & 0.7.35 while proxying through to apache+mod\_svn. SVN clients were returning the following: |svn: REPORT request failed on ‘/repo/!svn/vcc/default’ svn: REPORT of ‘/…

---

## [Self-signed certificates for nginx](https://www.ruby-forum.com/t/self-signed-certificates-for-nginx/160773)

<div class="topic-metadata">

**Author:** [@sovok](https://www.ruby-forum.com/u/sovok)\
**Replies:** 4\
**Last updated:** [February 20, 2009, 11:01am UTC](https://www.ruby-forum.com/t/self-signed-certificates-for-nginx/160773 "2009-02-20T11:01:46Z")

</div>

Does anyone know how to generate self-signed certificate for nginx? maybe even with wildcard or for multiple subdomains?! I mean the openssl command, if possible. Thanks!

---

## [Nginx involvement is a cms infrastructure](https://www.ruby-forum.com/t/nginx-involvement-is-a-cms-infrastructure/160814)

<div class="topic-metadata">

**Author:** [@Atif\_G](https://www.ruby-forum.com/u/Atif_G)\
**Replies:** 0\
**Last updated:** [February 19, 2009, 10:54pm UTC](https://www.ruby-forum.com/t/nginx-involvement-is-a-cms-infrastructure/160814 "2009-02-19T22:54:27Z")

</div>

Deal all, Since I was begging for answers in “Server optimizations for php” thread and now have gone through some of it, I would like to share some of the details. The goal was to move away from a apache+mod\_php to n…

---

## [Rewriting $request\_filename](https://www.ruby-forum.com/t/rewriting-request-filename/160711)

<div class="topic-metadata">

**Author:** [@WSandrew\_L](https://www.ruby-forum.com/u/WSandrew_L)\
**Replies:** 1\
**Last updated:** [February 19, 2009, 4:58pm UTC](https://www.ruby-forum.com/t/rewriting-request-filename/160711 "2009-02-19T16:58:01Z")

</div>

I have two rails applications running on one domain. I need to modify the $request\_filename under the location /signup so static assets for my signup app are served by nginx, and not mongrel (which does currently work…

---

## [Event-driven handler](https://www.ruby-forum.com/t/event-driven-handler/160587)

<div class="topic-metadata">

**Author:** [@kastorilo](https://www.ruby-forum.com/u/kastorilo)\
**Replies:** 14\
**Last updated:** [February 19, 2009, 2:13pm UTC](https://www.ruby-forum.com/t/event-driven-handler/160587 "2009-02-19T14:13:43Z")

</div>

Hi, I’m trying to develop a handler for Nginx. I want to do this: (1) Request comes in to Nginx (2) This is passed on to handler (3) Handler sends request to other code (either a new thread or some event-driven sys…

---

## [Can nginx work with multiple certificates](https://www.ruby-forum.com/t/can-nginx-work-with-multiple-certificates/160753)

<div class="topic-metadata">

**Author:** [@sovok](https://www.ruby-forum.com/u/sovok)\
**Replies:** 4\
**Last updated:** [February 19, 2009, 12:59pm UTC](https://www.ruby-forum.com/t/can-nginx-work-with-multiple-certificates/160753 "2009-02-19T12:59:10Z")

</div>

I have multiple subdomains and domains, but only one IP address. Can nginx work with this subdomains and domain on ssl and of course different certificates without having multiple IP addresses and/or different ports?

---

## [How to correctly restart nginx?](https://www.ruby-forum.com/t/how-to-correctly-restart-nginx/160617)

<div class="topic-metadata">

**Author:** [@max](https://www.ruby-forum.com/u/max)\
**Replies:** 8\
**Last updated:** [February 19, 2009, 1:08am UTC](https://www.ruby-forum.com/t/how-to-correctly-restart-nginx/160617 "2009-02-19T01:08:44Z")

</div>

Hello, I got some problem to restart nginx. I am running RHEL5 and using 0.6.33 rpm version.I changed some rewrite rules in nginx.conf and want to restart it. When I tried : /etc/init.d/nginx restart It will only …

---

## [Need more details about max\_fails and fail\_timeout](https://www.ruby-forum.com/t/need-more-details-about-max-fails-and-fail-timeout/160623)

<div class="topic-metadata">

**Author:** [@Sun\_Yijiang](https://www.ruby-forum.com/u/Sun_Yijiang)\
**Replies:** 2\
**Last updated:** [February 18, 2009, 9:28pm UTC](https://www.ruby-forum.com/t/need-more-details-about-max-fails-and-fail-timeout/160623 "2009-02-18T21:28:08Z")

</div>

Hi, I’m new to nginx, spent a morning reading nginx documentation. I’m still not clear how nginx determines the status of upstream servers. Let’s say we have some upstream servers, all set to max\_fails=3 and fail\_…

---

## [SSL Questions](https://www.ruby-forum.com/t/ssl-questions/160626)

<div class="topic-metadata">

**Author:** [@alanwatts](https://www.ruby-forum.com/u/alanwatts)\
**Replies:** 5\
**Last updated:** [February 18, 2009, 4:07pm UTC](https://www.ruby-forum.com/t/ssl-questions/160626 "2009-02-18T16:07:57Z")

</div>

Good day one and all. I would like to ask some specific SSL questions that I am sure will be easy enough. SSL has the requirement that only certificate can be loaded per IP address. With that in mind can nginx han…

---

## [Stupid newbie question (PHP's document\_root in nginx and apache)](https://www.ruby-forum.com/t/stupid-newbie-question-phps-document-root-in-nginx-and-apache/160586)

<div class="topic-metadata">

**Author:** [@Nuno\_MagalhSSSSes](https://www.ruby-forum.com/u/Nuno_MagalhSSSSes)\
**Replies:** 4\
**Last updated:** [February 18, 2009, 2:58pm UTC](https://www.ruby-forum.com/t/stupid-newbie-question-phps-document-root-in-nginx-and-apache/160586 "2009-02-18T14:58:47Z")

</div>

Hi, Nginx is working fine for me, serves PHP through fast-cgi, all is cool. But, the code i working on runs both on nginx and apache, so i’m running into trouble. Specificaly, using this PHP-code: \<?php print "docum…

---

## [Nginx with Wordpress and keepalive](https://www.ruby-forum.com/t/nginx-with-wordpress-and-keepalive/160640)

<div class="topic-metadata">

**Author:** [@sovok](https://www.ruby-forum.com/u/sovok)\
**Replies:** 2\
**Last updated:** [February 18, 2009, 1:56pm UTC](https://www.ruby-forum.com/t/nginx-with-wordpress-and-keepalive/160640 "2009-02-18T13:56:49Z")

</div>

I run nginx 0.6.35 with php-fpm and have a blog using Wordpress. I dont know which is better, to use keepalive or not. Current settings are keepalive = 0 (meaning off), but is that a good idea?! Please let me know, t…

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

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