# Server

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

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

---

## [Do you put all your virtual host info in nginx.conf?](https://www.ruby-forum.com/t/do-you-put-all-your-virtual-host-info-in-nginx-conf/160616)

<div class="topic-metadata">

**Author:** [@max](https://www.ruby-forum.com/u/max)\
**Replies:** 9\
**Last updated:** [February 18, 2009, 9:32am UTC](https://www.ruby-forum.com/t/do-you-put-all-your-virtual-host-info-in-nginx-conf/160616 "2009-02-18T09:32:10Z")

</div>

Hello, Do you put all your virtual host info in nginx.conf? Since I got a lot of virtual hosts, if I put all of them into nginx.conf, I found it’s rather big. Just want to know what’s the best practice to handle many…

---

## [URL Rewrite issue](https://www.ruby-forum.com/t/url-rewrite-issue/160593)

<div class="topic-metadata">

**Author:** [@jngo](https://www.ruby-forum.com/u/jngo)\
**Replies:** 0\
**Last updated:** [February 18, 2009, 1:36am UTC](https://www.ruby-forum.com/t/url-rewrite-issue/160593 "2009-02-18T01:36:36Z")

</div>

I had this structure in Apache, which would still load the recipes.php file. http://www.amishrecipes.net/recipes.php/18/Amish-Friendship-Bread/ In Nginx I have it proxing to fastcgi, but I dont know how to get it to …

---

## [Mail config auth\_http](https://www.ruby-forum.com/t/mail-config-auth-http/160582)

<div class="topic-metadata">

**Author:** [@ilovenginx](https://www.ruby-forum.com/u/ilovenginx)\
**Replies:** 1\
**Last updated:** [February 18, 2009, 1:34am UTC](https://www.ruby-forum.com/t/mail-config-auth-http/160582 "2009-02-18T01:34:18Z")

</div>

Hello Is there a way to do the following mail { auth\_http auth.$HTTP\_DOMAIN/auth/pop?; pop3\_capabilities “TOP” “UIDL” “USER”; server{ listen 995; protocol pop3; proxy on; ssl on; ssl\_certificate /dir/to/ssl.crt;…

---

## [Nginx rewrite](https://www.ruby-forum.com/t/nginx-rewrite/160398)

<div class="topic-metadata">

**Author:** [@uddun](https://www.ruby-forum.com/u/uddun)\
**Replies:** 5\
**Last updated:** [February 17, 2009, 11:10pm UTC](https://www.ruby-forum.com/t/nginx-rewrite/160398 "2009-02-17T23:10:11Z")

</div>

How would you use regx in nginx for this: RewriteCond %{QUERY\_STRING} ^$ \[OR\] %{REQUEST\_URI} ^/Special:Search RewriteRule ^/(.\*)$ /index.php?title=$1 \[L,QSA,NE\] I’m not sure to how to do this? Thanks For the Help

---

## [Rewrite Rules](https://www.ruby-forum.com/t/rewrite-rules/160541)

<div class="topic-metadata">

**Author:** [@uddun](https://www.ruby-forum.com/u/uddun)\
**Replies:** 2\
**Last updated:** [February 17, 2009, 8:07pm UTC](https://www.ruby-forum.com/t/rewrite-rules/160541 "2009-02-17T20:07:28Z")

</div>

Are the rewrite rules processed in the order they are listed in the nginx.conf file or does nginx put them in the correct order when nginx is started up? Thanks

---

## [Proxy\_pass and sub\_filter?](https://www.ruby-forum.com/t/proxy-pass-and-sub-filter/160478)

<div class="topic-metadata">

**Author:** [@gzfelix](https://www.ruby-forum.com/u/gzfelix)\
**Replies:** 1\
**Last updated:** [February 17, 2009, 12:07am UTC](https://www.ruby-forum.com/t/proxy-pass-and-sub-filter/160478 "2009-02-17T00:07:12Z")

</div>

Hi, I have a special use case to employ sub\_filter to alter the content from an upstream server by proxy\_pass. Here is my minimal nginx.conf: ############# user www-data www-data; worker\_processes 4; events { use …

---

## ["down for maintenance" plugin?](https://www.ruby-forum.com/t/down-for-maintenance-plugin/160433)

<div class="topic-metadata">

**Author:** [@Phillip\_B\_Oldham](https://www.ruby-forum.com/u/Phillip_B_Oldham)\
**Replies:** 7\
**Last updated:** [February 16, 2009, 9:06pm UTC](https://www.ruby-forum.com/t/down-for-maintenance-plugin/160433 "2009-02-16T21:06:25Z")

</div>

I seem to remember there was a plugin for nginx would bypass all requests and issue a single “down for maintenance” response, until a certain file was removed/renamed. I can’t find it on the wiki though. Was I imagin…

---

## [Nginx-0.7.35](https://www.ruby-forum.com/t/nginx-0-7-35/160449)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 1\
**Last updated:** [February 16, 2009, 5:17pm UTC](https://www.ruby-forum.com/t/nginx-0-7-35/160449 "2009-02-16T17:17:19Z")

</div>

Changes with nginx 0.7.35 16 Feb 2009 \*) Bugfix: a "ssl\_engine" directive did not use a SSL-accelerator for asymmetric ciphers. Thanks to Marcin Gozdalik. \*) Bugfix: a "try\_f…

---

## [Is it possible with nginx?](https://www.ruby-forum.com/t/is-it-possible-with-nginx/160400)

<div class="topic-metadata">

**Author:** [@wpvanpaassen](https://www.ruby-forum.com/u/wpvanpaassen)\
**Replies:** 10\
**Last updated:** [February 16, 2009, 2:09pm UTC](https://www.ruby-forum.com/t/is-it-possible-with-nginx/160400 "2009-02-16T14:09:58Z")

</div>

I would like to delegate dedicated server for hosting static files for some of my websites. For example i have got domains web1.com, web2.com and web34.com on first server. On second server I have got domain files.com.…

---

## [0.5 stable questions](https://www.ruby-forum.com/t/0-5-stable-questions/160277)

<div class="topic-metadata">

**Author:** [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Replies:** 2\
**Last updated:** [February 16, 2009, 12:18am UTC](https://www.ruby-forum.com/t/0-5-stable-questions/160277 "2009-02-16T00:18:43Z")

</div>

Hi, I’ve been running servers based off of Ubuntu 8.04 LTS. Their latest version is 0.5.33-1. Am I missing anything major by using that version? I’m using it to proxy requests to Apache (running Phusion for Rails a…

---

## [LDAP support](https://www.ruby-forum.com/t/ldap-support/160273)

<div class="topic-metadata">

**Author:** [@Michael\_Baudino](https://www.ruby-forum.com/u/Michael_Baudino)\
**Replies:** 2\
**Last updated:** [February 15, 2009, 11:27pm UTC](https://www.ruby-forum.com/t/ldap-support/160273 "2009-02-15T23:27:45Z")

</div>

Hello everyone, I’d like to know if there is any plan to add LDAP support to nginx authentification, either as a core feature, or as a module ? There was a module posted here several months ago, but i don’t know if i…

---

## [Try\_files and content type](https://www.ruby-forum.com/t/try-files-and-content-type/160318)

<div class="topic-metadata">

**Author:** [@xguardiola](https://www.ruby-forum.com/u/xguardiola)\
**Replies:** 3\
**Last updated:** [February 15, 2009, 12:02pm UTC](https://www.ruby-forum.com/t/try-files-and-content-type/160318 "2009-02-15T12:02:48Z")

</div>

Hello, I have an issue with try\_files and content-type ( nginx 0.7.34 ), it doesn’t use the cache file extention to discover the mime.type so if we call a direct file host/sitemap.xml content type is ok, but if I cal…

---

## [Need help with converting this htaccess to nginx rewrite](https://www.ruby-forum.com/t/need-help-with-converting-this-htaccess-to-nginx-rewrite/160298)

<div class="topic-metadata">

**Author:** [@brianzimmer](https://www.ruby-forum.com/u/brianzimmer)\
**Replies:** 8\
**Last updated:** [February 14, 2009, 8:40pm UTC](https://www.ruby-forum.com/t/need-help-with-converting-this-htaccess-to-nginx-rewrite/160298 "2009-02-14T20:40:28Z")

</div>

I'm really interested in utilizing Nginx on my Slicehost account, but my main holdout is understanding how to adjust .htaccess files so that my site can function properly on Nginx. I've made an attempt, but I'm just not…

---

## [Try\_files issue](https://www.ruby-forum.com/t/try-files-issue/160297)

<div class="topic-metadata">

**Author:** [@xguardiola](https://www.ruby-forum.com/u/xguardiola)\
**Replies:** 4\
**Last updated:** [February 14, 2009, 12:51pm UTC](https://www.ruby-forum.com/t/try-files-issue/160297 "2009-02-14T12:51:21Z")

</div>

Hello, I’m trying to use try\_files like this (running 0.7.34) location /users/ { root /home/website/people; set $uroot 1/15/334251/fr.html; try\_files $document\_root/$uroot @django; } Despite the fact that /home/we…

---

## [Sites powered by nginx](https://www.ruby-forum.com/t/sites-powered-by-nginx/160243)

<div class="topic-metadata">

**Author:** [@Dan\_Dascalescu](https://www.ruby-forum.com/u/Dan_Dascalescu)\
**Replies:** 3\
**Last updated:** [February 13, 2009, 12:02pm UTC](https://www.ruby-forum.com/t/sites-powered-by-nginx/160243 "2009-02-13T12:02:32Z")

</div>

I just discovered this site today, AppliedStacks.com. It’s a structured wiki of technologies that power web sites. Was very surprised to find that there were ZERO listings of nginx!

---

## [Upstream Backup Issue](https://www.ruby-forum.com/t/upstream-backup-issue/160220)

<div class="topic-metadata">

**Author:** [@Nathan\_Folkman](https://www.ruby-forum.com/u/Nathan_Folkman)\
**Replies:** 1\
**Last updated:** [February 13, 2009, 11:45am UTC](https://www.ruby-forum.com/t/upstream-backup-issue/160220 "2009-02-13T11:45:48Z")

</div>

Hi, We have the following configuration, running nginx 0.6.34: … upstream frontend { server host\_a; server host\_b; server host\_c; server host\_d; server failover\_host backup; } server { listen 80; server\_name …

---

## [Nginx SSL proxy](https://www.ruby-forum.com/t/nginx-ssl-proxy/160213)

<div class="topic-metadata">

**Author:** [@Pavel\_Ivashkov](https://www.ruby-forum.com/u/Pavel_Ivashkov)\
**Replies:** 2\
**Last updated:** [February 13, 2009, 8:34am UTC](https://www.ruby-forum.com/t/nginx-ssl-proxy/160213 "2009-02-13T08:34:28Z")

</div>

Hello all, I have nginx to reverse proxy SSL site to end users. (And yes, I need SSL on the back-end as well as on the front-end.) The problem is - it is too slow (~200ms overhead per each request). I found this comm…

---

## [Syslog patch for nginx-0.7.34](https://www.ruby-forum.com/t/syslog-patch-for-nginx-0-7-34/160224)

<div class="topic-metadata">

**Author:** [@xguardiola](https://www.ruby-forum.com/u/xguardiola)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 6:01am UTC](https://www.ruby-forum.com/t/syslog-patch-for-nginx-0-7-34/160224 "2009-02-13T06:01:03Z")

</div>

Hello, I adapted Marlon de Boer syslog patch to latest nginx release : http://1cafe.fr/portage/www-servers/nginx/files/syslog-0.7.34.patch Any feedback welcome. xav

---

## [Setting up nginx+fastCGI+SSL+phpMyAdmin w/subdir (not vhost)](https://www.ruby-forum.com/t/setting-up-nginx-fastcgi-ssl-phpmyadmin-w-subdir-not-vhost/160214)

<div class="topic-metadata">

**Author:** [@stefans](https://www.ruby-forum.com/u/stefans)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 1:43am UTC](https://www.ruby-forum.com/t/setting-up-nginx-fastcgi-ssl-phpmyadmin-w-subdir-not-vhost/160214 "2009-02-13T01:43:29Z")

</div>

Hi Folks - I’m trying to set up phpMyAdmin with nginx and SSL on a VPS (virtual private server) - with phpMyAdmin in a subdirectory (instead of a vhost or subdomain) to avoid setting up CNAME records at my VPS hosting …

---

## [SSL engine support bug](https://www.ruby-forum.com/t/ssl-engine-support-bug/160177)

<div class="topic-metadata">

**Author:** [@Marcin\_Gozdalik](https://www.ruby-forum.com/u/Marcin_Gozdalik)\
**Replies:** 2\
**Last updated:** [February 12, 2009, 7:23pm UTC](https://www.ruby-forum.com/t/ssl-engine-support-bug/160177 "2009-02-12T19:23:25Z")

</div>

Hi I believe I found a bug in the order of initialization of OpenSSL. The RSA keys are initialized (RSA\_new called) in SSL\_CTX\_use\_certificate\_chain\_file which is called from ngx\_ssl\_certificate which in turn is cal…

---

## [Error\_page problem - 50x.html](https://www.ruby-forum.com/t/error-page-problem-50x-html/160185)

<div class="topic-metadata">

**Author:** [@yannimac](https://www.ruby-forum.com/u/yannimac)\
**Replies:** 1\
**Last updated:** [February 12, 2009, 6:17pm UTC](https://www.ruby-forum.com/t/error-page-problem-50x-html/160185 "2009-02-12T18:17:20Z")

</div>

I have the following Nginx config: error\_page 500 502 503 504 /50x.html; location = /50x.html { root /my\_rails\_app/public; } I am using mongrel cluster behind Nginx to serve my rails app and everything works …

---

## [Limit\_zone in nginx](https://www.ruby-forum.com/t/limit-zone-in-nginx/160063)

<div class="topic-metadata">

**Author:** [@leojoesdb](https://www.ruby-forum.com/u/leojoesdb)\
**Replies:** 5\
**Last updated:** [February 12, 2009, 1:16pm UTC](https://www.ruby-forum.com/t/limit-zone-in-nginx/160063 "2009-02-12T13:16:38Z")

</div>

Hi, Can I limit particular IP or Domain using limit\_zone? Can anybody give me an example.

---

## [Nginx Wiki down](https://www.ruby-forum.com/t/nginx-wiki-down/159137)

<div class="topic-metadata">

**Author:** [@cliffwiggs](https://www.ruby-forum.com/u/cliffwiggs)\
**Replies:** 4\
**Last updated:** [February 12, 2009, 9:21am UTC](https://www.ruby-forum.com/t/nginx-wiki-down/159137 "2009-02-12T09:21:24Z")

</div>

Hi, I’ve moved the server the wiki resides on to a new colocation facility. As soon as I get all the IP/DNS stuff worked out it will be back up (within a couple hours). Sorry for the inconvenience. Regards, Cliff

---

## [Nginx-0.7.34](https://www.ruby-forum.com/t/nginx-0-7-34/159985)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 6\
**Last updated:** [February 12, 2009, 1:19am UTC](https://www.ruby-forum.com/t/nginx-0-7-34/159985 "2009-02-12T01:19:10Z")

</div>

Changes with nginx 0.7.34 10 Feb 2009 \*) Feature: the "off" parameter of the "if\_modified\_since" directive. \*) Feature: now nginx sends an HELO/EHLO command after a XCLIENT …

---

## [Sharing a mongrel cluster in a multi-url environment](https://www.ruby-forum.com/t/sharing-a-mongrel-cluster-in-a-multi-url-environment/158825)

<div class="topic-metadata">

**Author:** [@john-anes](https://www.ruby-forum.com/u/john-anes)\
**Replies:** 9\
**Last updated:** [February 11, 2009, 8:38pm UTC](https://www.ruby-forum.com/t/sharing-a-mongrel-cluster-in-a-multi-url-environment/158825 "2009-02-11T20:38:37Z")

</div>

I have a 2.2.2 ROR website package that I sell to my clients. After deploying a few instances, I realized that the only difference between the accounts was the client’s URL and the database. It seemed wasteful to have…

---

## [Reading "Accept" header from module](https://www.ruby-forum.com/t/reading-accept-header-from-module/159981)

<div class="topic-metadata">

**Author:** [@Chris\_Farmiloe](https://www.ruby-forum.com/u/Chris_Farmiloe)\
**Replies:** 3\
**Last updated:** [February 11, 2009, 10:52am UTC](https://www.ruby-forum.com/t/reading-accept-header-from-module/159981 "2009-02-11T10:52:30Z")

</div>

Is the “Accept” header content made available on the request struct anywhere? Or if there is an easy way to grab it from the raw headers? … defining NGX\_HTTP\_HEADERS seems to give me unpredictable results when reading…

---

## [Enable Pipelining in 0.6.35](https://www.ruby-forum.com/t/enable-pipelining-in-0-6-35/159918)

<div class="topic-metadata">

**Author:** [@ilovenginx](https://www.ruby-forum.com/u/ilovenginx)\
**Replies:** 5\
**Last updated:** [February 11, 2009, 1:05am UTC](https://www.ruby-forum.com/t/enable-pipelining-in-0-6-35/159918 "2009-02-11T01:05:05Z")

</div>

Hi I did a few searches couldn’t find how to enable it in the stable version. Thanks…

---

## [Mongrel server file descriptor leak?](https://www.ruby-forum.com/t/mongrel-server-file-descriptor-leak/159435)

<div class="topic-metadata">

**Author:** [@jngo](https://www.ruby-forum.com/u/jngo)\
**Replies:** 3\
**Last updated:** [February 10, 2009, 10:07pm UTC](https://www.ruby-forum.com/t/mongrel-server-file-descriptor-leak/159435 "2009-02-10T22:07:51Z")

</div>

Excuse my ignorance for I’m a RoR newby. We have a number of RoR applications running on a server with a cPanel installation. One of the clients sites went belly up with the error message: Errno::EMFILE Too many ope…

---

## [How to block specific IPs with nginx](https://www.ruby-forum.com/t/how-to-block-specific-ips-with-nginx/159619)

<div class="topic-metadata">

**Author:** [@Asif\_A](https://www.ruby-forum.com/u/Asif_A)\
**Replies:** 2\
**Last updated:** [February 10, 2009, 8:53pm UTC](https://www.ruby-forum.com/t/how-to-block-specific-ips-with-nginx/159619 "2009-02-10T20:53:36Z")

</div>

Dear Group, How do I create a block list?. I tried DENY but that does not work well and looks like it is only for blocking access to specific folders. Please advise regards Asif A.

---

## [Mod\_zip 1.1.4](https://www.ruby-forum.com/t/mod-zip-1-1-4/159988)

<div class="topic-metadata">

**Author:** [@Evan\_M](https://www.ruby-forum.com/u/Evan_M)\
**Replies:** 0\
**Last updated:** [February 10, 2009, 6:41pm UTC](https://www.ruby-forum.com/t/mod-zip-1-1-4/159988 "2009-02-10T18:41:46Z")

</div>

mod\_zip is an nginx module that assembles ZIP archives dynamically. Changes in 1.1.4: Feature: Range end is now optional (e.g. “bytes=100-”) (i.e., increased compatibility with download managers) Bugfix: compil…

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

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