# Server

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

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

---

## [Returning custom errors in authentication module](https://www.ruby-forum.com/t/returning-custom-errors-in-authentication-module/175296)

<div class="topic-metadata">

**Author:** [@ckharris](https://www.ruby-forum.com/u/ckharris)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 7:10pm UTC](https://www.ruby-forum.com/t/returning-custom-errors-in-authentication-module/175296 "2009-09-10T19:10:31Z")

</div>

Hello - In building my OAuth authentication module, I want to create way to provide as much salient feedback as possible to the client while also allowing custom error messages for the server. For example, instead of …

---

## [Several ssl certs -\> trouble](https://www.ruby-forum.com/t/several-ssl-certs-trouble/175287)

<div class="topic-metadata">

**Author:** [@inbreed](https://www.ruby-forum.com/u/inbreed)\
**Replies:** 5\
**Last updated:** [September 10, 2009, 6:16pm UTC](https://www.ruby-forum.com/t/several-ssl-certs-trouble/175287 "2009-09-10T18:16:03Z")

</div>

Hi, i installed nginx having 5-6 domains set up, each w/ some subdomains, runs well ! now that i added some ssl-certificates, i noticed, that the server seems to use the same cert for all 443 serversettings. example…

---

## [How to get proxy cache hit rate?](https://www.ruby-forum.com/t/how-to-get-proxy-cache-hit-rate/175272)

<div class="topic-metadata">

**Author:** [@Chancey](https://www.ruby-forum.com/u/Chancey)\
**Replies:** 2\
**Last updated:** [September 10, 2009, 5:27pm UTC](https://www.ruby-forum.com/t/how-to-get-proxy-cache-hit-rate/175272 "2009-09-10T17:27:27Z")

</div>

Hi, Igor: proxy cache is very good ,but how to get the hit rate? 2009-09-10 Chancey

---

## [Offloading Background Tasks](https://www.ruby-forum.com/t/offloading-background-tasks/130640)

<div class="topic-metadata">

**Author:** [@xgamerx](https://www.ruby-forum.com/u/xgamerx)\
**Replies:** 8\
**Last updated:** [September 10, 2009, 5:19pm UTC](https://www.ruby-forum.com/t/offloading-background-tasks/130640 "2009-09-10T17:19:35Z")

</div>

Hello everyone, I am very interested in off-loading tasks from the request/response cycle in order to speed up my application. My application is heavily connected to using web services both external and from other ser…

---

## [Maintenance of mod\_wsgi](https://www.ruby-forum.com/t/maintenance-of-mod-wsgi/175044)

<div class="topic-metadata">

**Author:** [@gregbugaj](https://www.ruby-forum.com/u/gregbugaj)\
**Replies:** 4\
**Last updated:** [September 10, 2009, 5:12pm UTC](https://www.ruby-forum.com/t/maintenance-of-mod-wsgi/175044 "2009-09-10T17:12:48Z")

</div>

Hello. I was trying to compile the latest mod\_wsgi from site: http://hg.mperillo.ath.cx/nginx/mod\_wsgi/ (as wiki suggest). But while make I have error: /usr/src/mod\_wsgi//src/ngx\_http\_wsgi\_module.c /usr/…

---

## [Is it better to upstream php processes via nginx or use a front facing load balancer?](https://www.ruby-forum.com/t/is-it-better-to-upstream-php-processes-via-nginx-or-use-a-front-facing-load-balancer/175208)

<div class="topic-metadata">

**Author:** [@iberci](https://www.ruby-forum.com/u/iberci)\
**Replies:** 3\
**Last updated:** [September 10, 2009, 3:07pm UTC](https://www.ruby-forum.com/t/is-it-better-to-upstream-php-processes-via-nginx-or-use-a-front-facing-load-balancer/175208 "2009-09-10T15:07:31Z")

</div>

Hi, Is it better to use a hardware load balancer in front of multiple nginx boxes, each running their own php processes or is it better to use nginx’s upstream functionality and round robin php requests?

---

## [Modifying nginx for use as transparent, forward proxy](https://www.ruby-forum.com/t/modifying-nginx-for-use-as-transparent-forward-proxy/175269)

<div class="topic-metadata">

**Author:** [@mpaxton](https://www.ruby-forum.com/u/mpaxton)\
**Replies:** 2\
**Last updated:** [September 10, 2009, 12:36pm UTC](https://www.ruby-forum.com/t/modifying-nginx-for-use-as-transparent-forward-proxy/175269 "2009-09-10T12:36:29Z")

</div>

Hi All, My understanding is that nginx cannot be used as a forward proxy out of the box. Is this correct? If so, my thinking is that by making some small modifications to ngx\_http\_proxy\_module.c, it would be possibl…

---

## [Serving static files via a cookiless subdomain?](https://www.ruby-forum.com/t/serving-static-files-via-a-cookiless-subdomain/175234)

<div class="topic-metadata">

**Author:** [@iberci](https://www.ruby-forum.com/u/iberci)\
**Replies:** 1\
**Last updated:** [September 10, 2009, 2:31am UTC](https://www.ruby-forum.com/t/serving-static-files-via-a-cookiless-subdomain/175234 "2009-09-10T02:31:45Z")

</div>

Hi All, We serve MANY .mp3 file and images. These files hardly ever change so I’m thinking about serving them off of a “cookieless” domain per suggestion of the yslow component. Does it make sense in general to …

---

## [Fild Form variables inside a C module](https://www.ruby-forum.com/t/fild-form-variables-inside-a-c-module/175214)

<div class="topic-metadata">

**Author:** [@Ranier\_Vilela](https://www.ruby-forum.com/u/Ranier_Vilela)\
**Replies:** 0\
**Last updated:** [September 9, 2009, 8:21pm UTC](https://www.ruby-forum.com/t/fild-form-variables-inside-a-c-module/175214 "2009-09-09T20:21:47Z")

</div>

Hi All, I´m trying develop a C module from Apache to NGINX, as part of a study. But I’m not having success! How to obtain, field form variables inside a C module in NGINX? r-\>args ??? Anybody may indicate a directio…

---

## [Include output from shell script](https://www.ruby-forum.com/t/include-output-from-shell-script/175213)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [September 9, 2009, 7:39pm UTC](https://www.ruby-forum.com/t/include-output-from-shell-script/175213 "2009-09-09T19:39:03Z")

</div>

Hello, is there a similar option to the lighttpd include\_shell? I use a shell script to generate some of my config and I want to include the output. Up to this point nginx covered everything I needed. I hope this is …

---

## [Nginx KeepAlive](https://www.ruby-forum.com/t/nginx-keepalive/175179)

<div class="topic-metadata">

**Author:** [@sameer](https://www.ruby-forum.com/u/sameer)\
**Replies:** 1\
**Last updated:** [September 9, 2009, 12:08pm UTC](https://www.ruby-forum.com/t/nginx-keepalive/175179 "2009-09-09T12:08:14Z")

</div>

Hi, I am using nginx to proxy requests to Apache. In our current setup the request flow is as follows. Akamai → Load Balancer(Layer4) -\>nginx → Apache I am in the process of converting a cluster to this setup. The is…

---

## [Multiple rails apps on different ports w/ Apache/Passenger](https://www.ruby-forum.com/t/multiple-rails-apps-on-different-ports-w-apache-passenger/175149)

<div class="topic-metadata">

**Author:** [@phudson1442](https://www.ruby-forum.com/u/phudson1442)\
**Replies:** 3\
**Last updated:** [September 9, 2009, 2:59am UTC](https://www.ruby-forum.com/t/multiple-rails-apps-on-different-ports-w-apache-passenger/175149 "2009-09-09T02:59:40Z")

</div>

Hi there. This thread is the closest to what I’m trying to do. http://www.ruby-forum.com/topic/132408#new I have three rails apps on one machine with Apache2/Passenger/REE. I want them available at www.example.com/a…

---

## [Any interest in an OAuth module for Nginx?](https://www.ruby-forum.com/t/any-interest-in-an-oauth-module-for-nginx/175150)

<div class="topic-metadata">

**Author:** [@ckharris](https://www.ruby-forum.com/u/ckharris)\
**Replies:** 0\
**Last updated:** [September 9, 2009, 2:32am UTC](https://www.ruby-forum.com/t/any-interest-in-an-oauth-module-for-nginx/175150 "2009-09-09T02:32:09Z")

</div>

Hello - I’m currently writing a REST API that uses 2-legged OAuth authentication. (For those who are interested, the web service is here: http://bcws.brightcloud.com). Our application servers are currently doing the…

---

## [Split-server{ } subdomains](https://www.ruby-forum.com/t/split-server-subdomains/175146)

<div class="topic-metadata">

**Author:** [@Nuno\_MagalhSSSSes](https://www.ruby-forum.com/u/Nuno_MagalhSSSSes)\
**Replies:** 4\
**Last updated:** [September 9, 2009, 12:30am UTC](https://www.ruby-forum.com/t/split-server-subdomains/175146 "2009-09-09T00:30:22Z")

</div>

Hi, Can i have: server{ listen 80; server\_name domain.com www.domain.com; root /dir1; } server{ listen 80; server\_name sub.domain.com; root /dir2; } Without adding an A-record for sub.domain.com’s DNS? TIA, …

---

## [Php-apc and Nginx](https://www.ruby-forum.com/t/php-apc-and-nginx/175141)

<div class="topic-metadata">

**Author:** [@Michael\_Baudino](https://www.ruby-forum.com/u/Michael_Baudino)\
**Replies:** 3\
**Last updated:** [September 9, 2009, 12:08am UTC](https://www.ruby-forum.com/t/php-apc-and-nginx/175141 "2009-09-09T00:08:07Z")

</div>

Hello everyone, I’m running OpenUpload 0.4.1 (a RapidShare-like web-app) on nginx-0.6.32 with php-5.2.6 and php-apc-3.0.19 (all but openupload are from debian stable repositories). Everything is working fine, except …

---

## [Mass hosting with ldap backend?](https://www.ruby-forum.com/t/mass-hosting-with-ldap-backend/175139)

<div class="topic-metadata">

**Author:** [@Xavier\_Beaudouin](https://www.ruby-forum.com/u/Xavier_Beaudouin)\
**Replies:** 0\
**Last updated:** [September 8, 2009, 9:03pm UTC](https://www.ruby-forum.com/t/mass-hosting-with-ldap-backend/175139 "2009-09-08T21:03:08Z")

</div>

Hello there, I’m the author of mod\_vhs (apache stuff…) and I really like to make some module like this for nginx. The idea of module is to auto configure the webserver uppon the request to allow some nice stuff (eg, …

---

## [Proxy module connection timeout during file upload](https://www.ruby-forum.com/t/proxy-module-connection-timeout-during-file-upload/175140)

<div class="topic-metadata">

**Author:** [@tommy](https://www.ruby-forum.com/u/tommy)\
**Replies:** 2\
**Last updated:** [September 8, 2009, 8:23pm UTC](https://www.ruby-forum.com/t/proxy-module-connection-timeout-during-file-upload/175140 "2009-09-08T20:23:20Z")

</div>

Hi, I use nginx in front of apache using the proxy module. I want to upload a 2 MB file which is then processed by apache+php. Processing takes about 3 minutes. After aprox 71 to 75 seconds nginx terminates the conne…

---

## [: invalid parameter "backup" error on Ubuntu](https://www.ruby-forum.com/t/invalid-parameter-backup-error-on-ubuntu/175130)

<div class="topic-metadata">

**Author:** [@stefancaunter](https://www.ruby-forum.com/u/stefancaunter)\
**Replies:** 5\
**Last updated:** [September 8, 2009, 7:44pm UTC](https://www.ruby-forum.com/t/invalid-parameter-backup-error-on-ubuntu/175130 "2009-09-08T19:44:42Z")

</div>

Greetings: I am running 0.8.14 on Ubuntu (compiled from source with openssl). Desired result is static cache as backup for dynamic asp webapp. Cache builds nicely, serves fine on 127.0.0.2:80 or unix socket, however w…

---

## [How can i write this location?](https://www.ruby-forum.com/t/how-can-i-write-this-location/175120)

<div class="topic-metadata">

**Author:** [@Chancey](https://www.ruby-forum.com/u/Chancey)\
**Replies:** 1\
**Last updated:** [September 8, 2009, 4:53pm UTC](https://www.ruby-forum.com/t/how-can-i-write-this-location/175120 "2009-09-08T16:53:46Z")

</div>

Hi guys! How to set expires the URL like http://a.com/a.js?v=xxx and http://a.com/a.css?v=xxx. only match URL with “?v=” i write this, but can’t invalidation : location ~\* \\.(js|css)\\?v=.\* { expires …

---

## [I found thy solution method](https://www.ruby-forum.com/t/i-found-thy-solution-method/175121)

<div class="topic-metadata">

**Author:** [@Chancey](https://www.ruby-forum.com/u/Chancey)\
**Replies:** 1\
**Last updated:** [September 8, 2009, 1:35pm UTC](https://www.ruby-forum.com/t/i-found-thy-solution-method/175121 "2009-09-08T13:35:55Z")

</div>

i found thy solution method: location ~\* ^.+\\.(htm|html|js|css|gif|png|jpg|xml)$ { if ($request\_uri ~\* ^.+\\.(js|css)\\?v=) { expires max; } expires 6h; } 2…

---

## [Nginx-0.8.14](https://www.ruby-forum.com/t/nginx-0-8-14/175071)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 2\
**Last updated:** [September 7, 2009, 7:04pm UTC](https://www.ruby-forum.com/t/nginx-0-8-14/175071 "2009-09-07T19:04:25Z")

</div>

Changes with nginx 0.8.14 07 Sep 2009 \*) Bugfix: an expired cached response might stick in the "UPDATING" state. \*) Bugfix: a segmentation fault might occur in worker process,…

---

## [NGINX and IMAP](https://www.ruby-forum.com/t/nginx-and-imap/174975)

<div class="topic-metadata">

**Author:** [@brainjuice](https://www.ruby-forum.com/u/brainjuice)\
**Replies:** 2\
**Last updated:** [September 7, 2009, 3:59pm UTC](https://www.ruby-forum.com/t/nginx-and-imap/174975 "2009-09-07T15:59:25Z")

</div>

Hello all, I am writing to ask that you consider if you have any knowledge to share regarding creating Filter or Upstream Handlers for NGINX or, more specifically, in extending the Mail Modules. My goal is to be able…

---

## [How can I get client's real IP behind F5](https://www.ruby-forum.com/t/how-can-i-get-clients-real-ip-behind-f5/175075)

<div class="topic-metadata">

**Author:** [@wuzhez](https://www.ruby-forum.com/u/wuzhez)\
**Replies:** 1\
**Last updated:** [September 7, 2009, 3:33pm UTC](https://www.ruby-forum.com/t/how-can-i-get-clients-real-ip-behind-f5/175075 "2009-09-07T15:33:05Z")

</div>

Hi all, I use F5 for load balance, and how can I get client’s Real IP, I had tried the NginxHttpRealIpModule, but it doesn’t work. And my log format: $remote\_addr - $remote\_user \[$time\_local\] “$request” ’ '$status $…

---

## [Forward IP address to proxied server](https://www.ruby-forum.com/t/forward-ip-address-to-proxied-server/151027)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 2\
**Last updated:** [September 7, 2009, 10:27am UTC](https://www.ruby-forum.com/t/forward-ip-address-to-proxied-server/151027 "2009-09-07T10:27:29Z")

</div>

Hi everyone, I’m using nginx as a reverse proxy for a thttpd server that handles cgi scripts. Everything works ok, except that the server doesn’t seem to receive any visitor info, every IP is interpreted as 127.0.0.1…

---

## [Help to config nginx](https://www.ruby-forum.com/t/help-to-config-nginx/174832)

<div class="topic-metadata">

**Author:** [@pepejose](https://www.ruby-forum.com/u/pepejose)\
**Replies:** 5\
**Last updated:** [September 7, 2009, 9:17am UTC](https://www.ruby-forum.com/t/help-to-config-nginx/174832 "2009-09-07T09:17:49Z")

</div>

hello, (sorry for my English) I’m testing nginx as a proxy in front of apache. this is my config file… user apache apache; worker\_processes 1; #log levels \[ debug | info | notice | warn | error | crit \] error\_log…

---

## [Can't read page itself](https://www.ruby-forum.com/t/cant-read-page-itself/174922)

<div class="topic-metadata">

**Author:** [@afen](https://www.ruby-forum.com/u/afen)\
**Replies:** 7\
**Last updated:** [September 7, 2009, 7:42am UTC](https://www.ruby-forum.com/t/cant-read-page-itself/174922 "2009-09-07T07:42:58Z")

</div>

if your page test.php $html=@file\_get\_contents(“http://localhost/test.php”); then error Posted at Nginx Forum:

---

## [Upload files?](https://www.ruby-forum.com/t/upload-files/175023)

<div class="topic-metadata">

**Author:** [@ronin](https://www.ruby-forum.com/u/ronin)\
**Replies:** 7\
**Last updated:** [September 7, 2009, 4:59am UTC](https://www.ruby-forum.com/t/upload-files/175023 "2009-09-07T04:59:42Z")

</div>

I use nginx 07.61 upload files Often failï¼Œusing normal apache nginx.conf: server\_names\_hash\_bucket\_size 128; client\_header\_buffer\_size 32k; large\_client\_header\_buffers 4 32k; client\_max\_body\_size 8m; sendfile on; …

---

## [502 bad gateway, something about the header?](https://www.ruby-forum.com/t/502-bad-gateway-something-about-the-header/174615)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 10\
**Last updated:** [September 6, 2009, 1:54pm UTC](https://www.ruby-forum.com/t/502-bad-gateway-something-about-the-header/174615 "2009-09-06T13:54:49Z")

</div>

Does anyone see a problem here? The fastcgi parser returns back a -2, instead of 0 on a normal request. I don’t see anything wrong with this header - the only thing that sticks out is the “//” - but still - I think t…

---

## [Nginx internals talk in Guangzhou, China](https://www.ruby-forum.com/t/nginx-internals-talk-in-guangzhou-china/174961)

<div class="topic-metadata">

**Author:** [@Joshua\_Z](https://www.ruby-forum.com/u/Joshua_Z)\
**Replies:** 9\
**Last updated:** [September 6, 2009, 1:47pm UTC](https://www.ruby-forum.com/t/nginx-internals-talk-in-guangzhou-china/174961 "2009-09-06T13:47:48Z")

</div>

Hi, FYI, I’m going to give a free talk on nginx’s internals this month (September 19), in Guangzhou, China. I’ve been reading the source code of nginx for a few days. Digging into this charming code is really a pleas…

---

## [Use nginx as proxy with cache for satic files](https://www.ruby-forum.com/t/use-nginx-as-proxy-with-cache-for-satic-files/174968)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [September 6, 2009, 7:23am UTC](https://www.ruby-forum.com/t/use-nginx-as-proxy-with-cache-for-satic-files/174968 "2009-09-06T07:23:15Z")

</div>

Hi, I want to use nginx as a reverse proxy to my backend server with a cache for the static files. Proxy and cache work perfectly, when I do it like this: location / { proxy\_pass http://backend.server.org/; proxy\_c…

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

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