# Server

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

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

---

## [Multiplexing a a large number of front-end connections among a few back-end connections](https://www.ruby-forum.com/t/multiplexing-a-a-large-number-of-front-end-connections-among-a-few-back-end-connections/219185)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 0\
**Last updated:** [April 23, 2012, 10:21am UTC](https://www.ruby-forum.com/t/multiplexing-a-a-large-number-of-front-end-connections-among-a-few-back-end-connections/219185 "2012-04-23T10:21:40Z")

</div>

Hello, I have a scenario where an NGINX instance is holding persistent HTTP connections from 50,000 clients. Sporadic requests from these clients have to be multiplexed over a few socket connections to back-end server…

---

## [Registering Nginx callback in external library](https://www.ruby-forum.com/t/registering-nginx-callback-in-external-library/219044)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [April 23, 2012, 6:26am UTC](https://www.ruby-forum.com/t/registering-nginx-callback-in-external-library/219044 "2012-04-23T06:26:58Z")

</div>

Hi All, Here’s what I wanted to do: I wanted to write a Nginx location handler for example “/mylocation” which when invoked should call another program to get the response. The other external program provides a c…

---

## [NGINX and wrong memcached output](https://www.ruby-forum.com/t/nginx-and-wrong-memcached-output/219169)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 2\
**Last updated:** [April 23, 2012, 12:02am UTC](https://www.ruby-forum.com/t/nginx-and-wrong-memcached-output/219169 "2012-04-23T00:02:11Z")

</div>

Hi, At first let me tell my application was developped under PHP with Symfony2, but I guess my problem is about nginx and memcached and not about PHP. As I can see here is good community about nginx and I will be gla…

---

## [How to log only if $upstream\_cache\_status is not equal to "HIT"](https://www.ruby-forum.com/t/how-to-log-only-if-upstream-cache-status-is-not-equal-to-hit/219177)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [April 22, 2012, 11:49pm UTC](https://www.ruby-forum.com/t/how-to-log-only-if-upstream-cache-status-is-not-equal-to-hit/219177 "2012-04-22T23:49:50Z")

</div>

Hello, Iam trying to find out if there is a way I can have an access logs only for the objects that did not produce a HIT from the cache (recorded in the nginx $upstream\_cache\_status var) Is this possible? Thanks an…

---

## [How to block non local refferers to an object?](https://www.ruby-forum.com/t/how-to-block-non-local-refferers-to-an-object/219175)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 1\
**Last updated:** [April 22, 2012, 11:27pm UTC](https://www.ruby-forum.com/t/how-to-block-non-local-refferers-to-an-object/219175 "2012-04-22T23:27:14Z")

</div>

Hello Community, Could anybody please give me an example (or point me to such) on best way to block non local referrers to my image files (jpg, jpeg, gif) Thanks… Regards, Sam

---

## [Way to list current requestsw being served?](https://www.ruby-forum.com/t/way-to-list-current-requestsw-being-served/219174)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [April 22, 2012, 11:00pm UTC](https://www.ruby-forum.com/t/way-to-list-current-requestsw-being-served/219174 "2012-04-22T23:00:54Z")

</div>

Hello. Aside from the status page of nginx… is there any way i cant print the current REQUESTS it is attending … like apaches status module it lists the URIs being served. Thanks –Mike

---

## [Websockets, nginx-perl](https://www.ruby-forum.com/t/websockets-nginx-perl/219168)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [April 22, 2012, 5:49pm UTC](https://www.ruby-forum.com/t/websockets-nginx-perl/219168 "2012-04-22T17:49:45Z")

</div>

Just a couple of examples on websockets in nginx-perl: https://github.com/zzzcpan/nginx-perl/tree/master/eg/websockets/lib/Websockets Draw.pm - multiplayer drawing thingy Echo.pm - echo server Demo (works only in chr…

---

## [Rewrite in Ngnix](https://www.ruby-forum.com/t/rewrite-in-ngnix/219130)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [April 22, 2012, 11:42am UTC](https://www.ruby-forum.com/t/rewrite-in-ngnix/219130 "2012-04-22T11:42:36Z")

</div>

Hi, How convert to httacces from apache to nginx My file htaccess is: #Options FollowSymLinks RewriteEngine on RewriteRule ^vardata/(.\*).php$ \[R=404,L\] RewriteRule ^(\[a-zA-Z0-9\_-\]+).html$ index.php?op=$1 RewriteRu…

---

## [Rewrite Rules](https://www.ruby-forum.com/t/rewrite-rules/219161)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 0\
**Last updated:** [April 22, 2012, 10:28am UTC](https://www.ruby-forum.com/t/rewrite-rules/219161 "2012-04-22T10:28:15Z")

</div>

Hello, New to this list so pardon me if I am asking a very common question (I am sure it’s a common one though). It is about Rewrite Rules. We have a Magento website which use to respond slowly while working with Apac…

---

## [File status about](https://www.ruby-forum.com/t/file-status-about/219155)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 0\
**Last updated:** [April 22, 2012, 6:04am UTC](https://www.ruby-forum.com/t/file-status-about/219155 "2012-04-22T06:04:55Z")

</div>

Web site is the Python, going to some type of the file will be forwarded to the static files directory, the static directory should not return to 404, but there is a problem, the trouble you help me see Web site confi…

---

## [Nginx rewrite to PHP](https://www.ruby-forum.com/t/nginx-rewrite-to-php/219151)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [April 22, 2012, 4:39am UTC](https://www.ruby-forum.com/t/nginx-rewrite-to-php/219151 "2012-04-22T04:39:46Z")

</div>

Hi, I’m using Nginx linked to PHP using fastcgi proxy (to the FPM module of PHP core btw). I am trying to use some rewrite rules, which apparently work since I get redirected (HTTP answer 200), but the content is no…

---

## [MP4 module and X-Accel-Redirect](https://www.ruby-forum.com/t/mp4-module-and-x-accel-redirect/219120)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [April 22, 2012, 4:05am UTC](https://www.ruby-forum.com/t/mp4-module-and-x-accel-redirect/219120 "2012-04-22T04:05:00Z")

</div>

Hello I currently have a setup involving nginx-extras (1.1.19) and PHP, making heavy use of the X-Accel-Redirect heades to serve files with previous authentication. This also enables range requests and so on, which w…

---

## [Permission Denied Error](https://www.ruby-forum.com/t/permission-denied-error/219094)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 4\
**Last updated:** [April 22, 2012, 12:33am UTC](https://www.ruby-forum.com/t/permission-denied-error/219094 "2012-04-22T00:33:27Z")

</div>

I am seeing some error like below in my nginx error log: 2012/04/20 11:51:52 \[crit\] 21437#0: \*2548 open() “/var/cache/nginx/fastcgi\_temp/5/00/0000000005” failed (13: Permission denied) while reading upstream, client: …

---

## [Error\_page, try\_files, internal redirect ends up in SIGSEGV](https://www.ruby-forum.com/t/error-page-try-files-internal-redirect-ends-up-in-sigsegv/219121)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [April 21, 2012, 9:56am UTC](https://www.ruby-forum.com/t/error-page-try-files-internal-redirect-ends-up-in-sigsegv/219121 "2012-04-21T09:56:59Z")

</div>

Hello, I’m facing a SIGSEGV when trying to setup a custom error page using the following (shortened for the sake of debugging) configuration. /etc/nginx/sites-available/example.com: server { listen 80; server\_name e…

---

## [Change upstream server on the fly? (by command, instead of config editting)](https://www.ruby-forum.com/t/change-upstream-server-on-the-fly-by-command-instead-of-config-editting/219124)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [April 21, 2012, 4:39am UTC](https://www.ruby-forum.com/t/change-upstream-server-on-the-fly-by-command-instead-of-config-editting/219124 "2012-04-21T04:39:24Z")

</div>

Hello all, Is there anyway I can change the upstream server of server{} on the fly… meaning without having to edit the config and reloading it? Mike

---

## [HttpHealthcheckModule server not marked down](https://www.ruby-forum.com/t/httphealthcheckmodule-server-not-marked-down/212134)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 9\
**Last updated:** [April 21, 2012, 4:23am UTC](https://www.ruby-forum.com/t/httphealthcheckmodule-server-not-marked-down/212134 "2012-04-21T04:23:13Z")

</div>

Hi there, i’m trying to use the HttpHealthcheckModule for nginx, but i have some troubles with it. i have two servers in my upstream, when sabotaging the health for one server i see in the status view of healthcheck …

---

## [How to umask nginx to make it write files in 770 (cache/logs)](https://www.ruby-forum.com/t/how-to-umask-nginx-to-make-it-write-files-in-770-cache-logs/219067)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [April 21, 2012, 4:10am UTC](https://www.ruby-forum.com/t/how-to-umask-nginx-to-make-it-write-files-in-770-cache-logs/219067 "2012-04-21T04:10:10Z")

</div>

Hello, Iam thinking of setting a umask in nginx… so that it writes files (logs ans cache) in 770 . Anybody know how to do this, or done it? I need this because my environment needs access to all files produced by ngi…

---

## [Nginx Unicode character bug in all win version](https://www.ruby-forum.com/t/nginx-unicode-character-bug-in-all-win-version/219110)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [April 20, 2012, 9:39pm UTC](https://www.ruby-forum.com/t/nginx-unicode-character-bug-in-all-win-version/219110 "2012-04-20T21:39:37Z")

</div>

test in 0.7.69-1.1.9 / OS:WINXP SP2 CHINA mkdir chinese Charset DIR like 中国钓鱼岛 you can see error C:\\中国钓鱼岛\\nginx.exe 2012/04/21 03:32:00 \[emerg\] 2060#3468: CreateFile() “C:\\中国钓鱼岛\\nginx-1.1.19/conf/nginx.conf” failed …

---

## [Cache hit statistics?](https://www.ruby-forum.com/t/cache-hit-statistics/219066)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 1\
**Last updated:** [April 20, 2012, 3:15pm UTC](https://www.ruby-forum.com/t/cache-hit-statistics/219066 "2012-04-20T15:15:35Z")

</div>

Does nginx have a cache hit ratio statistic… Ive been searching … or perhaps a way to differentiate in the logs wchi was served from cache and which was not. Thanks -Mike

---

## [Rewrite](https://www.ruby-forum.com/t/rewrite/219072)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 4\
**Last updated:** [April 20, 2012, 3:23am UTC](https://www.ruby-forum.com/t/rewrite/219072 "2012-04-20T03:23:49Z")

</div>

Hello, i want use rewrite to use article-“id”.php to the post.php?id=1 for example. I has written the follow in the server section: location /article-(\\d+).php$ { try\_files $uri $uri/ /post.php?id=$1; } But it wan…

---

## [Nginx segfault](https://www.ruby-forum.com/t/nginx-segfault/219045)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [April 20, 2012, 2:20am UTC](https://www.ruby-forum.com/t/nginx-segfault/219045 "2012-04-20T02:20:47Z")

</div>

I tried to upgrade my passenger+nginx install to passenger 3.0.11 on our staging server to match our production server, I’ve also upgraded to ruby 1.9.3. Previously I had successfully run passenger 3.0.3 with ruby 1.…

---

## [Can't access sub directories](https://www.ruby-forum.com/t/cant-access-sub-directories/219062)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 1\
**Last updated:** [April 19, 2012, 9:31pm UTC](https://www.ruby-forum.com/t/cant-access-sub-directories/219062 "2012-04-19T21:31:50Z")

</div>

with my current config, i can access the root directory but i cant access any directory below it… here’s my vhost config: http://pastebin.com/50pyYDtS here’s my nginx config: http://pastebin.com/n1HXxVmu thanks for…

---

## [RHEL 6, nginx and parse fails](https://www.ruby-forum.com/t/rhel-6-nginx-and-parse-fails/219057)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [April 19, 2012, 6:12pm UTC](https://www.ruby-forum.com/t/rhel-6-nginx-and-parse-fails/219057 "2012-04-19T18:12:35Z")

</div>

Hi all, Today I updated 2 of my RHEL 6 boxes to the latest version of all installed packages including Nginx from the nginx repository. Since then both reload & configtest won’t work, the error I’m seeing is this: n…

---

## [Php-fpm backend, sigsegv and limit\_conn](https://www.ruby-forum.com/t/php-fpm-backend-sigsegv-and-limit-conn/219051)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [April 19, 2012, 3:46pm UTC](https://www.ruby-forum.com/t/php-fpm-backend-sigsegv-and-limit-conn/219051 "2012-04-19T15:46:28Z")

</div>

Hello, I’m facing the situation where worker process crashes in the php-fpm backend with SIGSEGV: \[alert\] 5712#0: worker process 5713 exited on signal 11 In such a case, what happens to the connection? is it danglin…

---

## [Default\_server catch all block not working](https://www.ruby-forum.com/t/default-server-catch-all-block-not-working/216074)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 14\
**Last updated:** [April 19, 2012, 2:37pm UTC](https://www.ruby-forum.com/t/default-server-catch-all-block-not-working/216074 "2012-04-19T14:37:26Z")

</div>

Hi, getting quite desperate at the moment about this. I have a server serving several subdomains; actually proxying’em to apache2. So I have main nginx vhost file with all server\_name’s added. Such server names match …

---

## [Proxy\_Pass & proxy\_set\_header problem](https://www.ruby-forum.com/t/proxy-pass-proxy-set-header-problem/219049)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [April 19, 2012, 1:52pm UTC](https://www.ruby-forum.com/t/proxy-pass-proxy-set-header-problem/219049 "2012-04-19T13:52:02Z")

</div>

I am trying to get a CMS (Liferay), a desktop application (Liferay Sync) and WebDav to all work behind a Nginx reverse proxy and can’t quite get all 3 working although they all use the same domain. The following code …

---

## [Why the benchmark results are different?](https://www.ruby-forum.com/t/why-the-benchmark-results-are-different/218955)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 2\
**Last updated:** [April 19, 2012, 12:24pm UTC](https://www.ruby-forum.com/t/why-the-benchmark-results-are-different/218955 "2012-04-19T12:24:01Z")

</div>

Hi, I install the newest nginx, and run 3 benchmark tools: ab/http\_load/weighttp. I get three rps results 9129.48/2594.08 /1107. So which tool give the right result? ab2 -n 10000 -c 1000 http://10.6.2.213/ This is…

---

## [Different Client certificate CA's in each server{} element?](https://www.ruby-forum.com/t/different-client-certificate-cas-in-each-server-element/219046)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 1\
**Last updated:** [April 19, 2012, 11:16am UTC](https://www.ruby-forum.com/t/different-client-certificate-cas-in-each-server-element/219046 "2012-04-19T11:16:19Z")

</div>

Can we set up Nginx to handle Client verification from different CA’s in each Server element? Or do we need one NginX instance pr. CA? Thanks Kjetil

---

## [Worker process exited on signal 11](https://www.ruby-forum.com/t/worker-process-exited-on-signal-11/218966)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 10\
**Last updated:** [April 19, 2012, 7:29am UTC](https://www.ruby-forum.com/t/worker-process-exited-on-signal-11/218966 "2012-04-19T07:29:11Z")

</div>

Dear all, error logs show this error (worker process exited on signal 11). The error appears after ~1 hour, then with the half of the worker processes. No problems with 1.0-versions of nginx. Problem existed in 1.1.18 …

---

## [How to optimize these config / rewrite rules](https://www.ruby-forum.com/t/how-to-optimize-these-config-rewrite-rules/219012)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 5\
**Last updated:** [April 18, 2012, 7:14pm UTC](https://www.ruby-forum.com/t/how-to-optimize-these-config-rewrite-rules/219012 "2012-04-18T19:14:29Z")

</div>

Hi there, I’m running nginx and xenforo but need to rewrite some old legacy URL’s (left over from vbulletin + vbseo)… Here is just a very small selection of my config which I want to optimise as fully as possible:- \[…

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

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