# Server

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

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

---

## [Test-nginx doesn't work](https://www.ruby-forum.com/t/test-nginx-doesnt-work/215710)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [January 17, 2012, 4:45am UTC](https://www.ruby-forum.com/t/test-nginx-doesnt-work/215710 "2012-01-17T04:45:33Z")

</div>

I’ve put test-nginx into a test directory, but it shows can’t locate socket.pm. Do I need to install TEST::NGINX into perl lib directory? ll test 总用量 60 drwxr-xr-x 5 root root 4096 2012-01-01 08:00 ./ drwxr-xr-x …

---

## [Ngx\_openresty stable version 1.0.10.24 released!](https://www.ruby-forum.com/t/ngx-openresty-stable-version-1-0-10-24-released/215798)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [January 16, 2012, 3:47pm UTC](https://www.ruby-forum.com/t/ngx-openresty-stable-version-1-0-10-24-released/215798 "2012-01-16T15:47:55Z")

</div>

Hi, folks! I’m happy to announce that the new stable release of ngx\_openresty, 1.0.10.44, has just been kicked out of door: OpenResty® - Open source This is the second stable release of ngx\_openresty that is based on…

---

## [Fix sched\_setaffinity(2) call failure](https://www.ruby-forum.com/t/fix-sched-setaffinity-2-call-failure/215678)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [January 16, 2012, 2:22pm UTC](https://www.ruby-forum.com/t/fix-sched-setaffinity-2-call-failure/215678 "2012-01-16T14:22:27Z")

</div>

Hi, ‘cpu\_set\_t’ should be used instead of ‘long’ when calling sched\_setaffinity(2). Otherwise it may fail on some Linux systems. Please see the attachment for more detail. Regards,

---

## [Regex rewrite to root document](https://www.ruby-forum.com/t/regex-rewrite-to-root-document/215783)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [January 16, 2012, 10:58am UTC](https://www.ruby-forum.com/t/regex-rewrite-to-root-document/215783 "2012-01-16T10:58:42Z")

</div>

I have a simple re-write of rewrite ^/(.\*) /post.php?id=$1 last; This will breaks my main index page, as domain.com will also be redirected to “post.php?id=” How can I modify my regular expression not to change the m…

---

## [About nginx module developing](https://www.ruby-forum.com/t/about-nginx-module-developing/215788)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [January 16, 2012, 10:19am UTC](https://www.ruby-forum.com/t/about-nginx-module-developing/215788 "2012-01-16T10:19:38Z")

</div>

hi I am new to nginx module developing. I want to implement a module to deal with this demand: 1, nginx receives a request from client 2, nginx sends two internal requests(http or protobuf etc.) to 2 backend servers …

---

## [Ngx\_headers\_more module v0.16 released!](https://www.ruby-forum.com/t/ngx-headers-more-module-v0-16-released/215787)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [January 16, 2012, 8:08am UTC](https://www.ruby-forum.com/t/ngx-headers-more-module-v0-16-released/215787 "2012-01-16T08:08:25Z")

</div>

Hello, folks! I’m happy to announce the v0.16 release of our ngx\_headers\_more module with various bug fixes accumulated in the last 6 months. You can download the source code tarball from the download page below: Tag…

---

## [About nginx module developing](https://www.ruby-forum.com/t/about-nginx-module-developing/215773)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [January 16, 2012, 12:32am UTC](https://www.ruby-forum.com/t/about-nginx-module-developing/215773 "2012-01-16T00:32:55Z")

</div>

hi everyone: I am new to nginx module developing. I want to implement a module to deal with this demand: 1, nginx receives a request from client 2, nginx sends two internal requests(http or protobuf etc.) to 2 backen…

---

## [Cache 404 & 500 pages](https://www.ruby-forum.com/t/cache-404-500-pages/215767)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [January 15, 2012, 12:12pm UTC](https://www.ruby-forum.com/t/cache-404-500-pages/215767 "2012-01-15T12:12:59Z")

</div>

Hi all, When I attempt caching these pages as shown below error\_page 404 /404.html; location = /404.html { root /var/www/prod /templates/; internal; a…

---

## [Needs nginx compile install for use 3rd party module?](https://www.ruby-forum.com/t/needs-nginx-compile-install-for-use-3rd-party-module/215760)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [January 15, 2012, 5:45am UTC](https://www.ruby-forum.com/t/needs-nginx-compile-install-for-use-3rd-party-module/215760 "2012-01-15T05:45:20Z")

</div>

I know I have to compile 3rd party module if I want to use it. And I want to know if I have to compile and install Nginx to use 3rd party module. Please let me know.

---

## [301 Redirects Break Long Posts?](https://www.ruby-forum.com/t/301-redirects-break-long-posts/215764)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [January 15, 2012, 4:13am UTC](https://www.ruby-forum.com/t/301-redirects-break-long-posts/215764 "2012-01-15T04:13:47Z")

</div>

Hello, I’m running nginx 1.0.10 with a few name based virtual hosts configured. There are a few permanent redirects configured of the format: server { listen 80; server\_name domain.com; rewrite ^/(.…

---

## [Multiple https proxy\_pass to diffrent apache server](https://www.ruby-forum.com/t/multiple-https-proxy-pass-to-diffrent-apache-server/215753)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [January 15, 2012, 12:27am UTC](https://www.ruby-forum.com/t/multiple-https-proxy-pass-to-diffrent-apache-server/215753 "2012-01-15T00:27:11Z")

</div>

Hello everybody, The relevant part of the config: http://paste.debian.net/hidden/9d3d8f16/ I want to proxy pass port 443 based on the server\_name to different Apache servers, anybody knows how should I do this? Summ…

---

## [Limit IPv4/24 connections](https://www.ruby-forum.com/t/limit-ipv4-24-connections/215747)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [January 14, 2012, 3:12pm UTC](https://www.ruby-forum.com/t/limit-ipv4-24-connections/215747 "2012-01-14T15:12:16Z")

</div>

Hello, I would like to limit the connections to 100 per 255.255.255.0 Is there a chance e.g. to zero the last byte of “$binary\_remote\_addr”? Something like: set $remote\_addr\_24 “/$remote\_addr/.\[0-9\]\*$/.0/” limit\_zon…

---

## [Nginx 99% cpu if upstream server address is ipv6](https://www.ruby-forum.com/t/nginx-99-cpu-if-upstream-server-address-is-ipv6/208502)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [January 14, 2012, 2:53pm UTC](https://www.ruby-forum.com/t/nginx-99-cpu-if-upstream-server-address-is-ipv6/208502 "2012-01-14T14:53:42Z")

</div>

Hi, I’m doing a test for nginx to proxy ipv6 requests, client(v6)----(v6)nginx(v6)----(v6)www The nginx CPU is 99% According to the post in the mailing list, nginx doesn’t support ipv6 upstream, but I think it is …

---

## [ownCloud nginx config](https://www.ruby-forum.com/t/owncloud-nginx-config/215735)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [January 14, 2012, 2:35am UTC](https://www.ruby-forum.com/t/owncloud-nginx-config/215735 "2012-01-14T02:35:22Z")

</div>

In case anyone needs to setup ownCloud http://owncloud.org/ (it is a web-based personal cloud), using Debian 6 / Ubuntu 11.10 and Nginx 1.1.12, here is the config file provided by the ownCloud team: nginx - /etc/ng…

---

## [Fastcgi\_keep\_conn consuming ports?](https://www.ruby-forum.com/t/fastcgi-keep-conn-consuming-ports/215539)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [January 14, 2012, 1:14am UTC](https://www.ruby-forum.com/t/fastcgi-keep-conn-consuming-ports/215539 "2012-01-14T01:14:00Z")

</div>

I wanted to try the new “fastcgi\_keep\_conn on;” configuration setting. I grabbed 1.1.13 and added the setting to my configuration. It seems to function, but I started getting HTTP 502 errors when I put load on the ser…

---

## [NGINX CSS optimizer module?](https://www.ruby-forum.com/t/nginx-css-optimizer-module/215722)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 8\
**Last updated:** [January 14, 2012, 12:42am UTC](https://www.ruby-forum.com/t/nginx-css-optimizer-module/215722 "2012-01-14T00:42:26Z")

</div>

Hi all, We have been using NGINX for a year now with great results, so thanks to everyone who has made this project so successful! I am looking for a feature which I hope NGINX supports, and that is optimization of s…

---

## [Proxy\_intercept\_errors and logging](https://www.ruby-forum.com/t/proxy-intercept-errors-and-logging/215728)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [January 14, 2012, 12:28am UTC](https://www.ruby-forum.com/t/proxy-intercept-errors-and-logging/215728 "2012-01-14T00:28:11Z")

</div>

Hi there, We have nginx proxying to a bunch of django upstreams. When those upstreams throw an error, we use proxy\_intercept\_errors to show a custom page. The problem is that this causes those 500s to be logged into …

---

## [Protect a specific php file](https://www.ruby-forum.com/t/protect-a-specific-php-file/215682)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [January 13, 2012, 10:52pm UTC](https://www.ruby-forum.com/t/protect-a-specific-php-file/215682 "2012-01-13T22:52:27Z")

</div>

Hello, On my server I have a php app in a subfolder of my root, so basically I’ve made the following nginx configuration : server { listen 80; server\_name www.domain.fr; root /var/www/domain.fr; acc…

---

## [Simple Groupware nginx config](https://www.ruby-forum.com/t/simple-groupware-nginx-config/215733)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [January 13, 2012, 9:48pm UTC](https://www.ruby-forum.com/t/simple-groupware-nginx-config/215733 "2012-01-13T21:48:40Z")

</div>

In case anyone needs to setup Simple Groupware http://www.simple-groupware.de/ (it is a web-based groupware that offers email, calendaring, contacts, tasks, document management, project management, synchronization wi…

---

## [Feng Office nginx config](https://www.ruby-forum.com/t/feng-office-nginx-config/215730)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [January 13, 2012, 9:09pm UTC](https://www.ruby-forum.com/t/feng-office-nginx-config/215730 "2012-01-13T21:09:01Z")

</div>

In case anyone needs to setup Feng Office http://www.fengoffice.com/web/features.php (it is a web-based groupware package, including project management, client relationship management, email calendar, billing, financi…

---

## [EGroupWare nginx config v.2 (without try\_files)](https://www.ruby-forum.com/t/egroupware-nginx-config-v-2-without-try-files/215729)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [January 13, 2012, 9:02pm UTC](https://www.ruby-forum.com/t/egroupware-nginx-config-v-2-without-try-files/215729 "2012-01-13T21:02:11Z")

</div>

In case anyone needs to setup EGroupWare http://www.egroupware.org/ over Debian 6 / Ubuntu 11.10 and Nginx 1.1.12, here is the config file that we used: nginx - /etc/nginx/sites-available/egw server { listen 80; s…

---

## [Help with ssl config nginx -\> thin -\> rails](https://www.ruby-forum.com/t/help-with-ssl-config-nginx-thin-rails/215690)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [January 13, 2012, 5:43pm UTC](https://www.ruby-forum.com/t/help-with-ssl-config-nginx-thin-rails/215690 "2012-01-13T17:43:59Z")

</div>

I’m lost in a sea of configurations and every change I make ends up causing a different problem in relation to serving over HTTPS. I’ve tried all kinds of different combos of the headers. I’m using nginx in front of …

---

## [Add support for setting worker processes and CPU affinity automatically](https://www.ruby-forum.com/t/add-support-for-setting-worker-processes-and-cpu-affinity-automatically/215681)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 10\
**Last updated:** [January 13, 2012, 3:07pm UTC](https://www.ruby-forum.com/t/add-support-for-setting-worker-processes-and-cpu-affinity-automatically/215681 "2012-01-13T15:07:04Z")

</div>

Hi, It’s a little bit inconvenient to set the CPU affinities with many-core-system. For example, to fully utilize a 16-core Linux box, we have to write something like this: worker\_processes 16; worker\_cpu\_affinity …

---

## [Programmatic access to Nginx fcgi/proxy cache?](https://www.ruby-forum.com/t/programmatic-access-to-nginx-fcgi-proxy-cache/226259)

<div class="topic-metadata">

**Author:** [@Ben\_Lancaster](https://www.ruby-forum.com/u/Ben_Lancaster)\
**Replies:** 4\
**Last updated:** [January 13, 2012, 2:58pm UTC](https://www.ruby-forum.com/t/programmatic-access-to-nginx-fcgi-proxy-cache/226259 "2012-01-13T14:58:21Z")

</div>

nginx mailing list removed\_email\_address@domain.invalid http://mailman.nginx.org/mailman/listinfo/nginx

---

## [Help with replacing chars "\_" to "." in a $variable](https://www.ruby-forum.com/t/help-with-replacing-chars-to-in-a-variable/215715)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [January 13, 2012, 2:44pm UTC](https://www.ruby-forum.com/t/help-with-replacing-chars-to-in-a-variable/215715 "2012-01-13T14:44:42Z")

</div>

I would appreciate your help I have to do the following request http://subdomain\_domain\_extension\_tdl.domain.com/ Where .domain.com must be deleted and subdomain\_domain\_extension\_tdl must be converted to subdomain.do…

---

## [Mod\_aclr2](https://www.ruby-forum.com/t/mod-aclr2/215639)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [January 13, 2012, 1:55pm UTC](https://www.ruby-forum.com/t/mod-aclr2/215639 "2012-01-13T13:55:42Z")

</div>

Hello! Ever wondered how to set up NGINX as a local proxy for Apache 2.x with minimum efforts? Check out this module: Feedback is welcome!

---

## [Alias, regex and try\_files am i doing it wrong, or is this a bug?](https://www.ruby-forum.com/t/alias-regex-and-try-files-am-i-doing-it-wrong-or-is-this-a-bug/215705)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [January 13, 2012, 1:52pm UTC](https://www.ruby-forum.com/t/alias-regex-and-try-files-am-i-doing-it-wrong-or-is-this-a-bug/215705 "2012-01-13T13:52:36Z")

</div>

Ok, i was trying to do drupal as a subdirectory on my site, but i’ve hit a problem and I think its a bug. Im using 10.04 ubuntu, the nginx ppa with 1.0.11 nginx. If i have the following config’s and i try to retrieve …

---

## [Ngx\_echo module v0.37 released!](https://www.ruby-forum.com/t/ngx-echo-module-v0-37-released/215708)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [January 13, 2012, 10:11am UTC](https://www.ruby-forum.com/t/ngx-echo-module-v0-37-released/215708 "2012-01-13T10:11:18Z")

</div>

Hi, folks! I’m happy to announce the v0.37 release of the ngx\_echo module, which includes lots of bugfixes in the last 6 months. You can get the release tarball from the download page below Tags · openresty/echo-ngin…

---

## [Any way to deal with clients breaking the limit zone](https://www.ruby-forum.com/t/any-way-to-deal-with-clients-breaking-the-limit-zone/207738)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [January 13, 2012, 7:55am UTC](https://www.ruby-forum.com/t/any-way-to-deal-with-clients-breaking-the-limit-zone/207738 "2012-01-13T07:55:52Z")

</div>

Just in case it is relevant I’ll explain the setup. It is vbulletin site with apache serving php and nginx static content. I have this in nginx.conf limit\_zone one $binary\_remote\_addr 10m; and this in vhost config of…

---

## [Http requests consolidation](https://www.ruby-forum.com/t/http-requests-consolidation/215669)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [January 13, 2012, 6:46am UTC](https://www.ruby-forum.com/t/http-requests-consolidation/215669 "2012-01-13T06:46:49Z")

</div>

Hi We use Nginx as http proxy cache. Is Nginx supporting http requests consolidation ? Or Is there a solution for that? – shin fukuda removed\_email\_address@domain.invalid

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

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