# Server

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

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

---

## [Load balancing algorithms](https://www.ruby-forum.com/t/load-balancing-algorithms/190310)

<div class="topic-metadata">

**Author:** [@steux](https://www.ruby-forum.com/u/steux)\
**Replies:** 2\
**Last updated:** [June 17, 2010, 4:35pm UTC](https://www.ruby-forum.com/t/load-balancing-algorithms/190310 "2010-06-17T16:35:19Z")

</div>

Hi everyone! As load balancer for other phisical back-end servers, does nginx provides a algorithm other than simple round-robin? regards, Bruno GuimarÃ£es Sousa www.ifba.edu.br PONTONET - DGTI - IFBA CiÃªncia da …

---

## [Since 0.8.37 mp4 streaming does not compile](https://www.ruby-forum.com/t/since-0-8-37-mp4-streaming-does-not-compile/190223)

<div class="topic-metadata">

**Author:** [@doug\_m](https://www.ruby-forum.com/u/doug_m)\
**Replies:** 2\
**Last updated:** [June 17, 2010, 4:27pm UTC](https://www.ruby-forum.com/t/since-0-8-37-mp4-streaming-does-not-compile/190223 "2010-06-17T16:27:01Z")

</div>

Using ./configure --with-http\_stub\_status\_module --user=nginx –group=nginx –with-http\_flv\_module --add-module=nginx\_mod\_h264\_streaming-2.2.7 –sbin-path=/usr/local/sbin Now make fails with In file included from ngin…

---

## [Add\_header not allowed in server if blocks?](https://www.ruby-forum.com/t/add-header-not-allowed-in-server-if-blocks/190306)

<div class="topic-metadata">

**Author:** [@steveh](https://www.ruby-forum.com/u/steveh)\
**Replies:** 3\
**Last updated:** [June 17, 2010, 4:27pm UTC](https://www.ruby-forum.com/t/add-header-not-allowed-in-server-if-blocks/190306 "2010-06-17T16:27:01Z")

</div>

I’m trying to add support for google chrome frame to our nginx config the simple way would be to include a fragment in each server block which looks something like: if ( $http\_user\_agent ~ chromeframe ) { …

---

## [Internet Explorer issues with Nginx where Firefox works fine](https://www.ruby-forum.com/t/internet-explorer-issues-with-nginx-where-firefox-works-fine/190274)

<div class="topic-metadata">

**Author:** [@dandadude](https://www.ruby-forum.com/u/dandadude)\
**Replies:** 1\
**Last updated:** [June 17, 2010, 4:27pm UTC](https://www.ruby-forum.com/t/internet-explorer-issues-with-nginx-where-firefox-works-fine/190274 "2010-06-17T16:27:00Z")

</div>

Hi! I have just started to use Nginx recently, but have stumbled into a big problem. I am using Nginx as a frontend for Apache, without caching. Many sites have somekind of problem with Internex Explorer, because whe…

---

## [SSL Problem](https://www.ruby-forum.com/t/ssl-problem/190287)

<div class="topic-metadata">

**Author:** [@karthik](https://www.ruby-forum.com/u/karthik)\
**Replies:** 2\
**Last updated:** [June 17, 2010, 4:26pm UTC](https://www.ruby-forum.com/t/ssl-problem/190287 "2010-06-17T16:26:22Z")

</div>

Hi nginx team, We have taken the comodo certificate for our web application with apache web server. Now we changed the web server from apache to Nginx. But we are getting the problem in session with nginx + comodo ce…

---

## [Can I modify headers\_out's "location" in body filter?](https://www.ruby-forum.com/t/can-i-modify-headers-outs-location-in-body-filter/190255)

<div class="topic-metadata">

**Author:** [@ckong](https://www.ruby-forum.com/u/ckong)\
**Replies:** 2\
**Last updated:** [June 17, 2010, 4:26pm UTC](https://www.ruby-forum.com/t/can-i-modify-headers-outs-location-in-body-filter/190255 "2010-06-17T16:26:21Z")

</div>

Hi all, I’m a newbie in nginx module development. I’ve a question here, need your help. I’m trying to develop a filter, which works with memcached, is used for request routing. for example, the conf here: location …

---

## [Joomla in a subfolder](https://www.ruby-forum.com/t/joomla-in-a-subfolder/190304)

<div class="topic-metadata">

**Author:** [@michaeljoser](https://www.ruby-forum.com/u/michaeljoser)\
**Replies:** 1\
**Last updated:** [June 17, 2010, 4:26pm UTC](https://www.ruby-forum.com/t/joomla-in-a-subfolder/190304 "2010-06-17T16:26:21Z")

</div>

Hello, I managed to get joomla clean url if joomla is in the root of my domain by following the wiki but i cant get it to work in the scenario http://mydomain/joomlafolder/ (i.e if joomla is in a folder in my websit…

---

## [Issue with upstream hash](https://www.ruby-forum.com/t/issue-with-upstream-hash/190203)

<div class="topic-metadata">

**Author:** [@Wuvist](https://www.ruby-forum.com/u/Wuvist)\
**Replies:** 1\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/issue-with-upstream-hash/190203 "2010-06-17T16:22:48Z")

</div>

Hi, I’m new to Nginx. Really like it. I was trying to use it as reverse proxy, with following config: http { upstream mobile{ hash $arg\_userid server 192.168.0.180; server 192.168.0.2:80; server 192.168.0.3:80; } …

---

## [Nginx-0.8.41](https://www.ruby-forum.com/t/nginx-0-8-41/190315)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 0\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/nginx-0-8-41/190315 "2010-06-17T16:22:48Z")

</div>

Changes with nginx 0.8.41 15 Jun 2010 \*) Security: nginx/Windows worker might be terminated abnormally if a requested file name has invalid UTF-8 encoding. \*) Change: now ngin…

---

## [0.7.67 - limit\_req problems](https://www.ruby-forum.com/t/0-7-67-limit-req-problems/190283)

<div class="topic-metadata">

**Author:** [@zuzur](https://www.ruby-forum.com/u/zuzur)\
**Replies:** 3\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/0-7-67-limit-req-problems/190283 "2010-06-17T16:22:48Z")

</div>

Hello all, There must be something that i miss when trying to setup rate limiting on our 0.7.67 installation We are using nginx as a load-balancer for a rails application, and recently we have been hit by a very badl…

---

## [Nginx SSL problem for ca-bundle](https://www.ruby-forum.com/t/nginx-ssl-problem-for-ca-bundle/190214)

<div class="topic-metadata">

**Author:** [@karthik](https://www.ruby-forum.com/u/karthik)\
**Replies:** 2\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/nginx-ssl-problem-for-ca-bundle/190214 "2010-06-17T16:22:47Z")

</div>

Hi nginx team, we running nginx + ssl certificate i configure domain.ca-bundle in nginx cat domain.ca-bunde \>\> domainname.crt and configure ssl\_certificate /opt/ssl/domain\_com.crt; ssl\_certificate\_key /opt/ssl…

---

## [Multiple error\_page @fallbacks](https://www.ruby-forum.com/t/multiple-error-page-fallbacks/190190)

<div class="topic-metadata">

**Author:** [@Goldcap](https://www.ruby-forum.com/u/Goldcap)\
**Replies:** 1\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/multiple-error-page-fallbacks/190190 "2010-06-17T16:22:46Z")

</div>

Hey Everyone: I use Nginx with Perl and Memcache, but not sure how to redirect if BOTH Perl and Memcached give me a 502… Memcached passes a 502 to the PERL script, which if error “should” go to the 502 error page, but…

---

## [CFP for Surge Scalability Conference 2010](https://www.ruby-forum.com/t/cfp-for-surge-scalability-conference-2010/190288)

<div class="topic-metadata">

**Author:** [@Jason\_Dixon](https://www.ruby-forum.com/u/Jason_Dixon)\
**Replies:** 0\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/cfp-for-surge-scalability-conference-2010/190288 "2010-06-17T16:22:42Z")

</div>

We’re excited to announce Surge, the Scalability and Performance Conference, to be held in Baltimore on Sept 30 and Oct 1, 2010. The event focuses on case studies that demonstrate successes (and failures) in Web appl…

---

## [Session not clear](https://www.ruby-forum.com/t/session-not-clear/190281)

<div class="topic-metadata">

**Author:** [@karthik](https://www.ruby-forum.com/u/karthik)\
**Replies:** 0\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/session-not-clear/190281 "2010-06-17T16:22:39Z")

</div>

hi nginx We running ROR + nginx + thin server our server everything http it’s workinf fine. but when i configure https in my page session not cleared. the same setup using in apache session clear . Thanks and Regar…

---

## [Cookies and nginx](https://www.ruby-forum.com/t/cookies-and-nginx/186619)

<div class="topic-metadata">

**Author:** [@Scott\_Behrens](https://www.ruby-forum.com/u/Scott_Behrens)\
**Replies:** 2\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/cookies-and-nginx/186619 "2010-06-17T16:22:37Z")

</div>

Hello, I am running nginx-0.8.35 on Fedora release 12, and I have a question about cookies. I am using nginx as a reverse SSL proxy to an IIS application (Team City). Every time I hit the proxy address the backend …

---

## [Serve files from cache only if very sure that it didn't change](https://www.ruby-forum.com/t/serve-files-from-cache-only-if-very-sure-that-it-didnt-change/190233)

<div class="topic-metadata">

**Author:** [@dandadude](https://www.ruby-forum.com/u/dandadude)\
**Replies:** 0\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/serve-files-from-cache-only-if-very-sure-that-it-didnt-change/190233 "2010-06-17T16:22:28Z")

</div>

Hi! I was wondering (and searching forums, howtos, but didn’t find anything): Is there a way to tell nginx to only serve static files from cache if for instance the timestamp of the file is the same (that probably me…

---

## [Nginx-0.7.67](https://www.ruby-forum.com/t/nginx-0-7-67/190234)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 0\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/nginx-0-7-67/190234 "2010-06-17T16:22:28Z")

</div>

Changes with nginx 0.7.67 15 Jun 2010 \*) Security: nginx/Windows worker might be terminated abnormally if a requested file name has invalid UTF-8 encoding. – Igor S. http://…

---

## [File descriptors settings for a large number of connections](https://www.ruby-forum.com/t/file-descriptors-settings-for-a-large-number-of-connections/190220)

<div class="topic-metadata">

**Author:** [@pablo\_platt](https://www.ruby-forum.com/u/pablo_platt)\
**Replies:** 0\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/file-descriptors-settings-for-a-large-number-of-connections/190220 "2010-06-17T16:22:24Z")

</div>

Hi I’m using nginx in front of a long-polling comet app. What are the required settings in order to allow a large number of open connections? For example, what do I need to use for 10k concurrent open connections? A…

---

## [Mod\_rewrite and .htaccess problem bypass solution needed](https://www.ruby-forum.com/t/mod-rewrite-and-htaccess-problem-bypass-solution-needed/190199)

<div class="topic-metadata">

**Author:** [@dandadude](https://www.ruby-forum.com/u/dandadude)\
**Replies:** 0\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/mod-rewrite-and-htaccess-problem-bypass-solution-needed/190199 "2010-06-17T16:22:18Z")

</div>

Hi! I have set Nginx to server static files before apache. But when there is a Drupal site or any custom made site that useres .htaccess mod\_rewrites to generate an image-file, logically the files are not found, becau…

---

## [Proxy\_pass to URL encoded path?](https://www.ruby-forum.com/t/proxy-pass-to-url-encoded-path/188229)

<div class="topic-metadata">

**Author:** [@7zark7](https://www.ruby-forum.com/u/7zark7)\
**Replies:** 1\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/proxy-pass-to-url-encoded-path/188229 "2010-06-17T16:22:05Z")

</div>

Hi, I’m using proxy\_pass in front of CouchDB, which has file paths which contain some URL encoded characters (e.g. http://couch:5984/images\[b\]%2F\[/b\]logo.gif) I am trying to to replace some characters in requests to …

---

## [Session not clear using nginx server](https://www.ruby-forum.com/t/session-not-clear-using-nginx-server/190162)

<div class="topic-metadata">

**Author:** [@karthik](https://www.ruby-forum.com/u/karthik)\
**Replies:** 0\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/session-not-clear-using-nginx-server/190162 "2010-06-17T16:22:05Z")

</div>

Hi nginx We running ROR + nginx +mongrel\_cluster server. Our server running http it’s working fine. But when i configure https, the webpage session not cleared. The same setup using in apache server but session cle…

---

## [Nginx windows issues](https://www.ruby-forum.com/t/nginx-windows-issues/190157)

<div class="topic-metadata">

**Author:** [@BukhariS\_Shakeel](https://www.ruby-forum.com/u/BukhariS_Shakeel)\
**Replies:** 0\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/nginx-windows-issues/190157 "2010-06-17T16:22:03Z")

</div>

Hello, We have narrowed down to use nginx for one of future LSI product. Currently, doing development on linux os. Windows is also one of the major OS platforms required to be supported. I was going through nginx on…

---

## [504 Gateway Time out](https://www.ruby-forum.com/t/504-gateway-time-out/190091)

<div class="topic-metadata">

**Author:** [@insane](https://www.ruby-forum.com/u/insane)\
**Replies:** 0\
**Last updated:** [June 14, 2010, 6:02pm UTC](https://www.ruby-forum.com/t/504-gateway-time-out/190091 "2010-06-14T18:02:55Z")

</div>

I just switch between apache to ngix, after set it up everything ( the php and ngix ) everything is fine but only after certain amount of time i got 504 gateway time-out. Form the error log i got is : "2010/05/14 23:…

---

## [Ip based access behind nginx load balancer](https://www.ruby-forum.com/t/ip-based-access-behind-nginx-load-balancer/190025)

<div class="topic-metadata">

**Author:** [@ahlatci](https://www.ruby-forum.com/u/ahlatci)\
**Replies:** 4\
**Last updated:** [June 11, 2010, 9:22pm UTC](https://www.ruby-forum.com/t/ip-based-access-behind-nginx-load-balancer/190025 "2010-06-11T21:22:20Z")

</div>

I’m sure this has been asked before, but I could not find an answer.I’m using nginx-0.7.66.I have 6 webservers running Apache, tomcat, IIS on it. We are using ip base access for some directories and files on our serve…

---

## [HTTPS reverse proxy with backend](https://www.ruby-forum.com/t/https-reverse-proxy-with-backend/190030)

<div class="topic-metadata">

**Author:** [@quan\_nexthop](https://www.ruby-forum.com/u/quan_nexthop)\
**Replies:** 1\
**Last updated:** [June 11, 2010, 7:25pm UTC](https://www.ruby-forum.com/t/https-reverse-proxy-with-backend/190030 "2010-06-11T19:25:14Z")

</div>

Hi all: Now, we always see the configuration for https reverse proxy, it just supports the topology like as following: ±---------------------------+ client -----------\>--------| reverse proxy:443 | ---------\>---…

---

## [Help with location and order](https://www.ruby-forum.com/t/help-with-location-and-order/190013)

<div class="topic-metadata">

**Author:** [@ilifeis](https://www.ruby-forum.com/u/ilifeis)\
**Replies:** 2\
**Last updated:** [June 11, 2010, 12:05pm UTC](https://www.ruby-forum.com/t/help-with-location-and-order/190013 "2010-06-11T12:05:29Z")

</div>

I have this config, I need to use jpg in /data/abc/files/ but when I browse it nginx will use file jpg in /var/www/images (second condition), how to fix it? root /var/www/images; location = /abc/files/ { alias /data…

---

## [Multiple Wan IP Addresses, Single LAN IP Address](https://www.ruby-forum.com/t/multiple-wan-ip-addresses-single-lan-ip-address/190000)

<div class="topic-metadata">

**Author:** [@reference123](https://www.ruby-forum.com/u/reference123)\
**Replies:** 1\
**Last updated:** [June 11, 2010, 8:55am UTC](https://www.ruby-forum.com/t/multiple-wan-ip-addresses-single-lan-ip-address/190000 "2010-06-11T08:55:48Z")

</div>

We are using NGINX .7.6 as a reverse proxy to an IIS webserver. We are trying to serve our images from a separate domain and IP that proxies to the same IIS root as the primary website. Both IP addresses are on the …

---

## [Possible bug with -f test](https://www.ruby-forum.com/t/possible-bug-with-f-test/189980)

<div class="topic-metadata">

**Author:** [@bkirkbri](https://www.ruby-forum.com/u/bkirkbri)\
**Replies:** 4\
**Last updated:** [June 10, 2010, 11:51pm UTC](https://www.ruby-forum.com/t/possible-bug-with-f-test/189980 "2010-06-10T23:51:00Z")

</div>

I’m seeing a problem with static file handling when using multiple -f tests in a location block. I could be doing something stupid, but from the debug log it looks like a bug is corrupting the pathname nginx uses to …

---

## [Disable PHP in specific directories](https://www.ruby-forum.com/t/disable-php-in-specific-directories/189972)

<div class="topic-metadata">

**Author:** [@mindfrost82](https://www.ruby-forum.com/u/mindfrost82)\
**Replies:** 6\
**Last updated:** [June 10, 2010, 8:00pm UTC](https://www.ruby-forum.com/t/disable-php-in-specific-directories/189972 "2010-06-10T20:00:25Z")

</div>

I have nginx setup with PHP as FastCGI. On my server, I have a couple of upload (writeable) directories and I want to disable nginx/php from serving php files in those directories (and all subdirectories). I’ve tried…

---

## [Static files download](https://www.ruby-forum.com/t/static-files-download/189901)

<div class="topic-metadata">

**Author:** [@axel](https://www.ruby-forum.com/u/axel)\
**Replies:** 16\
**Last updated:** [June 10, 2010, 3:24pm UTC](https://www.ruby-forum.com/t/static-files-download/189901 "2010-06-10T15:24:02Z")

</div>

Hi guys, When I switched from Apache to Nginx, I didn’t notice an issue I introduced in my website. Static files are displayed into the browser instead of being downloaded. It’s the case for PDF files and more surpri…

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

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