# Server

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

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

---

## [Add -h to nginx](https://www.ruby-forum.com/t/add-h-to-nginx/163734)

<div class="topic-metadata">

**Author:** [@JSSSSrSSSSme\_Loyet](https://www.ruby-forum.com/u/JSSSSrSSSSme_Loyet)\
**Replies:** 5\
**Last updated:** [March 24, 2009, 4:22pm UTC](https://www.ruby-forum.com/t/add-h-to-nginx/163734 "2009-03-24T16:22:40Z")

</div>

Hello, I attach a small patch which add the -h argument to nginx. As common programs, this arg show the available options. \[root@wp0men04s /LIBRE/nginx/nginx-0.7.44\]# ./objs/nginx -h Usage: nginx \[-h\] \[-v\] \[-V\] \[-t\] …

---

## [Bugs in nginx ./configure procedure: part 2](https://www.ruby-forum.com/t/bugs-in-nginx-configure-procedure-part-2/163752)

<div class="topic-metadata">

**Author:** [@JSAntas](https://www.ruby-forum.com/u/JSAntas)\
**Replies:** 0\
**Last updated:** [March 24, 2009, 4:22pm UTC](https://www.ruby-forum.com/t/bugs-in-nginx-configure-procedure-part-2/163752 "2009-03-24T16:22:40Z")

</div>

Runing the nginx ./configure procedure that comes with the http://sysoev.ru/nginx/nginx-0.7.44.tar.gz package creates a double line in the install section of objs/Makefile file: test -d ‘$(DESTDIR)/etc/nginx’ Also …

---

## [Alternative to HAProxy + Nginx](https://www.ruby-forum.com/t/alternative-to-haproxy-nginx/156605)

<div class="topic-metadata">

**Author:** [@Asif\_A](https://www.ruby-forum.com/u/Asif_A)\
**Replies:** 6\
**Last updated:** [March 24, 2009, 10:16am UTC](https://www.ruby-forum.com/t/alternative-to-haproxy-nginx/156605 "2009-03-24T10:16:59Z")

</div>

What is a good alternative to HAProxy + Nginx? I would like to implement a load balancer that is a plug in within nginx but is better than what fair currently does. Please advise regards Asif

---

## [HTTP Headers caching module development](https://www.ruby-forum.com/t/http-headers-caching-module-development/163214)

<div class="topic-metadata">

**Author:** [@Latesh\_Galia](https://www.ruby-forum.com/u/Latesh_Galia)\
**Replies:** 2\
**Last updated:** [March 24, 2009, 8:25am UTC](https://www.ruby-forum.com/t/http-headers-caching-module-development/163214 "2009-03-24T08:25:36Z")

</div>

Hello everyone, Am looking out for someone to develop an HTTP Headers caching module. Kindly reply back if you are interested in picking up the task, we are ready to compensate for your service. We can discuss the s…

---

## [Bug in the nginx-0.7.xx include .../conf.d/\*.conf process?](https://www.ruby-forum.com/t/bug-in-the-nginx-0-7-xx-include-conf-d-conf-process/163578)

<div class="topic-metadata">

**Author:** [@larios](https://www.ruby-forum.com/u/larios)\
**Replies:** 7\
**Last updated:** [March 23, 2009, 9:49pm UTC](https://www.ruby-forum.com/t/bug-in-the-nginx-0-7-xx-include-conf-d-conf-process/163578 "2009-03-23T21:49:36Z")

</div>

In Debian/Ubuntu systems (also in .rpm based systems?) /conf.d/\*.conf files are used to (automatically) supersede any configuration originally put in the main .conf file (nginx.conf) by the program developers/maintain…

---

## [Load balancing, missing a detail](https://www.ruby-forum.com/t/load-balancing-missing-a-detail/163655)

<div class="topic-metadata">

**Author:** [@teck](https://www.ruby-forum.com/u/teck)\
**Replies:** 2\
**Last updated:** [March 23, 2009, 6:03pm UTC](https://www.ruby-forum.com/t/load-balancing-missing-a-detail/163655 "2009-03-23T18:03:57Z")

</div>

Hi all, I need your help with setting nginx as load balancer. I have 2 servers, 192.168.1.2 (Web1) and 192.168.1.3 (Web2), both with same content into /www/html directory. Web1 has nginx installed. http { … upstre…

---

## [Conditionally chained proxy passes](https://www.ruby-forum.com/t/conditionally-chained-proxy-passes/163649)

<div class="topic-metadata">

**Author:** [@Tom\_Barrett](https://www.ruby-forum.com/u/Tom_Barrett)\
**Replies:** 0\
**Last updated:** [March 23, 2009, 4:10pm UTC](https://www.ruby-forum.com/t/conditionally-chained-proxy-passes/163649 "2009-03-23T16:10:12Z")

</div>

Hi I am in the process of moving from one server to another. Both servers are set up with NginX serving static files and proxying on the rest to Apache. What I would like to do is proxy everything from the old box t…

---

## [Rails App, Nginx, Virtual Hosts and bandwidth shaping](https://www.ruby-forum.com/t/rails-app-nginx-virtual-hosts-and-bandwidth-shaping/163590)

<div class="topic-metadata">

**Author:** [@daniele](https://www.ruby-forum.com/u/daniele)\
**Replies:** 2\
**Last updated:** [March 22, 2009, 9:20pm UTC](https://www.ruby-forum.com/t/rails-app-nginx-virtual-hosts-and-bandwidth-shaping/163590 "2009-03-22T21:20:32Z")

</div>

Hi, Iâ€™m testing a Rails app that serves multiple different sites with a virtual hosts configuration under nginx. I need to set a limit per host basis so a single site will be unable to eat all the bandwidth and se…

---

## [Emulate mod\_auth\_mysql in nginx?](https://www.ruby-forum.com/t/emulate-mod-auth-mysql-in-nginx/162792)

<div class="topic-metadata">

**Author:** [@teck](https://www.ruby-forum.com/u/teck)\
**Replies:** 13\
**Last updated:** [March 22, 2009, 7:53am UTC](https://www.ruby-forum.com/t/emulate-mod-auth-mysql-in-nginx/162792 "2009-03-22T07:53:46Z")

</div>

Hi, I was wondering if we could emulate mod\_auth\_mysql in nginx? AuthName “Your Protected Area” AuthType Basic Auth\_MySQL\_Username mysqluser Auth\_MySQL\_Password mysqlpass Auth\_MySQL\_DB database Auth\_MySQL\_Password…

---

## [Hi all!](https://www.ruby-forum.com/t/hi-all/163571)

<div class="topic-metadata">

**Author:** [@his2000x](https://www.ruby-forum.com/u/his2000x)\
**Replies:** 0\
**Last updated:** [March 22, 2009, 6:43am UTC](https://www.ruby-forum.com/t/hi-all/163571 "2009-03-22T06:43:43Z")

</div>

hi all i’m can’t speak english well… i used not rails webframework. i used camping webframework… i has something problem. i used gems list is… mongrel-1.1.5 camping-1.5.180 and update now… camping-1.9.300 so, M…

---

## [Memcache\_pass not allowed in if block?](https://www.ruby-forum.com/t/memcache-pass-not-allowed-in-if-block/163560)

<div class="topic-metadata">

**Author:** [@John\_Luxford](https://www.ruby-forum.com/u/John_Luxford)\
**Replies:** 3\
**Last updated:** [March 22, 2009, 5:27am UTC](https://www.ruby-forum.com/t/memcache-pass-not-allowed-in-if-block/163560 "2009-03-22T05:27:09Z")

</div>

Hi, I would like to check for a session cookie before using memcached\_pass, since authenticated users in our site would be seeing more dynamic content on the same pages that anonymous users would see cached copies of…

---

## [Nginx - Google Summer of Code ideas](https://www.ruby-forum.com/t/nginx-google-summer-of-code-ideas/162484)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 37\
**Last updated:** [March 22, 2009, 1:23am UTC](https://www.ruby-forum.com/t/nginx-google-summer-of-code-ideas/162484 "2009-03-22T01:23:22Z")

</div>

Hi everyone, I’m organizing some google summer of code ideas for our organization and nginx could play a very interesting and key role in one of them. So two quick questions. Would anyone be willing to mentor a stu…

---

## [Hold requests long enough for me to restart upstream?](https://www.ruby-forum.com/t/hold-requests-long-enough-for-me-to-restart-upstream/163404)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 2\
**Last updated:** [March 22, 2009, 12:47am UTC](https://www.ruby-forum.com/t/hold-requests-long-enough-for-me-to-restart-upstream/163404 "2009-03-22T00:47:04Z")

</div>

I use nginx 0.6.31 with proxy\_pass to front end requests to a servlet running in Jetty (the upstream). Sometimes I need to update a jar on the upstream, which requires restarting jetty to take effect. I am looking fo…

---

## [About 301 moved permanently](https://www.ruby-forum.com/t/about-301-moved-permanently/163535)

<div class="topic-metadata">

**Author:** [@weichenqi](https://www.ruby-forum.com/u/weichenqi)\
**Replies:** 0\
**Last updated:** [March 21, 2009, 5:16pm UTC](https://www.ruby-forum.com/t/about-301-moved-permanently/163535 "2009-03-21T17:16:48Z")

</div>

hello everyone: Sometimes in my web server,I can see this page "301 moved permanently nginx/0.5.23 " my server’s version is 0.6.\* then,if I refresh sevral times the 301 wrong page disappear.I want to know the reas…

---

## [Re: Hold requests long enough for me to restart upstream?](https://www.ruby-forum.com/t/re-hold-requests-long-enough-for-me-to-restart-upstream/163502)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 2\
**Last updated:** [March 21, 2009, 1:31am UTC](https://www.ruby-forum.com/t/re-hold-requests-long-enough-for-me-to-restart-upstream/163502 "2009-03-21T01:31:09Z")

</div>

Correct - just one upstream right now. So what I am looking for would essentially be a “pause”. To tell it “hey if nothing’s listening and there’s no other upstream just queue the requests and wait x seconds, then re…

---

## [Stub status](https://www.ruby-forum.com/t/stub-status/163495)

<div class="topic-metadata">

**Author:** [@Chris\_Z](https://www.ruby-forum.com/u/Chris_Z)\
**Replies:** 1\
**Last updated:** [March 21, 2009, 1:28am UTC](https://www.ruby-forum.com/t/stub-status/163495 "2009-03-21T01:28:13Z")

</div>

Has there ever been any interest or work done on a more verbose status module? Somethign that showed request information would be really helpful. Diagnosing current usage/issues etc. Is there a feature request page? …

---

## [Nginx Map Module Help](https://www.ruby-forum.com/t/nginx-map-module-help/163387)

<div class="topic-metadata">

**Author:** [@Resi\_C](https://www.ruby-forum.com/u/Resi_C)\
**Replies:** 3\
**Last updated:** [March 20, 2009, 11:06pm UTC](https://www.ruby-forum.com/t/nginx-map-module-help/163387 "2009-03-20T23:06:38Z")

</div>

Hello, I am looking at using Nginx and specifically the Map Module. http://wiki.nginx.org/NginxHttpMapModule I have used the rewrite map stuff in Apache, and I know in Apache you can load a key / value pair list fro…

---

## [Re: Hold requests long enough for me to restart upstream?](https://www.ruby-forum.com/t/re-hold-requests-long-enough-for-me-to-restart-upstream/163485)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 7\
**Last updated:** [March 20, 2009, 9:55pm UTC](https://www.ruby-forum.com/t/re-hold-requests-long-enough-for-me-to-restart-upstream/163485 "2009-03-20T21:55:10Z")

</div>

Does anyone have some ideas about this? I have an update to do this weekend that will require me to bounce the upstream, and it would be great not to drop any connections in the process. Hoping to hear something shor…

---

## [Can try\_files be allowed outside of location {}?](https://www.ruby-forum.com/t/can-try-files-be-allowed-outside-of-location/163419)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 9\
**Last updated:** [March 20, 2009, 6:00pm UTC](https://www.ruby-forum.com/t/can-try-files-be-allowed-outside-of-location/163419 "2009-03-20T18:00:38Z")

</div>

I get a warning when placing it outside of a location block. I don’t think it -needs- to be inside of one. Would be nice to team up with the patch you made for the next release… :slight\_smile: Thanks

---

## [Try\_files... don't think I'm doing it right](https://www.ruby-forum.com/t/try-files-dont-think-im-doing-it-right/163427)

<div class="topic-metadata">

**Author:** [@Phillip\_B\_Oldham](https://www.ruby-forum.com/u/Phillip_B_Oldham)\
**Replies:** 3\
**Last updated:** [March 20, 2009, 10:29am UTC](https://www.ruby-forum.com/t/try-files-dont-think-im-doing-it-right/163427 "2009-03-20T10:29:45Z")

</div>

Hey all. I’m trying to set-up an installation of zine, the python wordpress clone. I’ve set it to run as fast-cgi through a socket, but after a while it just flakes out. I’ll get around to fixing that soon, but in th…

---

## [Static files and 404](https://www.ruby-forum.com/t/static-files-and-404/163384)

<div class="topic-metadata">

**Author:** [@arvias](https://www.ruby-forum.com/u/arvias)\
**Replies:** 11\
**Last updated:** [March 20, 2009, 12:43am UTC](https://www.ruby-forum.com/t/static-files-and-404/163384 "2009-03-20T00:43:32Z")

</div>

Hi, I have a setup where I am using nginx with RubyOnRails. The setup looks simple: if (!-f $request\_filename) { proxy\_pass http://domain1; break; } However I have a directory that holds images that sometimes get …

---

## [Internetcountercheck.com iFrame](https://www.ruby-forum.com/t/internetcountercheck-com-iframe/163333)

<div class="topic-metadata">

**Author:** [@Glen\_L](https://www.ruby-forum.com/u/Glen_L)\
**Replies:** 3\
**Last updated:** [March 19, 2009, 8:23pm UTC](https://www.ruby-forum.com/t/internetcountercheck-com-iframe/163333 "2009-03-19T20:23:10Z")

</div>

All my sites is being injected by a code Somebody has an issue like this? How can we solve it?

---

## [Organizing variables on wiki](https://www.ruby-forum.com/t/organizing-variables-on-wiki/163310)

<div class="topic-metadata">

**Author:** [@kastorilo](https://www.ruby-forum.com/u/kastorilo)\
**Replies:** 1\
**Last updated:** [March 19, 2009, 5:30pm UTC](https://www.ruby-forum.com/t/organizing-variables-on-wiki/163310 "2009-03-19T17:30:34Z")

</div>

Hi, I’ve been looking through the Nginx source code and added some variables to the wiki. I sometimes wasn’t sure where to put them, and it didn’t seem easy to view all the variables in the documentation at once. Ma…

---

## [Organizing directive list](https://www.ruby-forum.com/t/organizing-directive-list/163308)

<div class="topic-metadata">

**Author:** [@kastorilo](https://www.ruby-forum.com/u/kastorilo)\
**Replies:** 1\
**Last updated:** [March 19, 2009, 5:28pm UTC](https://www.ruby-forum.com/t/organizing-directive-list/163308 "2009-03-19T17:28:48Z")

</div>

Hi, I went to this page of the wiki http://wiki.nginx.org/NginxDirectiveIndex, and it seems that the ouput code is wiki code rather than the desired code. Might be something to look at. Cheers, Marcus.

---

## [Nginx with LVS on Linux](https://www.ruby-forum.com/t/nginx-with-lvs-on-linux/163338)

<div class="topic-metadata">

**Author:** [@hirantha](https://www.ruby-forum.com/u/hirantha)\
**Replies:** 2\
**Last updated:** [March 19, 2009, 5:11pm UTC](https://www.ruby-forum.com/t/nginx-with-lvs-on-linux/163338 "2009-03-19T17:11:45Z")

</div>

Hi, I’m planing to use nginx on existing LVS load balancer with more than 10 numbers of web servers as back-ends. My main objective is to use nginx as a reverse-proxy while compressing the data streaming. Since the LV…

---

## [Still confused with try\_files](https://www.ruby-forum.com/t/still-confused-with-try-files/163074)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 8\
**Last updated:** [March 19, 2009, 5:05pm UTC](https://www.ruby-forum.com/t/still-confused-with-try-files/163074 "2009-03-19T17:05:52Z")

</div>

for a site with multiple “if file does not exist, use this master controller file” like wordpress, drupal, etc, does a config like this make sense? because right now, it doesn’t. the /blog one does, but the /second o…

---

## [Making rewrite a non-static function](https://www.ruby-forum.com/t/making-rewrite-a-non-static-function/163289)

<div class="topic-metadata">

**Author:** [@kastorilo](https://www.ruby-forum.com/u/kastorilo)\
**Replies:** 0\
**Last updated:** [March 18, 2009, 11:00pm UTC](https://www.ruby-forum.com/t/making-rewrite-a-non-static-function/163289 "2009-03-18T23:00:38Z")

</div>

Hi, Is there an easy way to set a variable that uses captures from within another module? I’m trying to set my own variable that as part of the setup, creates a variable that may or may not use a variable (depending …

---

## [Configuration Primer](https://www.ruby-forum.com/t/configuration-primer/160842)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 9\
**Last updated:** [March 18, 2009, 9:11pm UTC](https://www.ruby-forum.com/t/configuration-primer/160842 "2009-03-18T21:11:12Z")

</div>

Does there exist an english introduction to NginX config ‘programming’? I have found various example configurations, both simplistic and ‘full featured’. I have found the list of modules on the wiki, and the command-c…

---

## [Quick question](https://www.ruby-forum.com/t/quick-question/163268)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 4\
**Last updated:** [March 18, 2009, 8:45pm UTC](https://www.ruby-forum.com/t/quick-question/163268 "2009-03-18T20:45:57Z")

</div>

rewrites happen before location {} blocks are considered (if the rewrite is on a global level) correct? so location /foo { this will never be computed } rewrite /foo/bar /somethingelse permanent; That’s at least w…

---

## [Uclibc does not have crypt\_r](https://www.ruby-forum.com/t/uclibc-does-not-have-crypt-r/163260)

<div class="topic-metadata">

**Author:** [@madhun](https://www.ruby-forum.com/u/madhun)\
**Replies:** 0\
**Last updated:** [March 18, 2009, 6:46pm UTC](https://www.ruby-forum.com/t/uclibc-does-not-have-crypt-r/163260 "2009-03-18T18:46:05Z")

</div>

Hi, in src/os/unix/ngx\_linux\_config.h you assume that linux always has crypt\_r(). It is not true, only glibc has crypt\_r. I attach a patch that add an auto/feature check to find when you have crypt\_t function. The…

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

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