# Server

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

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

---

## [Patch for autoindex module: css file](https://www.ruby-forum.com/t/patch-for-autoindex-module-css-file/188500)

<div class="topic-metadata">

**Author:** [@ubitux](https://www.ruby-forum.com/u/ubitux)\
**Replies:** 1\
**Last updated:** [May 17, 2010, 9:32am UTC](https://www.ruby-forum.com/t/patch-for-autoindex-module-css-file/188500 "2010-05-17T09:32:17Z")

</div>

Hi, I was trying to customize a little the dir listing html output, but I didn’t find any way to do that instead of hardcoding html/css in the module source. So here is a patch which allows you to specify a “css file…

---

## [Anyone can help me to combine these 2 lines?](https://www.ruby-forum.com/t/anyone-can-help-me-to-combine-these-2-lines/188699)

<div class="topic-metadata">

**Author:** [@kamanwu](https://www.ruby-forum.com/u/kamanwu)\
**Replies:** 5\
**Last updated:** [May 17, 2010, 12:33am UTC](https://www.ruby-forum.com/t/anyone-can-help-me-to-combine-these-2-lines/188699 "2010-05-17T00:33:56Z")

</div>

I just want to set…if $http\_user\_agent equals AAA or BBB or empty (“”)…then return 400…Thanks… if ($http\_user\_agent ~ (AAA|BBB)) {return 400;} if ($http\_user\_agent = "") {return 400;} Posted at Nginx Forum:

---

## [Mongrel processes and threads](https://www.ruby-forum.com/t/mongrel-processes-and-threads/188700)

<div class="topic-metadata">

**Author:** [@steux](https://www.ruby-forum.com/u/steux)\
**Replies:** 0\
**Last updated:** [May 16, 2010, 9:21pm UTC](https://www.ruby-forum.com/t/mongrel-processes-and-threads/188700 "2010-05-16T21:21:51Z")

</div>

What is the differnce between those parameters? -n, --num-procs INT Number of processor threads to use -N, --num-servers INT Number of Mongrel servers “-N” is for the number of processes and “-…

---

## [Ð’Ð¾Ð¿Ñ€Ð¾Ñ Ð¿Ñ€Ð¾ shared zone "one" has no equ al addresses: 03140000 vs 03200000](https://www.ruby-forum.com/t/d-d-d-n-d-n-d-n-d-shared-zone-one-has-no-equ-al-addresses-03140000-vs-03200000/188681)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [May 16, 2010, 10:26am UTC](https://www.ruby-forum.com/t/d-d-d-n-d-n-d-n-d-shared-zone-one-has-no-equ-al-addresses-03140000-vs-03200000/188681 "2010-05-16T10:26:24Z")

</div>

Ð—Ð´Ñ€Ð°Ð²ÑÑ‚Ð²ÑƒÐ¹Ñ‚Ðµ. ÐÐ¸ÐºÐ°Ðº Ð½Ðµ Ð¼Ð¾Ð³Ñƒ Ð²ÐºÐ»ÑŽÑ‡Ð¸Ñ‚ÑŒ Ñ„ÑƒÐºÐ½Ñ†Ð¸Ð¾Ð½Ð°Ð» limit\_zone one $binary\_remote\_addr 10m; set $limit\_rate 4k; limit\_rate 4k; Ð¥Ð¾Ñ‚ÐµÐ» Ð±Ñ‹, Ñ‡Ñ‚Ð¾Ð±Ñ‹ Ð½Ð° ÐºÐ°Ð¶Ð´Ñ‹Ð¹ Ð¸Ð¿ …

---

## [Regarding session management in Nginx](https://www.ruby-forum.com/t/regarding-session-management-in-nginx/188663)

<div class="topic-metadata">

**Author:** [@saravanan\_bava](https://www.ruby-forum.com/u/saravanan_bava)\
**Replies:** 0\
**Last updated:** [May 15, 2010, 9:47pm UTC](https://www.ruby-forum.com/t/regarding-session-management-in-nginx/188663 "2010-05-15T21:47:16Z")

</div>

Dear Nginx Team, We are running a ruby on rails application with apache, now we comes to know that nginx is doing a good performance. So we tried to install nginx and we did every thing correctly. And the applicatio…

---

## [How do I install the "Nginx\_upstream\_hash" module on Windows?](https://www.ruby-forum.com/t/how-do-i-install-the-nginx-upstream-hash-module-on-windows/188655)

<div class="topic-metadata">

**Author:** [@finscn](https://www.ruby-forum.com/u/finscn)\
**Replies:** 0\
**Last updated:** [May 15, 2010, 5:05pm UTC](https://www.ruby-forum.com/t/how-do-i-install-the-nginx-upstream-hash-module-on-windows/188655 "2010-05-15T17:05:42Z")

</div>

I can’t get the source of Nginx for window. :cry: When (& Where) could I download it? I think the “Nginx\_upstream\_hash” module is very useful, Ihope Nginx can move it form ‘3rd modules’ to ‘base modules’. ( I’m sorry…

---

## [Nginx service can not auto start](https://www.ruby-forum.com/t/nginx-service-can-not-auto-start/188595)

<div class="topic-metadata">

**Author:** [@wangyu1314](https://www.ruby-forum.com/u/wangyu1314)\
**Replies:** 5\
**Last updated:** [May 15, 2010, 12:18pm UTC](https://www.ruby-forum.com/t/nginx-service-can-not-auto-start/188595 "2010-05-15T12:18:57Z")

</div>

I am using nginx on redhat for a very long time, I found a service script, installed nginx as a service to redhat, it is fine. but I found a bug, that after dirty shutdown, nginx service can not auto start, and i on…

---

## [Multiple roots for multiple sites](https://www.ruby-forum.com/t/multiple-roots-for-multiple-sites/188631)

<div class="topic-metadata">

**Author:** [@John\_Magolske](https://www.ruby-forum.com/u/John_Magolske)\
**Replies:** 4\
**Last updated:** [May 15, 2010, 12:11pm UTC](https://www.ruby-forum.com/t/multiple-roots-for-multiple-sites/188631 "2010-05-15T12:11:42Z")

</div>

Hi, I’m working on multiple sites & would like to specify different roots for each one so that identical absolute urls such as Home on each site don’t all get directed to the same /usr/local/nginx/html/index.html ie…

---

## [Nginx or Safari caching is playing with my nerves](https://www.ruby-forum.com/t/nginx-or-safari-caching-is-playing-with-my-nerves/188628)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 0\
**Last updated:** [May 14, 2010, 11:53pm UTC](https://www.ruby-forum.com/t/nginx-or-safari-caching-is-playing-with-my-nerves/188628 "2010-05-14T23:53:21Z")

</div>

Hi, I’m having terrible pains with Safari and Nginx. Using the tag even if I change the video file, Safari consistently wants to display the oldest video. I purged Safari’s cached, restarted it, restarted Nginx, etc…

---

## [Proxy to ejabberd](https://www.ruby-forum.com/t/proxy-to-ejabberd/164327)

<div class="topic-metadata">

**Author:** [@whoahbot](https://www.ruby-forum.com/u/whoahbot)\
**Replies:** 5\
**Last updated:** [May 14, 2010, 11:17pm UTC](https://www.ruby-forum.com/t/proxy-to-ejabberd/164327 "2010-05-14T23:17:20Z")

</div>

Hello! I’m having difficulty getting nginx 0.6.32 to proxy to an ejabberd server using a BOSH connection. Each time I connect, I get this error in the logs: 2009/03/31 06:28:48 27059#0: \*1 upstream prematurely close…

---

## [Byte-range requests](https://www.ruby-forum.com/t/byte-range-requests/119592)

<div class="topic-metadata">

**Author:** [@equinox86](https://www.ruby-forum.com/u/equinox86)\
**Replies:** 5\
**Last updated:** [May 14, 2010, 6:09pm UTC](https://www.ruby-forum.com/t/byte-range-requests/119592 "2010-05-14T18:09:40Z")

</div>

I’m trying to sent a file to the iphone (which requires byte-range request support) using the rails send\_file method. However, this fails, I think because of mongrel. I think so because if I send the iphone a file han…

---

## [Using Nginx to stream videos with seek with html5](https://www.ruby-forum.com/t/using-nginx-to-stream-videos-with-seek-with-html5/188604)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 0\
**Last updated:** [May 14, 2010, 5:36pm UTC](https://www.ruby-forum.com/t/using-nginx-to-stream-videos-with-seek-with-html5/188604 "2010-05-14T17:36:43Z")

</div>

Hi, Formerly I was using Nginx + mp4 plugin to stream videos to Flash. With html5 is it possible to use Nginx alone to stream videos with seeking ability to web browser that use hmtl5? If not is a plugin required? Wha…

---

## [Mongrel\_cluster + PHP + SSL with nginx](https://www.ruby-forum.com/t/mongrel-cluster-php-ssl-with-nginx/188597)

<div class="topic-metadata">

**Author:** [@karthik](https://www.ruby-forum.com/u/karthik)\
**Replies:** 0\
**Last updated:** [May 14, 2010, 4:58pm UTC](https://www.ruby-forum.com/t/mongrel-cluster-php-ssl-with-nginx/188597 "2010-05-14T16:58:35Z")

</div>

Hi , We are running Ruby on Rails application (Mongrel\_cluster) with nginx, we tried to install PHP application in same server but the proxy\_pass not redirected. in https How to configure mongrel\_cluster + P…

---

## [Nginx http proxy caching](https://www.ruby-forum.com/t/nginx-http-proxy-caching/181848)

<div class="topic-metadata">

**Author:** [@vys](https://www.ruby-forum.com/u/vys)\
**Replies:** 8\
**Last updated:** [May 14, 2010, 4:30pm UTC](https://www.ruby-forum.com/t/nginx-http-proxy-caching/181848 "2010-05-14T16:30:40Z")

</div>

Hi, Is there developer documentation on how http caching works in nginx? I’m seeing weird caching behavior where it’s caching responses with Cache-Control: private headers. Does nginx obey all caching headers correct…

---

## [Help:- How to configure mongrel\_cluster + PHP + SSL with nginx](https://www.ruby-forum.com/t/help-how-to-configure-mongrel-cluster-php-ssl-with-nginx/188592)

<div class="topic-metadata">

**Author:** [@karthik](https://www.ruby-forum.com/u/karthik)\
**Replies:** 1\
**Last updated:** [May 14, 2010, 2:52pm UTC](https://www.ruby-forum.com/t/help-how-to-configure-mongrel-cluster-php-ssl-with-nginx/188592 "2010-05-14T14:52:54Z")

</div>

Hi , We are running Ruby on Rails application (Mongrel\_cluster) with nginx, we tried to install PHP application in same server but the proxy\_pass not redirected. in https How to configure mongrel\_cluster …

---

## [What does sendfile\_max\_chunk do?](https://www.ruby-forum.com/t/what-does-sendfile-max-chunk-do/188590)

<div class="topic-metadata">

**Author:** [@Costello](https://www.ruby-forum.com/u/Costello)\
**Replies:** 1\
**Last updated:** [May 14, 2010, 2:13pm UTC](https://www.ruby-forum.com/t/what-does-sendfile-max-chunk-do/188590 "2010-05-14T14:13:41Z")

</div>

Hello, Once again I am in need of your help! I’m looking to document directives that are missing from the Wiki. I found loads in the source code, especially thanks to Manlio P… I’ve stumbled upon “sendfile\_max\_chunk”…

---

## [Problem using nginx with PMEA (PHP MySQL ExtJS Admin)](https://www.ruby-forum.com/t/problem-using-nginx-with-pmea-php-mysql-extjs-admin/188580)

<div class="topic-metadata">

**Author:** [@stefans](https://www.ruby-forum.com/u/stefans)\
**Replies:** 0\
**Last updated:** [May 14, 2010, 7:54am UTC](https://www.ruby-forum.com/t/problem-using-nginx-with-pmea-php-mysql-extjs-admin/188580 "2010-05-14T07:54:41Z")

</div>

Hi - Sorry if this is slightly off-topic. I am trying to use a PHP MySQL admin program called PMEA (PHP MySQL ExtJS Admin), located here: PMEA looks like a nice PHP program - it generates a CRUD for a MySQL databas…

---

## [Need example of nginx.conf for Tomcat 6 (running Alfresco)](https://www.ruby-forum.com/t/need-example-of-nginx-conf-for-tomcat-6-running-alfresco/188062)

<div class="topic-metadata">

**Author:** [@stefans](https://www.ruby-forum.com/u/stefans)\
**Replies:** 2\
**Last updated:** [May 14, 2010, 7:47am UTC](https://www.ruby-forum.com/t/need-example-of-nginx-conf-for-tomcat-6-running-alfresco/188062 "2010-05-14T07:47:40Z")

</div>

Hi - I have recently installed Alfresco on my server, using Tomcat (no Apache), and I’m able to access Alfresco as follows WITHOUT using nginx: http://myserver.com:8080/alfresco http://myserver.com:8080/share Now, o…

---

## [Help needed - long polling module](https://www.ruby-forum.com/t/help-needed-long-polling-module/188562)

<div class="topic-metadata">

**Author:** [@dcian](https://www.ruby-forum.com/u/dcian)\
**Replies:** 0\
**Last updated:** [May 13, 2010, 10:37pm UTC](https://www.ruby-forum.com/t/help-needed-long-polling-module/188562 "2010-05-13T22:37:44Z")

</div>

Hi guys, I have code that uses the nginx long polling module almost working. It all works fine except that, about one start in 4, the read message repeatedly returns the same first message. It has never failed under …

---

## [Proxy\_cache - how to change expires?](https://www.ruby-forum.com/t/proxy-cache-how-to-change-expires/188522)

<div class="topic-metadata">

**Author:** [@CSSSSdric\_Jeanneret](https://www.ruby-forum.com/u/CSSSSdric_Jeanneret)\
**Replies:** 3\
**Last updated:** [May 13, 2010, 7:13pm UTC](https://www.ruby-forum.com/t/proxy-cache-how-to-change-expires/188522 "2010-05-13T19:13:25Z")

</div>

Hello! I’m using nginx as a proxy-cache for OSM tiles. My problem is this sentence in documentation : “”“The cache honors backend’s Cache-Control, Expires, and etc since version 0.7.48"”"\[1\] I saw that we’re suppose…

---

## [Split users](https://www.ruby-forum.com/t/split-users/188476)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 14\
**Last updated:** [May 13, 2010, 4:21pm UTC](https://www.ruby-forum.com/t/split-users/188476 "2010-05-13T16:21:53Z")

</div>

Hi, I’m developing a module for A/B split testing. The splitting is defined as: users\_split “${remote\_addr}AAA” $variant { 0.5% one; 2.0% two; - “”; } The q…

---

## [Segfault on fs stat](https://www.ruby-forum.com/t/segfault-on-fs-stat/188526)

<div class="topic-metadata">

**Author:** [@danmezzetti](https://www.ruby-forum.com/u/danmezzetti)\
**Replies:** 2\
**Last updated:** [May 13, 2010, 12:31pm UTC](https://www.ruby-forum.com/t/segfault-on-fs-stat/188526 "2010-05-13T12:31:12Z")

</div>

Hi all, i’ve a strange problem with an nginx conf. From the strace i saw: \[pid 9749\] recvfrom(58, “GET /post/18563571/post-via-perl”…, 1024, 0, NULL, NULL) = 1003 \[pid 9749\] stat("/var/www/htdocs/post/18563571/p…

---

## [": pcre\_compile() failed: missing terminating \]" in rewrite rule](https://www.ruby-forum.com/t/pcre-compile-failed-missing-terminating-in-rewrite-rule/188496)

<div class="topic-metadata">

**Author:** [@gregbugaj](https://www.ruby-forum.com/u/gregbugaj)\
**Replies:** 2\
**Last updated:** [May 12, 2010, 11:49pm UTC](https://www.ruby-forum.com/t/pcre-compile-failed-missing-terminating-in-rewrite-rule/188496 "2010-05-12T23:49:03Z")

</div>

Hi. I’m trying to do some rewrite. My url is: http://domain.tld/stream/file/{username}{crc\_username}{hash-file}.{extension} and I’m want it to rewrite it to different location, where files physically are. locati…

---

## [Subrequest using Parent Request Body](https://www.ruby-forum.com/t/subrequest-using-parent-request-body/188226)

<div class="topic-metadata">

**Author:** [@Matthieu\_T](https://www.ruby-forum.com/u/Matthieu_T)\
**Replies:** 5\
**Last updated:** [May 12, 2010, 11:23pm UTC](https://www.ruby-forum.com/t/subrequest-using-parent-request-body/188226 "2010-05-12T23:23:18Z")

</div>

Hi, I’m trying to send a POST Subrequest using the same request\_body as the Parent Request. The subrequest is sent first, and once it has been finalized the parent request goes through. (this is inspired on Maxim’s …

---

## [Conditional rule](https://www.ruby-forum.com/t/conditional-rule/188486)

<div class="topic-metadata">

**Author:** [@Vincent\_MAUGE](https://www.ruby-forum.com/u/Vincent_MAUGE)\
**Replies:** 6\
**Last updated:** [May 12, 2010, 10:30pm UTC](https://www.ruby-forum.com/t/conditional-rule/188486 "2010-05-12T22:30:36Z")

</div>

Hey, I need to add conditional rule with more than one test. I need something like : if ($remote\_addr = “aa.bb.cc.dd” && $request\_uri ~ ^/XXXXX$) {

---

## [Rewrite links from hardlinked http to https](https://www.ruby-forum.com/t/rewrite-links-from-hardlinked-http-to-https/188161)

<div class="topic-metadata">

**Author:** [@genesis](https://www.ruby-forum.com/u/genesis)\
**Replies:** 1\
**Last updated:** [May 12, 2010, 9:19pm UTC](https://www.ruby-forum.com/t/rewrite-links-from-hardlinked-http-to-https/188161 "2010-05-12T21:19:11Z")

</div>

Hello! I’m fairly new at this, but I’ve googled for days and not been able to solve this, so I thought I’d try asking for help. I am running a jsp-webapp on Tomcat, and want to use nginx as a reverse proxy with ssl, …

---

## [Ngx\_slab\_alloc memory size calculation](https://www.ruby-forum.com/t/ngx-slab-alloc-memory-size-calculation/188470)

<div class="topic-metadata">

**Author:** [@Bernd\_Dorn](https://www.ruby-forum.com/u/Bernd_Dorn)\
**Replies:** 0\
**Last updated:** [May 12, 2010, 2:52pm UTC](https://www.ruby-forum.com/t/ngx-slab-alloc-memory-size-calculation/188470 "2010-05-12T14:52:43Z")

</div>

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

---

## [What does open\_file\_cache\_events do?](https://www.ruby-forum.com/t/what-does-open-file-cache-events-do/188462)

<div class="topic-metadata">

**Author:** [@Costello](https://www.ruby-forum.com/u/Costello)\
**Replies:** 2\
**Last updated:** [May 12, 2010, 2:31pm UTC](https://www.ruby-forum.com/t/what-does-open-file-cache-events-do/188462 "2010-05-12T14:31:03Z")

</div>

Hello, I’m looking to document directives that are missing from the Wiki. I found loads in the source code, especially thanks to Manlio P… I’ve stumbled upon “open\_file\_cache\_events” declared in ngx\_http\_core\_module.…

---

## [How to configure mongrel\_cluster + PHP + SSL with nginx](https://www.ruby-forum.com/t/how-to-configure-mongrel-cluster-php-ssl-with-nginx/188463)

<div class="topic-metadata">

**Author:** [@karthi\_r](https://www.ruby-forum.com/u/karthi_r)\
**Replies:** 1\
**Last updated:** [May 12, 2010, 11:48am UTC](https://www.ruby-forum.com/t/how-to-configure-mongrel-cluster-php-ssl-with-nginx/188463 "2010-05-12T11:48:53Z")

</div>

http://nginx.org/en/docs/http/configuring\_https\_servers.html I tried following steps below link, after i access PHP application ex: https://loclahost/phpapp1/ http://loclahost/php/ asking save as index.php http://ng…

---

## [How to configure mongrel\_cluster + PHP + SSL with nginx](https://www.ruby-forum.com/t/how-to-configure-mongrel-cluster-php-ssl-with-nginx/188448)

<div class="topic-metadata">

**Author:** [@karthi\_r](https://www.ruby-forum.com/u/karthi_r)\
**Replies:** 2\
**Last updated:** [May 12, 2010, 11:21am UTC](https://www.ruby-forum.com/t/how-to-configure-mongrel-cluster-php-ssl-with-nginx/188448 "2010-05-12T11:21:22Z")

</div>

Hi Nginx team, Thank u it’s working fine… We are running Ruby on Rails application (Mongrel\_cluster) with nginx, we tried to install PHP application in same server but the proxy\_pass not redirected. How t…

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

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