# Server

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

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

---

## [Newbie: Proxy to Glassfish](https://www.ruby-forum.com/t/newbie-proxy-to-glassfish/205567)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [April 9, 2011, 7:26pm UTC](https://www.ruby-forum.com/t/newbie-proxy-to-glassfish/205567 "2011-04-09T19:26:58Z")

</div>

Hello, I’m migrating an app from Apache/JBoss to nginx/Glassfish. I think I’m starting to grasp the server-location design but am getting errors when I try to proxy a request to Glassfish. Here’s a clip from my conf…

---

## [Nginx as Reverse proxy](https://www.ruby-forum.com/t/nginx-as-reverse-proxy/205521)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [April 8, 2011, 8:22pm UTC](https://www.ruby-forum.com/t/nginx-as-reverse-proxy/205521 "2011-04-08T20:22:16Z")

</div>

Hi all! I’m configuring nginx as http reverse proxy. I have another Windows server, in this server I’m hosting an application using IIS. I’m trying to configure this conditions: When enter to apps.elcomercio.com red…

---

## [Proxy cache doesn't work in regex location?](https://www.ruby-forum.com/t/proxy-cache-doesnt-work-in-regex-location/202393)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [April 8, 2011, 6:00pm UTC](https://www.ruby-forum.com/t/proxy-cache-doesnt-work-in-regex-location/202393 "2011-04-08T18:00:15Z")

</div>

Hello, I have the following two blocks: location ~\* \\.atom$ { proxy\_pass http://thin\_projects\_cluster; proxy\_cache projects; proxy\_cache\_valid 200 10m; proxy\_cache\_use\_stale off; #return 404; } loc…

---

## [Surge 2011 CFP Deadline Extended](https://www.ruby-forum.com/t/surge-2011-cfp-deadline-extended/205557)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [April 8, 2011, 4:51pm UTC](https://www.ruby-forum.com/t/surge-2011-cfp-deadline-extended/205557 "2011-04-08T16:51:07Z")

</div>

OmniTI is pleased to announce that the CFP deadline for Surge 2011, the Scalability and Performance Conference, (Baltimore: Sept 28-30, 2011) has been extended to 23:59:59 EDT, April 17, 2011. The event focuses upon …

---

## [Localise error pages?](https://www.ruby-forum.com/t/localise-error-pages/205483)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [April 8, 2011, 11:29am UTC](https://www.ruby-forum.com/t/localise-error-pages/205483 "2011-04-08T11:29:10Z")

</div>

Hi Is there any way to localise nginx to give its error pages in different language? I think brower tells in headers what languages it supports, can it somehow to use to give localised version of error messages? Te…

---

## [Upload scalability](https://www.ruby-forum.com/t/upload-scalability/205530)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [April 8, 2011, 8:22am UTC](https://www.ruby-forum.com/t/upload-scalability/205530 "2011-04-08T08:22:00Z")

</div>

hi all, i am using upload module to post file to the server. how can i improve scalability of the server to upload files . one server is running and receiving all uploded files . if i add three or four server …

---

## [The location directive](https://www.ruby-forum.com/t/the-location-directive/205511)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [April 8, 2011, 4:33am UTC](https://www.ruby-forum.com/t/the-location-directive/205511 "2011-04-08T04:33:19Z")

</div>

Hello list I am new to nginx. I put it into production a couple of weeks ago, and I have been very pleased with its efficiency and stability. But I have been wondering about an aspect of the location directive. The on…

---

## [Fastcgi\_cache Key Length Bug](https://www.ruby-forum.com/t/fastcgi-cache-key-length-bug/205457)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [April 8, 2011, 3:45am UTC](https://www.ruby-forum.com/t/fastcgi-cache-key-length-bug/205457 "2011-04-08T03:45:52Z")

</div>

When using fastcgi\_cache, if the key you are using is too long, say over 255 characters, it appears that fastcgi\_cache breaks, and you get errors that look like this: \*18 upstream sent unsupported FastCGI protocol ver…

---

## [Issue in Lua-nginx-module when use both ngx.location.capture and ngx.exec](https://www.ruby-forum.com/t/issue-in-lua-nginx-module-when-use-both-ngx-location-capture-and-ngx-exec/204539)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [April 8, 2011, 2:55am UTC](https://www.ruby-forum.com/t/issue-in-lua-nginx-module-when-use-both-ngx-location-capture-and-ngx-exec/204539 "2011-04-08T02:55:19Z")

</div>

Hi, Lua-nginx-module 0.16RC2 Nginx 0.8.54 my nginx.conf : location =/down2 { content\_by\_lua\_file “conf/lua\_test.lua”; } and lua\_test.lua: local res = ngx.location.capture(‘/somepath’) – do something for res ng…

---

## [Combination Auth and IP allow](https://www.ruby-forum.com/t/combination-auth-and-ip-allow/205461)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [April 7, 2011, 4:37pm UTC](https://www.ruby-forum.com/t/combination-auth-and-ip-allow/205461 "2011-04-07T16:37:42Z")

</div>

Hi, i need complex configuration “vhost” allow for internal IP (10.x.x.x) without http auth or any other IP with http auth. how to make it? Posted at Nginx Forum:

---

## [Hi, is there a way to use nginx to publish the maintenance file](https://www.ruby-forum.com/t/hi-is-there-a-way-to-use-nginx-to-publish-the-maintenance-file/204866)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [April 7, 2011, 12:52pm UTC](https://www.ruby-forum.com/t/hi-is-there-a-way-to-use-nginx-to-publish-the-maintenance-file/204866 "2011-04-07T12:52:15Z")

</div>

I have a question, if I want to use nginx to main the maintenance file, and what’s the easiest way for me to change a web to maintained status when it’s in emergency? another question, as you see, that twitter always …

---

## [X-Accel-Redirect can't deal with un-ascii file name](https://www.ruby-forum.com/t/x-accel-redirect-cant-deal-with-un-ascii-file-name/205484)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [April 7, 2011, 12:34pm UTC](https://www.ruby-forum.com/t/x-accel-redirect-cant-deal-with-un-ascii-file-name/205484 "2011-04-07T12:34:20Z")

</div>

Hi, all! I have some files with un-ascii name, and I want to use X-Accel-Redirect to control the download access. This is my nginx-conf: server { listen 80; server\_name update.grandes.com.cn; access\_lo…

---

## [X-Accel-Redirect can't deal with un-ascii file name](https://www.ruby-forum.com/t/x-accel-redirect-cant-deal-with-un-ascii-file-name/205482)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [April 7, 2011, 12:33pm UTC](https://www.ruby-forum.com/t/x-accel-redirect-cant-deal-with-un-ascii-file-name/205482 "2011-04-07T12:33:05Z")

</div>

Hi, all! I have some files with un-ascii name, and I want to use X-Accel-Redirect to control the download access. This is my nginx-conf: server { listen 80; server\_name update.grandes.com.cn; access\_lo…

---

## [Try\_files on windows](https://www.ruby-forum.com/t/try-files-on-windows/205478)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [April 7, 2011, 10:44am UTC](https://www.ruby-forum.com/t/try-files-on-windows/205478 "2011-04-07T10:44:18Z")

</div>

We use nginx in production (linux) and as development machines on windows. The following is on Windows (I didn’t test on linux), case 1: try\_files $uri $uri/index.php; → works fine and shows the p…

---

## [Question access control](https://www.ruby-forum.com/t/question-access-control/205459)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [April 7, 2011, 3:16am UTC](https://www.ruby-forum.com/t/question-access-control/205459 "2011-04-07T03:16:23Z")

</div>

Hello, I am trying to use access control to limit access from limited IP range. I test 127.0.0.1 first, with config server { listen 80; server\_name localhost; location / { deny a…

---

## [Nginx + embedded perl, sharing variables across workers](https://www.ruby-forum.com/t/nginx-embedded-perl-sharing-variables-across-workers/205450)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [April 7, 2011, 1:18am UTC](https://www.ruby-forum.com/t/nginx-embedded-perl-sharing-variables-across-workers/205450 "2011-04-07T01:18:28Z")

</div>

Hi, I have written a perl handler that generates a random value and needs to maintain the same value consistently across all other perl handlers (as there is 1 perl handler per nginx worker) until the workers are res…

---

## [Nginx + embedded perl, timer based on signal handling](https://www.ruby-forum.com/t/nginx-embedded-perl-timer-based-on-signal-handling/205453)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [April 6, 2011, 11:35pm UTC](https://www.ruby-forum.com/t/nginx-embedded-perl-timer-based-on-signal-handling/205453 "2011-04-06T23:35:13Z")

</div>

Hi, I’m trying to use a perl handler to count the global number of GET/POST requests issued towards the server (the existing rate/connection limit modules are of no use to me as they are per-source). The main problem…

---

## [Vulnerability in "Proxy Everything" (Wiki article Pitfalls)](https://www.ruby-forum.com/t/vulnerability-in-proxy-everything-wiki-article-pitfalls/204247)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [April 6, 2011, 5:30pm UTC](https://www.ruby-forum.com/t/vulnerability-in-proxy-everything-wiki-article-pitfalls/204247 "2011-04-06T17:30:14Z")

</div>

Hi, I discovered a vulnerability in your best practice wiki article: The configuration which is promoted as “good” doesn’t work as intended: \<\<\<\>\>\> server { server\_name \_; root /var/www/site; location / { try\_fi…

---

## [HTTPS - NGINX with Passenger webservers behind F5 load balancer](https://www.ruby-forum.com/t/https-nginx-with-passenger-webservers-behind-f5-load-balancer/204307)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [April 6, 2011, 5:13pm UTC](https://www.ruby-forum.com/t/https-nginx-with-passenger-webservers-behind-f5-load-balancer/204307 "2011-04-06T17:13:33Z")

</div>

The setup looks like this: LOAD BALANCER WEBSERVERS 443 | F5 Load Balancer | 80 /---\> NGINX(with Passenger) USER \<------\>| with SSL certificate |------| | installed …

---

## [Upload module forbidden](https://www.ruby-forum.com/t/upload-module-forbidden/205360)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 12\
**Last updated:** [April 6, 2011, 2:17pm UTC](https://www.ruby-forum.com/t/upload-module-forbidden/205360 "2011-04-06T14:17:24Z")

</div>

hi all , i am uploading files via nginx upload module . in my configuration location /upload { … … } this will be matched with post request .but when i upload file .file is uploaded successfully respon…

---

## [Domain.com/phpmyadmin/index.php how-to?](https://www.ruby-forum.com/t/domain-com-phpmyadmin-index-php-how-to/205387)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [April 5, 2011, 10:17pm UTC](https://www.ruby-forum.com/t/domain-com-phpmyadmin-index-php-how-to/205387 "2011-04-05T22:17:45Z")

</div>

Hallo Everybody, I have a working default config, catching /index.html and /index.php fine (incl. passing php request to an upstream backend runing php-fpm) now i want the server to serve requests to ‘anydomain.com/…

---

## [Multiple vhosts](https://www.ruby-forum.com/t/multiple-vhosts/205317)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [April 5, 2011, 9:35pm UTC](https://www.ruby-forum.com/t/multiple-vhosts/205317 "2011-04-05T21:35:08Z")

</div>

I have tried to follow this http://wiki.nginx.org/VirtualHostExample but it didn’t really worked for me. I want to have 2 domains on my nginx server one which will have root in c:www/x and one which will have root i…

---

## [Download Large Files Directly](https://www.ruby-forum.com/t/download-large-files-directly/205386)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [April 5, 2011, 7:56pm UTC](https://www.ruby-forum.com/t/download-large-files-directly/205386 "2011-04-05T19:56:00Z")

</div>

Hy @ All, Is there an Option in nginx to set a limit for the download filesize, so that the requested file will be downloaded from the proxied server (apache) directly? Example: testfile.bin over 10 MB, will send di…

---

## [Nginx + php + fpm plug'n'play configuration](https://www.ruby-forum.com/t/nginx-php-fpm-plugnplay-configuration/205238)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [April 5, 2011, 2:47pm UTC](https://www.ruby-forum.com/t/nginx-php-fpm-plugnplay-configuration/205238 "2011-04-05T14:47:41Z")

</div>

Hi guys, im new to Nginx. Im running on a ubuntu 10.04 server machine, and im trying to understand how to configure nginx in order to run a website with many subdomains, where every of them must run php with a differ…

---

## [Looking for linux experts with experience on nginx](https://www.ruby-forum.com/t/looking-for-linux-experts-with-experience-on-nginx/205366)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [April 5, 2011, 11:02am UTC](https://www.ruby-forum.com/t/looking-for-linux-experts-with-experience-on-nginx/205366 "2011-04-05T11:02:39Z")

</div>

hi we are a company looking for linux experts with experience on nginx and other services used on high traffic websites. the job ad with a more detailed description is here: http://bit.ly/eYMBR6 mauro

---

## [Nginx-0.9.7](https://www.ruby-forum.com/t/nginx-0-9-7/205337)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [April 5, 2011, 12:00am UTC](https://www.ruby-forum.com/t/nginx-0-9-7/205337 "2011-04-05T00:00:01Z")

</div>

Changes with nginx 0.9.7 04 Apr 2011 \*) Feature: now keepalive connections may be closed premature, if there are no free worker connections. Thanks to Maxim D… \*) Feature: t…

---

## [Best configuration for production?](https://www.ruby-forum.com/t/best-configuration-for-production/205348)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [April 4, 2011, 11:56pm UTC](https://www.ruby-forum.com/t/best-configuration-for-production/205348 "2011-04-04T23:56:18Z")

</div>

I have set up an installation of Nginx + PHP-FPM. I’m wondering what are the “best configuration for production” would be to make best use of resources without overloading the server. I’m interested in these situation…

---

## [Nginx + Frontpage extensions](https://www.ruby-forum.com/t/nginx-frontpage-extensions/204222)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [April 4, 2011, 10:28pm UTC](https://www.ruby-forum.com/t/nginx-frontpage-extensions/204222 "2011-04-04T22:28:07Z")

</div>

Hello, I’m a long time mailing list subscriber and I had a client ask me about this. I drew a blank so here goes: My client wants to use Frontpage extensions because she is accustomed to using them. I run all my webs…

---

## [Can anyone convert this mod rewrite rule](https://www.ruby-forum.com/t/can-anyone-convert-this-mod-rewrite-rule/205343)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [April 4, 2011, 10:06pm UTC](https://www.ruby-forum.com/t/can-anyone-convert-this-mod-rewrite-rule/205343 "2011-04-04T22:06:30Z")

</div>

BEGIN DPIOptions RewriteEngine On RewriteRule ^thumb-(.).jpg$ thumb.php?id=$1 \[L\] RewriteRule ^image-(.).jpg$ image.php?id=$1 \[L\] RewriteRule ^image-(.).gif$ image.php?id=$1&gif \[L\] RewriteRule ^share-(.).html$ shar…

---

## [Active connections increasing](https://www.ruby-forum.com/t/active-connections-increasing/205332)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [April 4, 2011, 11:10am UTC](https://www.ruby-forum.com/t/active-connections-increasing/205332 "2011-04-04T11:10:03Z")

</div>

On one of my nginx boxes currently running as a reverse proxy caching server server (using proxy\_cache) I am seeing the number of Active Connections and Waiting connections increasing over time and never decreasing. T…

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

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