# Server

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

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

---

## [Modifying or adding cookies via nginx.conf](https://www.ruby-forum.com/t/modifying-or-adding-cookies-via-nginx-conf/196603)

<div class="topic-metadata">

**Author:** [@Laurent\_Thevenet](https://www.ruby-forum.com/u/Laurent_Thevenet)\
**Replies:** 0\
**Last updated:** [March 4, 2008, 6:00pm UTC](https://www.ruby-forum.com/t/modifying-or-adding-cookies-via-nginx-conf/196603 "2008-03-04T18:00:00Z")

</div>

Hi, I’m dealing with the issue of modifying or adding a cookie on the fly via nginx.conf I look through all the doc and did not find anything except about identification (http://wiki.codemongers.com/NginxHttpUserIdMo…

---

## [\[mod\_wsgi\] asynchronous extensions](https://www.ruby-forum.com/t/mod-wsgi-asynchronous-extensions/130812)

<div class="topic-metadata">

**Author:** [@Manlio\_P](https://www.ruby-forum.com/u/Manlio_P)\
**Replies:** 4\
**Last updated:** [March 4, 2008, 1:58pm UTC](https://www.ruby-forum.com/t/mod-wsgi-asynchronous-extensions/130812 "2008-03-04T13:58:54Z")

</div>

Hi. Its time to add asynchronous extensions to the WSGI module. I’m developing a WSGI application where I need to talk with a web service on the Internet, so it is very important to use an asynchronous HTTP client. I…

---

## [WSGI module 0.0.6](https://www.ruby-forum.com/t/wsgi-module-0-0-6/130841)

<div class="topic-metadata">

**Author:** [@Manlio\_P](https://www.ruby-forum.com/u/Manlio_P)\
**Replies:** 0\
**Last updated:** [March 3, 2008, 8:44pm UTC](https://www.ruby-forum.com/t/wsgi-module-0-0-6/130841 "2008-03-03T20:44:50Z")

</div>

I’m pleased to announce the release of the WSGI module for nginx, version 0.0.6. The WSGI module is an implementation of the Python Web Server Gateway Interface v1.0 (PEP 333 – Python Web Server Gateway Interface v1.0…

---

## [About the patch for OS X](https://www.ruby-forum.com/t/about-the-patch-for-os-x/130797)

<div class="topic-metadata">

**Author:** [@Manlio\_P](https://www.ruby-forum.com/u/Manlio_P)\
**Replies:** 0\
**Last updated:** [March 3, 2008, 1:31pm UTC](https://www.ruby-forum.com/t/about-the-patch-for-os-x/130797 "2008-03-03T13:31:40Z")

</div>

Hi. I have noted in http://wiki.codemongers.com/NginxNgxWSGIModule a patch for fixing a compilation problem on OS X. The first problem (-L${PYTHON\_LIBDIR} instead of -L ${PYTHON\_LIBDIR}) seems to be a bug, and I’m fi…

---

## [Preventing DOS?](https://www.ruby-forum.com/t/preventing-dos/130695)

<div class="topic-metadata">

**Author:** [@unclouded](https://www.ruby-forum.com/u/unclouded)\
**Replies:** 2\
**Last updated:** [March 3, 2008, 3:01am UTC](https://www.ruby-forum.com/t/preventing-dos/130695 "2008-03-03T03:01:33Z")

</div>

Hello - I’m looking at ways to prevent / mitigate DOS attacks, hopefully at the nginx level (using it as a reverse proxy). I see the limit zone module - is this sufficient? What are some reasonable values for max\_c…

---

## [Append Mongrel port after HTML](https://www.ruby-forum.com/t/append-mongrel-port-after-html/130714)

<div class="topic-metadata">

**Author:** [@michele](https://www.ruby-forum.com/u/michele)\
**Replies:** 0\
**Last updated:** [March 2, 2008, 11:14am UTC](https://www.ruby-forum.com/t/append-mongrel-port-after-html/130714 "2008-03-02T11:14:28Z")

</div>

Hi, I’m trying to debug an issue I’m having with an app where certain requests fail but work after a refresh which led me to think it might be a problem with only one Mongrel instance out of the bunch. So I was wonde…

---

## [One last memcache question](https://www.ruby-forum.com/t/one-last-memcache-question/130682)

<div class="topic-metadata">

**Author:** [@allins](https://www.ruby-forum.com/u/allins)\
**Replies:** 6\
**Last updated:** [March 1, 2008, 10:03pm UTC](https://www.ruby-forum.com/t/one-last-memcache-question/130682 "2008-03-01T22:03:51Z")

</div>

or i hope it is the last, right now i have a default\_type text/html setup because i cant figure out exactly what need to go before the html we are caching to get it handled properly. full http headers? havent tried t…

---

## [Response times and network io](https://www.ruby-forum.com/t/response-times-and-network-io/130530)

<div class="topic-metadata">

**Author:** [@wannabe-coder](https://www.ruby-forum.com/u/wannabe-coder)\
**Replies:** 7\
**Last updated:** [March 1, 2008, 5:11am UTC](https://www.ruby-forum.com/t/response-times-and-network-io/130530 "2008-03-01T05:11:06Z")

</div>

i am performing some httperf tests against apache and nginx. something i noticed that piqued my interest were the consistency of response times (0.4 ms each run regardless of number of request, much lower than apache …

---

## [Reverse proxy and load balancing](https://www.ruby-forum.com/t/reverse-proxy-and-load-balancing/130624)

<div class="topic-metadata">

**Author:** [@Yordan\_G](https://www.ruby-forum.com/u/Yordan_G)\
**Replies:** 0\
**Last updated:** [February 29, 2008, 10:37pm UTC](https://www.ruby-forum.com/t/reverse-proxy-and-load-balancing/130624 "2008-02-29T22:37:52Z")

</div>

Hello, Please excuse my bad english I have 2 servers A and B. They use virtual hosts. How i can make load balansing with nginx. P.S. i use now haproxy. http://haproxy.1wt.eu/ – Ð¡ ÑƒÐ²Ð°Ð¶ÐµÐ½Ð¸Ðµ, Ð™. Ð“ÐµÐ¾Ñ€Ð³Ð…

---

## [Ngx\_http\_memcached\_module question](https://www.ruby-forum.com/t/ngx-http-memcached-module-question/130516)

<div class="topic-metadata">

**Author:** [@allins](https://www.ruby-forum.com/u/allins)\
**Replies:** 9\
**Last updated:** [February 29, 2008, 10:06pm UTC](https://www.ruby-forum.com/t/ngx-http-memcached-module-question/130516 "2008-02-29T22:06:28Z")

</div>

can i do the following: check memcache for existence of content. if not continue our normal processing which is currently: check for static file if it exists, serve it if it doesnt exist, pass request off to upstrea…

---

## [Nginx front-end to sharepoint](https://www.ruby-forum.com/t/nginx-front-end-to-sharepoint/130508)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [February 29, 2008, 5:37pm UTC](https://www.ruby-forum.com/t/nginx-front-end-to-sharepoint/130508 "2008-02-29T17:37:12Z")

</div>

Greetings, I am attempting to replace squid 3.0 with nginx as a reverse proxy to a sharepoint server with SSL and user-authentication. The problem I am having is nginx does not appear to pass the credentials to the r…

---

## [XSendFile in development environment](https://www.ruby-forum.com/t/xsendfile-in-development-environment/125381)

<div class="topic-metadata">

**Author:** [@nuby2ruby](https://www.ruby-forum.com/u/nuby2ruby)\
**Replies:** 4\
**Last updated:** [February 29, 2008, 5:00pm UTC](https://www.ruby-forum.com/t/xsendfile-in-development-environment/125381 "2008-02-29T17:00:28Z")

</div>

Hi I’m currently trying to use X-Sendfile to take some load off my rails app, unfortunately in my development environment mongrel is happily passing through the x-sendfile header, presumably for the (non- existant) p…

---

## [Deprecated syscall](https://www.ruby-forum.com/t/deprecated-syscall/130555)

<div class="topic-metadata">

**Author:** [@Fabio\_Coatti](https://www.ruby-forum.com/u/Fabio_Coatti)\
**Replies:** 3\
**Last updated:** [February 29, 2008, 3:17pm UTC](https://www.ruby-forum.com/t/deprecated-syscall/130555 "2008-02-29T15:17:06Z")

</div>

With latest linux kernels (can’t recall on the spot when I saw this for the first time, something around 2.6.23.XX I suppose) I get this warning on dmesg: warning: process \`nginx’ used the deprecated sysctl system ca…

---

## [Having problem with ./configure](https://www.ruby-forum.com/t/having-problem-with-configure/130533)

<div class="topic-metadata">

**Author:** [@just\_starting](https://www.ruby-forum.com/u/just_starting)\
**Replies:** 4\
**Last updated:** [February 29, 2008, 9:29am UTC](https://www.ruby-forum.com/t/having-problem-with-configure/130533 "2008-02-29T09:29:09Z")

</div>

hi all, I tried to install nginx in a new machine and got the following error: $ ./configure checking for OS Linux 2.6.9-22.ELsmp i686 checking for C compiler … not found After that i run $yum install gcc\* which…

---

## [404 error on WPMU](https://www.ruby-forum.com/t/404-error-on-wpmu/129864)

<div class="topic-metadata">

**Author:** [@dika](https://www.ruby-forum.com/u/dika)\
**Replies:** 4\
**Last updated:** [February 29, 2008, 7:59am UTC](https://www.ruby-forum.com/t/404-error-on-wpmu/129864 "2008-02-29T07:59:59Z")

</div>

Hai Teams, I’ve installed NginX to host my Wordpress MU. Everything running well, but one thing didn’t works properly. When I use this : http://202.158.66.216/wp-admin/ I got \*Error 404 - Not Found. \*But if I use : h…

---

## [Re: proxy\_buffering=off, potential problems? other solutions?](https://www.ruby-forum.com/t/re-proxy-buffering-off-potential-problems-other-solutions/130312)

<div class="topic-metadata">

**Author:** [@GSSSSbor\_Farkas](https://www.ruby-forum.com/u/GSSSSbor_Farkas)\
**Replies:** 1\
**Last updated:** [February 28, 2008, 10:08pm UTC](https://www.ruby-forum.com/t/re-proxy-buffering-off-potential-problems-other-solutions/130312 "2008-02-28T22:08:24Z")

</div>

If response will be bigger than proxy\_buffer\_size, then backend will be tied to nginx until the data will be sent to cliant. The maximum data size that nginx can read from backend at once in this mode is proxy\_buffer…

---

## [Httperf results with nginx and apache](https://www.ruby-forum.com/t/httperf-results-with-nginx-and-apache/130409)

<div class="topic-metadata">

**Author:** [@wannabe-coder](https://www.ruby-forum.com/u/wannabe-coder)\
**Replies:** 4\
**Last updated:** [February 28, 2008, 6:01pm UTC](https://www.ruby-forum.com/t/httperf-results-with-nginx-and-apache/130409 "2008-02-28T18:01:17Z")

</div>

I am attempting to do a bit of a comparison between nginx and apache using httperf but my results are coming out a little strange. I am running the following against both apache and nginx: httperf --timeout=5 --clien…

---

## [Nginx for proxy + rewrite](https://www.ruby-forum.com/t/nginx-for-proxy-rewrite/130373)

<div class="topic-metadata">

**Author:** [@Pavel\_Georgiev](https://www.ruby-forum.com/u/Pavel_Georgiev)\
**Replies:** 5\
**Last updated:** [February 28, 2008, 12:27pm UTC](https://www.ruby-forum.com/t/nginx-for-proxy-rewrite/130373 "2008-02-28T12:27:25Z")

</div>

Hi, List! I\`ve beed using nxingx as a local balancer for few backend servers: http { upstream mydomain.com { server 192.168.8.30; # backend server } server { listen 192.168.10.1:8080; server\_name cmydomain…

---

## [RedirectHandler](https://www.ruby-forum.com/t/redirecthandler/130415)

<div class="topic-metadata">

**Author:** [@addywaddy](https://www.ruby-forum.com/u/addywaddy)\
**Replies:** 0\
**Last updated:** [February 28, 2008, 12:58am UTC](https://www.ruby-forum.com/t/redirecthandler/130415 "2008-02-28T00:58:29Z")

</div>

Hi, I’m a bit stumped as to how to use Mongrel::RedirectHandler I’ve got a config script in my rails lib directory call assets.rb assets.rb contains: uri “/assets”, :handler =\> Mongrel::RedirectHandler.new("/path/to…

---

## [If ,-f and variables](https://www.ruby-forum.com/t/if-f-and-variables/130366)

<div class="topic-metadata">

**Author:** [@allins](https://www.ruby-forum.com/u/allins)\
**Replies:** 7\
**Last updated:** [February 27, 2008, 11:21pm UTC](https://www.ruby-forum.com/t/if-f-and-variables/130366 "2008-02-27T23:21:17Z")

</div>

this works: if ( -f /ah/sites/colon365.co.uk/public/.maintenance ) { set $maintenance 1; } this doesn’t: if ( -f $document\_root/.maintenance ) { set $maintenance 1; } two questions, is there a way to make the…

---

## [Mapping sites to other sites without using FastCGI/DB](https://www.ruby-forum.com/t/mapping-sites-to-other-sites-without-using-fastcgi-db/130380)

<div class="topic-metadata">

**Author:** [@Brian\_Kirkbride](https://www.ruby-forum.com/u/Brian_Kirkbride)\
**Replies:** 3\
**Last updated:** [February 27, 2008, 9:48pm UTC](https://www.ruby-forum.com/t/mapping-sites-to-other-sites-without-using-fastcgi-db/130380 "2008-02-27T21:48:34Z")

</div>

Hello, I’m new to Nginx but have been very impressed with it – thanks for contributing this great software. I have a mass virtual hosting setup, all sites have the same config and will be served with server\_name \* (w…

---

## [Increasing server\_names\_hash\_bucket\_size](https://www.ruby-forum.com/t/increasing-server-names-hash-bucket-size/130270)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [February 27, 2008, 10:48am UTC](https://www.ruby-forum.com/t/increasing-server-names-hash-bucket-size/130270 "2008-02-27T10:48:18Z")

</div>

hi i have configured nginx for multiple virtual servers, when i start nginx, i get this error: 2008/02/26 13:44:31 \[emerg\] 18598#0: could not build the server\_names\_hash, you should increase server\_names\_hash\_bucket\_…

---

## [X-forwarded-for ip in server access logs](https://www.ruby-forum.com/t/x-forwarded-for-ip-in-server-access-logs/130269)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [February 27, 2008, 7:20am UTC](https://www.ruby-forum.com/t/x-forwarded-for-ip-in-server-access-logs/130269 "2008-02-27T07:20:39Z")

</div>

how do i get the x-forwarded-for ip address in server access logs? i tried this log format in the server section, but i still get the default logs how to fix this? thanks server { listen 8070; server\_n…

---

## [Getting remot4e address](https://www.ruby-forum.com/t/getting-remot4e-address/130260)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [February 26, 2008, 10:47pm UTC](https://www.ruby-forum.com/t/getting-remot4e-address/130260 "2008-02-26T22:47:30Z")

</div>

hi i have haproxy running in front of nginx, and i have the x-forwarded-for enabled in the haproxy configuration. How do I configure nginx so that my fastcgi backends get this IP address as the remote ip address and …

---

## [Proxy\_buffering=off, potential problems? other solutions?](https://www.ruby-forum.com/t/proxy-buffering-off-potential-problems-other-solutions/130211)

<div class="topic-metadata">

**Author:** [@GSSSSbor\_Farkas](https://www.ruby-forum.com/u/GSSSSbor_Farkas)\
**Replies:** 1\
**Last updated:** [February 26, 2008, 8:45pm UTC](https://www.ruby-forum.com/t/proxy-buffering-off-potential-problems-other-solutions/130211 "2008-02-26T20:45:57Z")

</div>

hi, i have a fairly usual configuration of an nginx webserver + an apache-based application-server behind it. when requests come in, then nginx proxies it to apache, etc. my problem is, that in certain cases, i need …

---

## [Upstream server:port variable?](https://www.ruby-forum.com/t/upstream-server-port-variable/130214)

<div class="topic-metadata">

**Author:** [@Mansoor\_P](https://www.ruby-forum.com/u/Mansoor_P)\
**Replies:** 3\
**Last updated:** [February 26, 2008, 8:29pm UTC](https://www.ruby-forum.com/t/upstream-server-port-variable/130214 "2008-02-26T20:29:57Z")

</div>

Hello, A quick question: Does nginx have a variable which will give me the actual upstream server:port for the selected upstream server ? For instance, if I have: upstream xxx { server s1:7070; server s2:7…

---

## [0.6.26 build for Fedora 8](https://www.ruby-forum.com/t/0-6-26-build-for-fedora-8/130205)

<div class="topic-metadata">

**Author:** [@cliffwiggs](https://www.ruby-forum.com/u/cliffwiggs)\
**Replies:** 0\
**Last updated:** [February 26, 2008, 11:47am UTC](https://www.ruby-forum.com/t/0-6-26-build-for-fedora-8/130205 "2008-02-26T11:47:48Z")

</div>

For anyone interested, I’ve created an Fedora 8 build for 0.6.26 (based on the official 0.5.x Fedora spec file). http://wiki.codemongers.com/NginxPlatformFedora Regards, Cliff

---

## [Excessive RAM consumption - memory leak](https://www.ruby-forum.com/t/excessive-ram-consumption-memory-leak/129702)

<div class="topic-metadata">

**Author:** [@thuss](https://www.ruby-forum.com/u/thuss)\
**Replies:** 46\
**Last updated:** [February 26, 2008, 7:57am UTC](https://www.ruby-forum.com/t/excessive-ram-consumption-memory-leak/129702 "2008-02-26T07:57:55Z")

</div>

I am using Nginx 0.5.35 on a server that has a Xeon 5130 dual core, 4 GB of RAM, and 10,000 RPM HD. Nginx serves millions of large images per day. Sometimes tens of millions in a day. Over the past week the server has…

---

## [Mongrel won't start as user nobody](https://www.ruby-forum.com/t/mongrel-wont-start-as-user-nobody/129821)

<div class="topic-metadata">

**Author:** [@armstheykill](https://www.ruby-forum.com/u/armstheykill)\
**Replies:** 1\
**Last updated:** [February 26, 2008, 7:10am UTC](https://www.ruby-forum.com/t/mongrel-wont-start-as-user-nobody/129821 "2008-02-26T07:10:53Z")

</div>

Hi all, My mongrel cluster runs perfectly if I allow it to run as root, but whenever I try to change things to nobody/nobody my mongrels refuse to start and the following shows up in the mongrel logs. I have check…

---

## [High bandwidth configuration help](https://www.ruby-forum.com/t/high-bandwidth-configuration-help/130002)

<div class="topic-metadata">

**Author:** [@nginx.mailinglist](https://www.ruby-forum.com/u/nginx.mailinglist)\
**Replies:** 19\
**Last updated:** [February 25, 2008, 11:52pm UTC](https://www.ruby-forum.com/t/high-bandwidth-configuration-help/130002 "2008-02-25T23:52:54Z")

</div>

Hi how to tweak nginx for large file serving and maximizing the use of available bandwidth? I used to use lighttpd and was able to use 150mbit average at all times with lighttpd (writev backend selected) serving ver…

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

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