# Server

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

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

---

## [Add slash to the end of every url (rewrite rule)](https://www.ruby-forum.com/t/add-slash-to-the-end-of-every-url-rewrite-rule/162871)

<div class="topic-metadata">

**Author:** [@Steffen\_Lindner](https://www.ruby-forum.com/u/Steffen_Lindner)\
**Replies:** 2\
**Last updated:** [March 14, 2009, 9:52pm UTC](https://www.ruby-forum.com/t/add-slash-to-the-end-of-every-url-rewrite-rule/162871 "2009-03-14T21:52:40Z")

</div>

Hi list, i am a little bit lost in rewirt rules / regex. I try to get an “/” to every urls end. For better understanding check this: http://3much.schnickschnack.info/art/projekte If u press on a small thumbnail unde…

---

## [The forum integration](https://www.ruby-forum.com/t/the-forum-integration/162860)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 3\
**Last updated:** [March 14, 2009, 8:23pm UTC](https://www.ruby-forum.com/t/the-forum-integration/162860 "2009-03-14T20:23:36Z")

</div>

Can I go ahead and say that this is getting annoying? It either needs to be transparently integrated or not. Being copied on each forum thread, while I enjoy forums, really does suck. Maybe we can take this offline (C…

---

## [Igor any change auth\_basic\_user\_file can accept the new regex stuff?](https://www.ruby-forum.com/t/igor-any-change-auth-basic-user-file-can-accept-the-new-regex-stuff/162684)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 10\
**Last updated:** [March 14, 2009, 7:32pm UTC](https://www.ruby-forum.com/t/igor-any-change-auth-basic-user-file-can-accept-the-new-regex-stuff/162684 "2009-03-14T19:32:03Z")

</div>

i.e.: location ~\* ^/foo/private/(.\*) { alias /home/foo/web/private/$1/; auth\_basic “Restricted files”; auth\_basic\_user\_file /home/foo/web/private/$1/.htpasswd; } Thank you so much for your time and effort in nginx!…

---

## [Starting nginx: 2009/03/13 15:26:32 4382#0: unknown log format "main"](https://www.ruby-forum.com/t/starting-nginx-2009-03-13-1532-4382-0-unknown-log-format-main/162811)

<div class="topic-metadata">

**Author:** [@Payam\_C](https://www.ruby-forum.com/u/Payam_C)\
**Replies:** 2\
**Last updated:** [March 14, 2009, 5:06pm UTC](https://www.ruby-forum.com/t/starting-nginx-2009-03-13-1532-4382-0-unknown-log-format-main/162811 "2009-03-14T17:06:34Z")

</div>

Hi Guys, Im using the latest nginx 4. Here is the error that I am getting: Starting nginx: 2009/03/13 15:19:55 \[emerg\] 4378#0: unknown log format “main” in /etc/nginx/sites-enabled/p1/payam\_70.33.253.5.conf:21 My Ma…

---

## [How to... - tiered failover?](https://www.ruby-forum.com/t/how-to-tiered-failover/162856)

<div class="topic-metadata">

**Author:** [@Nginx\_Forum](https://www.ruby-forum.com/u/Nginx_Forum)\
**Replies:** 0\
**Last updated:** [March 14, 2009, 4:55pm UTC](https://www.ruby-forum.com/t/how-to-tiered-failover/162856 "2009-03-14T16:55:59Z")

</div>

From “tiered failover?” at http://forum.nginx.org/showthread.php?t=14 I have a setup like this: nginx → http cache → site || remote site I want nginx to ALWAYS proxy to the cache, but if and only if the cache is …

---

## [How to... - how to use variable in sub\_filter and SSI?](https://www.ruby-forum.com/t/how-to-how-to-use-variable-in-sub-filter-and-ssi/162853)

<div class="topic-metadata">

**Author:** [@Nginx\_Forum](https://www.ruby-forum.com/u/Nginx_Forum)\
**Replies:** 0\
**Last updated:** [March 14, 2009, 3:33pm UTC](https://www.ruby-forum.com/t/how-to-how-to-use-variable-in-sub-filter-and-ssi/162853 "2009-03-14T15:33:20Z")

</div>

From “how to use variable in sub\_filter and SSI?” at http://forum.nginx.org/showthread.php?t=12 I’m a newbie to nginx. I want to use a cookie varaible to change a string in html body. nginx.conf set $path "";…

---

## [Wrong site displayed--seemingly randomly](https://www.ruby-forum.com/t/wrong-site-displayed-seemingly-randomly/162793)

<div class="topic-metadata">

**Author:** [@Chris\_Cortese](https://www.ruby-forum.com/u/Chris_Cortese)\
**Replies:** 2\
**Last updated:** [March 14, 2009, 2:23pm UTC](https://www.ruby-forum.com/t/wrong-site-displayed-seemingly-randomly/162793 "2009-03-14T14:23:00Z")

</div>

I moved my sites over to a new server and a new install of nginx-0.7.40 a couple days ago. I noticed once 2 days ago that I went to one domain and one of my other sites showed up. I thought this must be something st…

---

## [How to... - nginx config to serve static files](https://www.ruby-forum.com/t/how-to-nginx-config-to-serve-static-files/162837)

<div class="topic-metadata">

**Author:** [@Nginx\_Forum](https://www.ruby-forum.com/u/Nginx_Forum)\
**Replies:** 0\
**Last updated:** [March 14, 2009, 11:07am UTC](https://www.ruby-forum.com/t/how-to-nginx-config-to-serve-static-files/162837 "2009-03-14T11:07:57Z")

</div>

From “nginx config to serve static files” at http://forum.nginx.org/showthread.php?t=11 —Quote (Originally by jpartogi)— Hi guys. Thanks for replying. I’m almost there now. Now I can access the directory, but when …

---

## [How to... - nginx config to serve static files](https://www.ruby-forum.com/t/how-to-nginx-config-to-serve-static-files/162833)

<div class="topic-metadata">

**Author:** [@Nginx\_Forum](https://www.ruby-forum.com/u/Nginx_Forum)\
**Replies:** 0\
**Last updated:** [March 14, 2009, 9:40am UTC](https://www.ruby-forum.com/t/how-to-nginx-config-to-serve-static-files/162833 "2009-03-14T09:40:46Z")

</div>

From “nginx config to serve static files” at http://forum.nginx.org/showthread.php?t=11 —Quote (Originally by edogawaconan)— the root sets the root, so when accessing 72.14.185.215/media with root set to /var/www/me…

---

## [How to... - nginx config to serve static files](https://www.ruby-forum.com/t/how-to-nginx-config-to-serve-static-files/162825)

<div class="topic-metadata">

**Author:** [@Nginx\_Forum](https://www.ruby-forum.com/u/Nginx_Forum)\
**Replies:** 0\
**Last updated:** [March 14, 2009, 7:09am UTC](https://www.ruby-forum.com/t/how-to-nginx-config-to-serve-static-files/162825 "2009-03-14T07:09:23Z")

</div>

From “nginx config to serve static files” at http://forum.nginx.org/showthread.php?t=11 the root sets the root, so when accessing domain.tld/media with root set to /var/www/media, it’ll try to access /var/www/media/m…

---

## [How to... - nginx config to serve static files](https://www.ruby-forum.com/t/how-to-nginx-config-to-serve-static-files/162823)

<div class="topic-metadata">

**Author:** [@Nginx\_Forum](https://www.ruby-forum.com/u/Nginx_Forum)\
**Replies:** 0\
**Last updated:** [March 14, 2009, 6:36am UTC](https://www.ruby-forum.com/t/how-to-nginx-config-to-serve-static-files/162823 "2009-03-14T06:36:40Z")

</div>

From “nginx config to serve static files” at http://forum.nginx.org/showthread.php?t=11 The root should be a directory. Posted by blargman

---

## [How to... - nginx config to serve static files](https://www.ruby-forum.com/t/how-to-nginx-config-to-serve-static-files/162822)

<div class="topic-metadata">

**Author:** [@Nginx\_Forum](https://www.ruby-forum.com/u/Nginx_Forum)\
**Replies:** 0\
**Last updated:** [March 14, 2009, 6:29am UTC](https://www.ruby-forum.com/t/how-to-nginx-config-to-serve-static-files/162822 "2009-03-14T06:29:40Z")

</div>

From “nginx config to serve static files” at http://forum.nginx.org/showthread.php?t=11 Dear all, I currently have setupped my nginx to be able to serve static files. The snippets is as such: Code: server { liste…

---

## [Rewrite for javascript files.. again, fire on live site](https://www.ruby-forum.com/t/rewrite-for-javascript-files-again-fire-on-live-site/162516)

<div class="topic-metadata">

**Author:** [@Chris\_Cortese](https://www.ruby-forum.com/u/Chris_Cortese)\
**Replies:** 10\
**Last updated:** [March 13, 2009, 9:42pm UTC](https://www.ruby-forum.com/t/rewrite-for-javascript-files-again-fire-on-live-site/162516 "2009-03-13T21:42:04Z")

</div>

Hello, Somehow my rewrite for Javascript got broken again. I’ve tried every possible combination of things I can think of. What I need is: orig URL: http://mysite.com/javascript/fileA.js,fileB.js,fileC.js …becomes…

---

## [Re: wrong site displayed--seemingly randomly](https://www.ruby-forum.com/t/re-wrong-site-displayed-seemingly-randomly/162795)

<div class="topic-metadata">

**Author:** [@joviyach](https://www.ruby-forum.com/u/joviyach)\
**Replies:** 0\
**Last updated:** [March 13, 2009, 8:46pm UTC](https://www.ruby-forum.com/t/re-wrong-site-displayed-seemingly-randomly/162795 "2009-03-13T20:46:22Z")

</div>

This happened with me a short time ago on a new server. If your site config files include: listen domain.tld; try changing them to: listen 80; or listen \*:80; or listen xx.xx.xx.xx:80; Jim

---

## [New Post/Thread Notification: Ideas and Feature Requests](https://www.ruby-forum.com/t/new-post-thread-notification-ideas-and-feature-requests/162789)

<div class="topic-metadata">

**Author:** [@Nginx\_Forum](https://www.ruby-forum.com/u/Nginx_Forum)\
**Replies:** 1\
**Last updated:** [March 13, 2009, 8:05pm UTC](https://www.ruby-forum.com/t/new-post-thread-notification-ideas-and-feature-requests/162789 "2009-03-13T20:05:52Z")

</div>

From \[prefix\_plain\]mod\_svn at http://forum.nginx.org/showthread.php?t=8 Another stubbed thread, to discuss how/why/if it’s possible I’m going to make multiple of these Posted by mike

---

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

<div class="topic-metadata">

**Author:** [@joviyach](https://www.ruby-forum.com/u/joviyach)\
**Replies:** 4\
**Last updated:** [March 13, 2009, 7:31pm UTC](https://www.ruby-forum.com/t/nginx-forum-open/162715 "2009-03-13T19:31:50Z")

</div>

Hello, Thank you Igor for giving us use of the domain name. The location of the forum is http://forum.nginx.org. It’s a work in progress but let’s use it. There’s a location for suggestions there so post away if yo…

---

## [New Post/Thread Notification: How to](https://www.ruby-forum.com/t/new-post-thread-notification-how-to/162767)

<div class="topic-metadata">

**Author:** [@Nginx\_Forum](https://www.ruby-forum.com/u/Nginx_Forum)\
**Replies:** 4\
**Last updated:** [March 13, 2009, 7:05pm UTC](https://www.ruby-forum.com/t/new-post-thread-notification-how-to/162767 "2009-03-13T19:05:26Z")

</div>

Hello, Jim O. has just posted in the How to… forum of Nginx Forum under the title of Test of email function. This thread is located at http://forum.nginx.org/showthread.php?t=7 Here is the message that has just been …

---

## [\*\*\* glibc detected \*\*\* nginx:](https://www.ruby-forum.com/t/glibc-detected-nginx/162777)

<div class="topic-metadata">

**Author:** [@ilovenginx](https://www.ruby-forum.com/u/ilovenginx)\
**Replies:** 2\
**Last updated:** [March 13, 2009, 5:46pm UTC](https://www.ruby-forum.com/t/glibc-detected-nginx/162777 "2009-03-13T17:46:18Z")

</div>

I’m getting the following dump sporadically while using nginx for smtp/tls. I saw a patch Igor posted in 2007 to what looked like a similar error. Anyone here run into this issue ? \*\*\* glibc detected \*\*\* nginx: worke…

---

## [Webalizer log format](https://www.ruby-forum.com/t/webalizer-log-format/162642)

<div class="topic-metadata">

**Author:** [@sovok](https://www.ruby-forum.com/u/sovok)\
**Replies:** 3\
**Last updated:** [March 13, 2009, 4:41pm UTC](https://www.ruby-forum.com/t/webalizer-log-format/162642 "2009-03-13T16:41:52Z")

</div>

Im trying to use webalizer and I have nginx. I dont really know the log format for webalizer… can anyone tell me how exacly webalizer need the logs to look like? Thanks!

---

## [New Post/Thread Notification: How to](https://www.ruby-forum.com/t/new-post-thread-notification-how-to/162771)

<div class="topic-metadata">

**Author:** [@Nginx\_Forum](https://www.ruby-forum.com/u/Nginx_Forum)\
**Replies:** 0\
**Last updated:** [March 13, 2009, 4:38pm UTC](https://www.ruby-forum.com/t/new-post-thread-notification-how-to/162771 "2009-03-13T16:38:20Z")

</div>

Hello, edogawaconan has just posted in the How to… forum of Nginx Forum under the title of Test of email function. This thread is located at http://forum.nginx.org/showthread.php?t=7 Here is the message that has just…

---

## [New Post/Thread Notification: How to](https://www.ruby-forum.com/t/new-post-thread-notification-how-to/162769)

<div class="topic-metadata">

**Author:** [@Nginx\_Forum](https://www.ruby-forum.com/u/Nginx_Forum)\
**Replies:** 0\
**Last updated:** [March 13, 2009, 4:27pm UTC](https://www.ruby-forum.com/t/new-post-thread-notification-how-to/162769 "2009-03-13T16:27:09Z")

</div>

Hello, zhongji has just posted in the How to… forum of Nginx Forum under the title of Test of email function. This thread is located at http://forum.nginx.org/showthread.php?t=7 Here is the message that has just been…

---

## [Zeus](https://www.ruby-forum.com/t/zeus/162720)

<div class="topic-metadata">

**Author:** [@Chris\_Z](https://www.ruby-forum.com/u/Chris_Z)\
**Replies:** 2\
**Last updated:** [March 13, 2009, 9:21am UTC](https://www.ruby-forum.com/t/zeus/162720 "2009-03-13T09:21:52Z")

</div>

Can nginx be made to work with a Zeus LB? Specifically it needs to support the header X-Cluster-Client-Ip

---

## [Workers scheduler](https://www.ruby-forum.com/t/workers-scheduler/162713)

<div class="topic-metadata">

**Author:** [@Michael\_Baudino](https://www.ruby-forum.com/u/Michael_Baudino)\
**Replies:** 1\
**Last updated:** [March 13, 2009, 7:50am UTC](https://www.ruby-forum.com/t/workers-scheduler/162713 "2009-03-13T07:50:35Z")

</div>

Hello everyone, I’m wondering how nginx is balancing requests process among the different workers. Is there a scheduler ? If yes, what’s the algorithm ? I’d like to use fair queuing for my workers (i.e. send a new re…

---

## [Re: New wiki](https://www.ruby-forum.com/t/re-new-wiki/162690)

<div class="topic-metadata">

**Author:** [@joviyach](https://www.ruby-forum.com/u/joviyach)\
**Replies:** 0\
**Last updated:** [March 12, 2009, 8:18pm UTC](https://www.ruby-forum.com/t/re-new-wiki/162690 "2009-03-12T20:18:00Z")

</div>

It shouldn’t. Not with appropriate cross linking. In fact, it should strengthen it.

---

## [Getting environment variables and request headers](https://www.ruby-forum.com/t/getting-environment-variables-and-request-headers/162654)

<div class="topic-metadata">

**Author:** [@AnSSSSl\_SSSSSetin](https://www.ruby-forum.com/u/AnSSSSl_SSSSSetin)\
**Replies:** 3\
**Last updated:** [March 12, 2009, 4:20pm UTC](https://www.ruby-forum.com/t/getting-environment-variables-and-request-headers/162654 "2009-03-12T16:20:31Z")

</div>

Hi, I am trying to get environment variables (any) and http headers, is there a specific way to get them in config? As an example, I need (as apache) %{HTTP:Authorization} , what is the corresponding variable in ngin…

---

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

<div class="topic-metadata">

**Author:** [@max](https://www.ruby-forum.com/u/max)\
**Replies:** 5\
**Last updated:** [March 12, 2009, 8:59am UTC](https://www.ruby-forum.com/t/nginx-error/162310 "2009-03-12T08:59:39Z")

</div>

Hello, My nginx server always redirect all traffic to 50x page from time to time. I can’t even restart it. I need to reboot. The worker\_processes 5 and worker\_connections is 4096, is it too many? How can I check wh…

---

## [Limit connections implementation](https://www.ruby-forum.com/t/limit-connections-implementation/162563)

<div class="topic-metadata">

**Author:** [@Asif\_A](https://www.ruby-forum.com/u/Asif_A)\
**Replies:** 1\
**Last updated:** [March 12, 2009, 8:45am UTC](https://www.ruby-forum.com/t/limit-connections-implementation/162563 "2009-03-12T08:45:01Z")

</div>

Can someone tell me exactly how limit zone implementation works?. This seems to be blocking non simultaenous connections as well and thereby causing drop in requests. limit\_zone one $binary\_remote\_addr 20m; lim…

---

## [Using upstream in access phase and problem when having many connections](https://www.ruby-forum.com/t/using-upstream-in-access-phase-and-problem-when-having-many-connections/162479)

<div class="topic-metadata">

**Author:** [@Huy\_Phan](https://www.ruby-forum.com/u/Huy_Phan)\
**Replies:** 1\
**Last updated:** [March 12, 2009, 8:33am UTC](https://www.ruby-forum.com/t/using-upstream-in-access-phase-and-problem-when-having-many-connections/162479 "2009-03-12T08:33:19Z")

</div>

Hi there, I’ve done the nginx module that using upstream in access phase. It’s working properly with single request. When I use apache benchmark with requests = 10000 and concurrency = 500, the connection is always b…

---

## [Re: logging epoch time](https://www.ruby-forum.com/t/re-logging-epoch-time/162631)

<div class="topic-metadata">

**Author:** [@Mohammad\_K](https://www.ruby-forum.com/u/Mohammad_K)\
**Replies:** 0\
**Last updated:** [March 12, 2009, 7:00am UTC](https://www.ruby-forum.com/t/re-logging-epoch-time/162631 "2009-03-12T07:00:20Z")

</div>

never mind, I think the right key to use is $msec, found it in the new wiki, which by the way is much better than the old one. From: Mohammad K. removed\_email\_address@domain.invalid To: removed\_email\_address@domain.i…

---

## [Geza Tendai/NB/BII is out of the office](https://www.ruby-forum.com/t/geza-tendai-nb-bii-is-out-of-the-office/162614)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [March 12, 2009, 12:26am UTC](https://www.ruby-forum.com/t/geza-tendai-nb-bii-is-out-of-the-office/162614 "2009-03-12T00:26:11Z")

</div>

I will be out of the office starting 03/04/2009 and will not return until 03/16/2009. I will respond to your message when I return. The server made the following annotations This message contains information that…

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

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