# Server

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

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

---

## [Permanent Redirect](https://www.ruby-forum.com/t/permanent-redirect/187341)

<div class="topic-metadata">

**Author:** [@openstream](https://www.ruby-forum.com/u/openstream)\
**Replies:** 5\
**Last updated:** [April 25, 2010, 3:54pm UTC](https://www.ruby-forum.com/t/permanent-redirect/187341 "2010-04-25T15:54:17Z")

</div>

Hi there, I’m trying to permanently redirect various outdated URLs to the domain’s home page like so: location /phpshop { rewrite ^ http://www.my-domain.com permanent; } which results e.g. in http://www.my-domain.…

---

## [Forum \<-\> ML gateway](https://www.ruby-forum.com/t/forum-ml-gateway/187510)

<div class="topic-metadata">

**Author:** [@Alejandro\_Mery](https://www.ruby-forum.com/u/Alejandro_Mery)\
**Replies:** 8\
**Last updated:** [April 25, 2010, 4:40am UTC](https://www.ruby-forum.com/t/forum-ml-gateway/187510 "2010-04-25T04:40:05Z")

</div>

Hello, any idea why the forum/mailing list gateway ignores my replies? do I need to register there or there are certain “tokens” I need to include in the reply? Thanks, Alejandro Mery

---

## [Nginx 0.8.36 and content cached with 0 bytes size](https://www.ruby-forum.com/t/nginx-0-8-36-and-content-cached-with-0-bytes-size/187523)

<div class="topic-metadata">

**Author:** [@Davide\_DSAmico](https://www.ruby-forum.com/u/Davide_DSAmico)\
**Replies:** 0\
**Last updated:** [April 24, 2010, 8:27pm UTC](https://www.ruby-forum.com/t/nginx-0-8-36-and-content-cached-with-0-bytes-size/187523 "2010-04-24T20:27:52Z")

</div>

Hi, Maxim D. pointed me to these patches for the problem I have with content cached with 0 bytes size: http://nginx.org/pipermail/nginx-devel/2010-January/000101.html http://nginx.org/pipermail/nginx-devel/2010-Janu…

---

## [Problem with .htaccess](https://www.ruby-forum.com/t/problem-with-htaccess/187425)

<div class="topic-metadata">

**Author:** [@assassin85](https://www.ruby-forum.com/u/assassin85)\
**Replies:** 3\
**Last updated:** [April 24, 2010, 7:53pm UTC](https://www.ruby-forum.com/t/problem-with-htaccess/187425 "2010-04-24T19:53:56Z")

</div>

hello i have a problem with .htaccess file not workin with nGinx here is is code RewriteEngine On RewriteCond %{HTTP\_HOST} !^vb.sitename.com RewriteCond %{REQUEST\_FILENAME} vb/ RewriteRule (.\*) http://vb.dardarkom.…

---

## [Static homepage at root](https://www.ruby-forum.com/t/static-homepage-at-root/187499)

<div class="topic-metadata">

**Author:** [@yourenew](https://www.ruby-forum.com/u/yourenew)\
**Replies:** 2\
**Last updated:** [April 24, 2010, 12:04pm UTC](https://www.ruby-forum.com/t/static-homepage-at-root/187499 "2010-04-24T12:04:30Z")

</div>

I’m trying to host a static homepage, but send all other queries on to the proxy (which leads to django), but I’m having trouble getting it to work. It seems to ignore the first location directive. Are these correct…

---

## [SMTP Auth passthru](https://www.ruby-forum.com/t/smtp-auth-passthru/187501)

<div class="topic-metadata">

**Author:** [@Alan\_Batie](https://www.ruby-forum.com/u/Alan_Batie)\
**Replies:** 0\
**Last updated:** [April 24, 2010, 4:05am UTC](https://www.ruby-forum.com/t/smtp-auth-passthru/187501 "2010-04-24T04:05:14Z")

</div>

I just had our prototype mailproxy turned into an open relay because nginx doesn’t pass through smtp auth, requiring me to tell the real mailserver to trust it. This could substantially complicate and slow down the a…

---

## [502 Bad Gateway/while SSL handshaking to upstream](https://www.ruby-forum.com/t/502-bad-gateway-while-ssl-handshaking-to-upstream/187452)

<div class="topic-metadata">

**Author:** [@teege](https://www.ruby-forum.com/u/teege)\
**Replies:** 1\
**Last updated:** [April 23, 2010, 10:37am UTC](https://www.ruby-forum.com/t/502-bad-gateway-while-ssl-handshaking-to-upstream/187452 "2010-04-23T10:37:26Z")

</div>

I have been fighting with this one for some time, would appreciate some assistance. in my test environment on ec2, I have: \[ nginx → haproxy \] → \[ apache w/ ajp → tomcat \] → \[ mysql cluster \] nginx and haproxy on the…

---

## [FastCGI security question](https://www.ruby-forum.com/t/fastcgi-security-question/187442)

<div class="topic-metadata">

**Author:** [@JSSSSrSSSSme\_Loyet](https://www.ruby-forum.com/u/JSSSSrSSSSme_Loyet)\
**Replies:** 1\
**Last updated:** [April 23, 2010, 9:01am UTC](https://www.ruby-forum.com/t/fastcgi-security-question/187442 "2010-04-23T09:01:25Z")

</div>

Hi guys, I’m working on php-fpm and I had an idea for a new feature. I’d like to pass fastcgi headers to php-fpm which will set some PHP ini defines. It’s the same as php\_value or php\_admin\_value from the php apache …

---

## [Reverse Proxy Security](https://www.ruby-forum.com/t/reverse-proxy-security/187427)

<div class="topic-metadata">

**Author:** [@karmaboy](https://www.ruby-forum.com/u/karmaboy)\
**Replies:** 4\
**Last updated:** [April 23, 2010, 8:40am UTC](https://www.ruby-forum.com/t/reverse-proxy-security/187427 "2010-04-23T08:40:55Z")

</div>

When using nginx as reverse proxy, to determine the actual client IP address I would need to rely on the X-Real-IP header. Since this is just an HTTP header than can be faked, is it possible for a visitor to include a…

---

## [Mongrel\_rails can't find memcache-client](https://www.ruby-forum.com/t/mongrel-rails-cant-find-memcache-client/185658)

<div class="topic-metadata">

**Author:** [@t\_s](https://www.ruby-forum.com/u/t_s)\
**Replies:** 2\
**Last updated:** [April 23, 2010, 7:47am UTC](https://www.ruby-forum.com/t/mongrel-rails-cant-find-memcache-client/185658 "2010-04-23T07:47:35Z")

</div>

I added memcache-client to our app: config.gem “memcache-client”, :version =\> “1.8.1” According to “gem list” the gem is there: memcache-client (1.8.1) If I run our app with “script/server” everything works just fine…

---

## [Pass headers from FastCGI backend to client while X-Accel-Redirect](https://www.ruby-forum.com/t/pass-headers-from-fastcgi-backend-to-client-while-x-accel-redirect/187398)

<div class="topic-metadata">

**Author:** [@riobard](https://www.ruby-forum.com/u/riobard)\
**Replies:** 2\
**Last updated:** [April 23, 2010, 2:29am UTC](https://www.ruby-forum.com/t/pass-headers-from-fastcgi-backend-to-client-while-x-accel-redirect/187398 "2010-04-23T02:29:49Z")

</div>

Hi, I’m having some trouble with FastCGI backend sending custom headers to client while using X-Accel-Redirect. My backend PHP does something like this: header( “custom-header: some-value” ); header( "X-Accel-Redire…

---

## [Sponsoring feature development?](https://www.ruby-forum.com/t/sponsoring-feature-development/187319)

<div class="topic-metadata">

**Author:** [@S\_H](https://www.ruby-forum.com/u/S_H)\
**Replies:** 5\
**Last updated:** [April 22, 2010, 7:48pm UTC](https://www.ruby-forum.com/t/sponsoring-feature-development/187319 "2010-04-22T19:48:10Z")

</div>

Requests for non-buffered uploads in a proxy situation seem to have cropped up regularly on this list (the most recent just about a week ago). I’m interested in this feature as it would let me replace my slowly failin…

---

## [Nginx-0.8.36](https://www.ruby-forum.com/t/nginx-0-8-36/187416)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 0\
**Last updated:** [April 22, 2010, 7:45pm UTC](https://www.ruby-forum.com/t/nginx-0-8-36/187416 "2010-04-22T19:45:50Z")

</div>

Changes with nginx 0.8.36 22 Apr 2010 \*) Bugfix: the ngx\_http\_dav\_module handled incorrectly the DELETE, COPY, and MOVE methods for symlinks. \*) Bugfix: values of the $query\_s…

---

## [Can somebody fix this nginx error?](https://www.ruby-forum.com/t/can-somebody-fix-this-nginx-error/187355)

<div class="topic-metadata">

**Author:** [@escavern](https://www.ruby-forum.com/u/escavern)\
**Replies:** 6\
**Last updated:** [April 22, 2010, 5:34pm UTC](https://www.ruby-forum.com/t/can-somebody-fix-this-nginx-error/187355 "2010-04-22T17:34:39Z")

</div>

my websites always shows “error, The page you are looking for is temporarily unavailable.” if the traffic going high, lets say more than 500 visitors… and then i open my error.log, here is inside it…: 2010/04/21 08:27…

---

## [Nginx changes "Location" header passed by backend](https://www.ruby-forum.com/t/nginx-changes-location-header-passed-by-backend/187386)

<div class="topic-metadata">

**Author:** [@Rabenschwinge](https://www.ruby-forum.com/u/Rabenschwinge)\
**Replies:** 2\
**Last updated:** [April 22, 2010, 1:38pm UTC](https://www.ruby-forum.com/t/nginx-changes-location-header-passed-by-backend/187386 "2010-04-22T13:38:03Z")

</div>

Hello, I’ve quoted two sets of reply headers for the same request. The first was the reply of the backend server, captured by tcpdump. The second is the reply of the nginx server as captured by Firebug. Could anyone t…

---

## [Forcing Nginx to render response from Rails application](https://www.ruby-forum.com/t/forcing-nginx-to-render-response-from-rails-application/187384)

<div class="topic-metadata">

**Author:** [@retro](https://www.ruby-forum.com/u/retro)\
**Replies:** 0\
**Last updated:** [April 22, 2010, 12:31pm UTC](https://www.ruby-forum.com/t/forcing-nginx-to-render-response-from-rails-application/187384 "2010-04-22T12:31:53Z")

</div>

Hi, I’m using Nginx with Phusion Passenger, and I would like to render some responses from Rails App even though file exists at that URI on server. I want to do this based on subdomain from which request is coming. Is…

---

## [Nginx slow at streaming flv or strange behavior](https://www.ruby-forum.com/t/nginx-slow-at-streaming-flv-or-strange-behavior/187379)

<div class="topic-metadata">

**Author:** [@vnjug](https://www.ruby-forum.com/u/vnjug)\
**Replies:** 1\
**Last updated:** [April 22, 2010, 12:28pm UTC](https://www.ruby-forum.com/t/nginx-slow-at-streaming-flv-or-strange-behavior/187379 "2010-04-22T12:28:23Z")

</div>

Hi all, I have installed nginx 0.8.35 (flv streaming and h264 module enabled) on my production video streaming server to see if it can perform better than lighttpd. However, lighttpd outperforms nginx + speed + th…

---

## [The page you are looking for is temporarily unavailable. whem my visitors reach over 500+ ! does an](https://www.ruby-forum.com/t/the-page-you-are-looking-for-is-temporarily-unavailable-whem-my-visitors-reach-over-500-does-an/187314)

<div class="topic-metadata">

**Author:** [@escavern](https://www.ruby-forum.com/u/escavern)\
**Replies:** 2\
**Last updated:** [April 21, 2010, 5:20pm UTC](https://www.ruby-forum.com/t/the-page-you-are-looking-for-is-temporarily-unavailable-whem-my-visitors-reach-over-500-does-an/187314 "2010-04-21T17:20:18Z")

</div>

i have a problem, everytime my visitors going high and higher above 500+, sometimes i get message: “Server error The page you are looking for is temporarily unavailable. Please try again later” how to fix this? do i h…

---

## [Problems with upstream](https://www.ruby-forum.com/t/problems-with-upstream/187270)

<div class="topic-metadata">

**Author:** [@mevans336](https://www.ruby-forum.com/u/mevans336)\
**Replies:** 3\
**Last updated:** [April 21, 2010, 1:21pm UTC](https://www.ruby-forum.com/t/problems-with-upstream/187270 "2010-04-21T13:21:57Z")

</div>

Hello, I am working on replacing our Kemp Loadbalancers with nginx and so far, things look good except for a minor issue. When a request comes into my server on the HTTP port, our JBoss server uses ACEGI to redirect t…

---

## [Random Host selection](https://www.ruby-forum.com/t/random-host-selection/187207)

<div class="topic-metadata">

**Author:** [@jorge\_niedbalski](https://www.ruby-forum.com/u/jorge_niedbalski)\
**Replies:** 2\
**Last updated:** [April 20, 2010, 7:14pm UTC](https://www.ruby-forum.com/t/random-host-selection/187207 "2010-04-20T19:14:50Z")

</div>

Hi List, Anybody knows a way to pick a random host from a hosts pool for a rewrite rule ? Thanks you in advance.

---

## [Looking for full-time nginx C developers](https://www.ruby-forum.com/t/looking-for-full-time-nginx-c-developers/187220)

<div class="topic-metadata">

**Author:** [@agentzh](https://www.ruby-forum.com/u/agentzh)\
**Replies:** 2\
**Last updated:** [April 20, 2010, 7:59am UTC](https://www.ruby-forum.com/t/looking-for-full-time-nginx-c-developers/187220 "2010-04-20T07:59:12Z")

</div>

Hi, folks! Sorry, this is not an email that announce a new release of one of our modules. Rather, this is a “spam” :stuck\_out\_tongue: We’re looking for (senior) nginx C developers to work with us in Taobao.com’s data…

---

## [\-f $request\_filename](https://www.ruby-forum.com/t/f-request-filename/187186)

<div class="topic-metadata">

**Author:** [@Tomasz\_P](https://www.ruby-forum.com/u/Tomasz_P)\
**Replies:** 8\
**Last updated:** [April 20, 2010, 7:24am UTC](https://www.ruby-forum.com/t/f-request-filename/187186 "2010-04-20T07:24:04Z")

</div>

Hello, Got something like this, but the break seams to not work, and the file is being processed by the php fastcgi process. Any clue why? location / { if (-f $request\_filename) { root /vhosts/default/test; break; …

---

## [How to redirect user from www.myhostname.com to hostname.com](https://www.ruby-forum.com/t/how-to-redirect-user-from-www-myhostname-com-to-hostname-com/187222)

<div class="topic-metadata">

**Author:** [@escavern](https://www.ruby-forum.com/u/escavern)\
**Replies:** 2\
**Last updated:** [April 20, 2010, 4:23am UTC](https://www.ruby-forum.com/t/how-to-redirect-user-from-www-myhostname-com-to-hostname-com/187222 "2010-04-20T04:23:49Z")

</div>

how to redirect user from http://www.myhostname.com to http://hostname.com ?? i mean if they access http://www.myhostname.com he will be redirected to http://hostname.com pls help me Posted at Nginx Forum:

---

## [Replace string on proxy request](https://www.ruby-forum.com/t/replace-string-on-proxy-request/187203)

<div class="topic-metadata">

**Author:** [@alberto](https://www.ruby-forum.com/u/alberto)\
**Replies:** 4\
**Last updated:** [April 20, 2010, 4:21am UTC](https://www.ruby-forum.com/t/replace-string-on-proxy-request/187203 "2010-04-20T04:21:28Z")

</div>

We are using nginx as a reverse proxy, and we want to modify some strings on the body response. The problem is this one: http://www.doman.com → proxied to → http://192.168.0.0/ We get into the body response links lik…

---

## [Whats the problem, upstream? kernel? nginx? Need your help](https://www.ruby-forum.com/t/whats-the-problem-upstream-kernel-nginx-need-your-help/187137)

<div class="topic-metadata">

**Author:** [@yong\_xue](https://www.ruby-forum.com/u/yong_xue)\
**Replies:** 1\
**Last updated:** [April 19, 2010, 12:09pm UTC](https://www.ruby-forum.com/t/whats-the-problem-upstream-kernel-nginx-need-your-help/187137 "2010-04-19T12:09:43Z")

</div>

hi,all This is the url, http://124.115.14.23/http\_imgload.cgi?/rurl4\_b=86e76ed3fe8a925d6727a22b2df8fa6dd25a6ea7fb934efe3d7336ce51a4a93f3ae2dea54fb40d43a4d68660f07135d4f62b761d36493b0aef204c08c35da510918f6ec079d49b4ab9…

---

## [Max file descriptor needed by nginx](https://www.ruby-forum.com/t/max-file-descriptor-needed-by-nginx/187181)

<div class="topic-metadata">

**Author:** [@Vincent\_MAUGE](https://www.ruby-forum.com/u/Vincent_MAUGE)\
**Replies:** 0\
**Last updated:** [April 19, 2010, 12:03pm UTC](https://www.ruby-forum.com/t/max-file-descriptor-needed-by-nginx/187181 "2010-04-19T12:03:52Z")

</div>

Hey, I have a question concerning max file descriptor need by nginx. The page http://wiki.nginx.org/NginxHttpEventsModule#worker\_connections said that nginx use one pool for internet connection. But which pool is use…

---

## [A lot of crit error in logs](https://www.ruby-forum.com/t/a-lot-of-crit-error-in-logs/187075)

<div class="topic-metadata">

**Author:** [@solarisik](https://www.ruby-forum.com/u/solarisik)\
**Replies:** 4\
**Last updated:** [April 19, 2010, 10:01am UTC](https://www.ruby-forum.com/t/a-lot-of-crit-error-in-logs/187075 "2010-04-19T10:01:29Z")

</div>

I use nginx for reverse proxy on front of apache2. I get a lot of crit messages in logs like this. 2010/04/16 17:20:32 1730#0: \*468039 rename() “/webhost/tmp/0004372283” to “/webhost/tmp/xxxxxxx/” failed (20: Not a d…

---

## [Concurrent connections == Active Connections?](https://www.ruby-forum.com/t/concurrent-connections-active-connections/187173)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 19, 2010, 8:51am UTC](https://www.ruby-forum.com/t/concurrent-connections-active-connections/187173 "2010-04-19T08:51:14Z")

</div>

as title anybody can tell me ?

---

## [502 Proxy Error](https://www.ruby-forum.com/t/502-proxy-error/187112)

<div class="topic-metadata">

**Author:** [@chuj625](https://www.ruby-forum.com/u/chuj625)\
**Replies:** 5\
**Last updated:** [April 17, 2010, 3:51pm UTC](https://www.ruby-forum.com/t/502-proxy-error/187112 "2010-04-17T15:51:24Z")

</div>

i build a service with nginx When i visit it frequently(serval times per second, may be more frequently), it will delay the request or just give back “502 Proxy Error” What shall i do if i do not want it to delay req…

---

## [Help needed with simple rewrite rule](https://www.ruby-forum.com/t/help-needed-with-simple-rewrite-rule/187120)

<div class="topic-metadata">

**Author:** [@RoastedPeanut](https://www.ruby-forum.com/u/RoastedPeanut)\
**Replies:** 0\
**Last updated:** [April 17, 2010, 3:16pm UTC](https://www.ruby-forum.com/t/help-needed-with-simple-rewrite-rule/187120 "2010-04-17T15:16:52Z")

</div>

Ok, so, I’ve been banging my head against the wall for an hour or so, and I feel an idiot…: I’ve just moved a vbulletin 4 forum to nginx, and for some arcane reason, these URLs work: http://mysite.com/forumdisplay.ph…

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

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