# Server

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

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

---

## [Speed curiosity](https://www.ruby-forum.com/t/speed-curiosity/147316)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 5\
**Last updated:** [September 7, 2008, 12:54am UTC](https://www.ruby-forum.com/t/speed-curiosity/147316 "2008-09-07T00:54:34Z")

</div>

As a note–using the mongrel example from http://mongrel.rubyforge.org/web/mongrel/files/README.html and Mongrel 1.1.5 It yielded (for me) ~800 req/s \[running ab -n 1000 -c 1 http://localhost:3000/test\] and if I chan…

---

## [Open file resource limit](https://www.ruby-forum.com/t/open-file-resource-limit/147918)

<div class="topic-metadata">

**Author:** [@AnSSSSl\_SSSSSetin](https://www.ruby-forum.com/u/AnSSSSl_SSSSSetin)\
**Replies:** 0\
**Last updated:** [September 7, 2008, 12:29am UTC](https://www.ruby-forum.com/t/open-file-resource-limit/147918 "2008-09-07T00:29:25Z")

</div>

Hi there, I am getting warnings in error.log; “\[warn\] 23770#0: 4096 worker\_connections are more than open file resource limit: 1024” I did raised “nginx” user open files limit via ulimit; “\[root@proxy ~\]# runuser ng…

---

## [Expires .. is there a way to set an expires header for all of jpg, gif, css, js?](https://www.ruby-forum.com/t/expires-is-there-a-way-to-set-an-expires-header-for-all-of-jpg-gif-css-js/147893)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 11\
**Last updated:** [September 6, 2008, 11:29pm UTC](https://www.ruby-forum.com/t/expires-is-there-a-way-to-set-an-expires-header-for-all-of-jpg-gif-css-js/147893 "2008-09-06T23:29:07Z")

</div>

Hi, Expires … is there a way to set an expires header for all of jpg, gif, css, js ? I have been reading through the docs and have tried a few things such as: location ~\* ^.+.(jpg|jpeg|gif|css|png|js|ico|html)$ …

---

## [Problem with a virtualhost](https://www.ruby-forum.com/t/problem-with-a-virtualhost/147889)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 4\
**Last updated:** [September 6, 2008, 11:29pm UTC](https://www.ruby-forum.com/t/problem-with-a-virtualhost/147889 "2008-09-06T23:29:06Z")

</div>

Hello, I am able to access domain.org.uk but www.domain.org.uk 404s and defaults to the nginx welcome page. It’s behaving as if it cannot find a www.domain.org.uk match so resorts to the default nginx page. I can’t…

---

## [Log empty gif module if a connection lasted more than 10s](https://www.ruby-forum.com/t/log-empty-gif-module-if-a-connection-lasted-more-than-10s/147891)

<div class="topic-metadata">

**Author:** [@Vladan\_Popovic](https://www.ruby-forum.com/u/Vladan_Popovic)\
**Replies:** 2\
**Last updated:** [September 6, 2008, 7:27pm UTC](https://www.ruby-forum.com/t/log-empty-gif-module-if-a-connection-lasted-more-than-10s/147891 "2008-09-06T19:27:50Z")

</div>

I’m trying to use the log empty gif module to track wether a recipient has read an email (has kept the email open for more than 10s) I would like to embed the gif in the email html and if the empty gif is downloaded …

---

## [Custom 403 page not working(?) in combination with "deny all"](https://www.ruby-forum.com/t/custom-403-page-not-working-in-combination-with-deny-all/147563)

<div class="topic-metadata">

**Author:** [@Peter\_Vandenberk](https://www.ruby-forum.com/u/Peter_Vandenberk)\
**Replies:** 2\
**Last updated:** [September 6, 2008, 7:17pm UTC](https://www.ruby-forum.com/t/custom-403-page-not-working-in-combination-with-deny-all/147563 "2008-09-06T19:17:53Z")

</div>

(apologies if this is a re-post, but the GMANE auto-authorizer seems to have gobbled my original post) Hi all, I am trying to configure nginx 0.6.32 to serve a customized 403.html error page, but it doesn’t appear to…

---

## [Worker cpu affinity for 8 cores/cpus](https://www.ruby-forum.com/t/worker-cpu-affinity-for-8-cores-cpus/147769)

<div class="topic-metadata">

**Author:** [@sovok](https://www.ruby-forum.com/u/sovok)\
**Replies:** 15\
**Last updated:** [September 6, 2008, 12:18pm UTC](https://www.ruby-forum.com/t/worker-cpu-affinity-for-8-cores-cpus/147769 "2008-09-06T12:18:02Z")

</div>

Hey, as everyone knows, if you have 1-2-4 cpus/cores, you can set the worker\_cpu\_affinity. For 2 cores/cpus is like this: worker\_cpu\_affinity 0101 1010; For 4 cores/cpus is like this: worker\_cpu\_affinity 1000 0100 001…

---

## [Memcache and proxy](https://www.ruby-forum.com/t/memcache-and-proxy/147615)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [September 5, 2008, 6:36pm UTC](https://www.ruby-forum.com/t/memcache-and-proxy/147615 "2008-09-05T18:36:49Z")

</div>

I am using nginx as the front end for our website, proxying PHP requests off to another server. I want to make sure nginx catches 502 and 504 errors (incase the php backend is down) and redirect these errors to a st…

---

## [How to rewrite this: apache to nginx](https://www.ruby-forum.com/t/how-to-rewrite-this-apache-to-nginx/147206)

<div class="topic-metadata">

**Author:** [@sovok](https://www.ruby-forum.com/u/sovok)\
**Replies:** 25\
**Last updated:** [September 5, 2008, 11:44am UTC](https://www.ruby-forum.com/t/how-to-rewrite-this-apache-to-nginx/147206 "2008-09-05T11:44:01Z")

</div>

Hello, I am trying to rewrite for a webpage, some stuff from apache to nginx, somehow I am not doing it right coz its not working… Can some one help me to rewrite this: RewriteCond %{REQUEST\_FILENAME} !-f RewriteCond…

---

## [Question about Connection: close and proxy\_pass](https://www.ruby-forum.com/t/question-about-connection-close-and-proxy-pass/147674)

<div class="topic-metadata">

**Author:** [@pezdude](https://www.ruby-forum.com/u/pezdude)\
**Replies:** 4\
**Last updated:** [September 5, 2008, 5:44am UTC](https://www.ruby-forum.com/t/question-about-connection-close-and-proxy-pass/147674 "2008-09-05T05:44:37Z")

</div>

Hi, We’re using nginx to proxy between a piece of software that doesn’t understand our SSL certificate. The diagram looks like this client → port:443 → nginx → port:8181 → WANDisco What we are seeing is nginx is forw…

---

## [Recommendations on using nginx as SSL proxy for everything](https://www.ruby-forum.com/t/recommendations-on-using-nginx-as-ssl-proxy-for-everything/147681)

<div class="topic-metadata">

**Author:** [@Joe\_Wong](https://www.ruby-forum.com/u/Joe_Wong)\
**Replies:** 1\
**Last updated:** [September 4, 2008, 2:11pm UTC](https://www.ruby-forum.com/t/recommendations-on-using-nginx-as-ssl-proxy-for-everything/147681 "2008-09-04T14:11:02Z")

</div>

Hello all, Is there any recommendation on using Nginx as a SSL accelerator for all 4 protocols ( http, smtp, imap/pop). Or if any one is doing this already, can you share the experience on hardware / os configuration …

---

## [Virtual Domains](https://www.ruby-forum.com/t/virtual-domains/147655)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 7\
**Last updated:** [September 4, 2008, 10:40am UTC](https://www.ruby-forum.com/t/virtual-domains/147655 "2008-09-04T10:40:24Z")

</div>

Hello, I have 5 sites that will all be sharing the same IP, and 2 that will have their own IP addresses. I have a series of conf files that I include that contain server {} sections. Each conf looks like this: ser…

---

## [SSL module feature request](https://www.ruby-forum.com/t/ssl-module-feature-request/147670)

<div class="topic-metadata">

**Author:** [@hshh](https://www.ruby-forum.com/u/hshh)\
**Replies:** 0\
**Last updated:** [September 4, 2008, 4:33am UTC](https://www.ruby-forum.com/t/ssl-module-feature-request/147670 "2008-09-04T04:33:58Z")

</div>

Hi, I am about to use SSL module of Nginx. By compared with apache2 mod\_ssl, its option SSLVerifyClient'', allow used in server config, virtual host, directory. In Nginx,ssl\_verify\_client’’ only allow main and server …

---

## [A newbie question regarding regex in nginx conf](https://www.ruby-forum.com/t/a-newbie-question-regarding-regex-in-nginx-conf/147619)

<div class="topic-metadata">

**Author:** [@gsofhon](https://www.ruby-forum.com/u/gsofhon)\
**Replies:** 8\
**Last updated:** [September 3, 2008, 8:27pm UTC](https://www.ruby-forum.com/t/a-newbie-question-regarding-regex-in-nginx-conf/147619 "2008-09-03T20:27:59Z")

</div>

Hi list, I have a question regarding regex in nginx conf, and believe it must have been brought up before, yet after googling for it, I could not find an answer. Specifically, is it possible to use curly braces in ng…

---

## [Option mime (-m) does'nt work](https://www.ruby-forum.com/t/option-mime-m-doesnt-work/147585)

<div class="topic-metadata">

**Author:** [@anse](https://www.ruby-forum.com/u/anse)\
**Replies:** 1\
**Last updated:** [September 3, 2008, 6:12pm UTC](https://www.ruby-forum.com/t/option-mime-m-doesnt-work/147585 "2008-09-03T18:12:32Z")

</div>

Trying to start Mongrel with: ruby script/server -p 3001 -m config/mongrel\_mime.yml The config-file tells Mongrel to use ISO-8859-1 and includes: .htm: text/html; charset=ISO-8859-1 .html: text/html; charset=ISO-8859…

---

## [Nginx-0.7.14](https://www.ruby-forum.com/t/nginx-0-7-14/147419)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 10\
**Last updated:** [September 3, 2008, 3:52pm UTC](https://www.ruby-forum.com/t/nginx-0-7-14/147419 "2008-09-03T15:52:44Z")

</div>

Changes with nginx 0.7.14 01 Sep 2008 \*) Change: now the ssl\_certificate and ssl\_certificate\_key directives have not default values. \*) Feature: the "listen" directive support…

---

## [Pop3 proxy](https://www.ruby-forum.com/t/pop3-proxy/147589)

<div class="topic-metadata">

**Author:** [@Istvan\_Szukacs](https://www.ruby-forum.com/u/Istvan_Szukacs)\
**Replies:** 4\
**Last updated:** [September 3, 2008, 2:54pm UTC](https://www.ruby-forum.com/t/pop3-proxy/147589 "2008-09-03T14:54:01Z")

</div>

Hi folks! I am preparing a pop3 proxy with nginx and wondering if somebody could help… I have N hosts behind one firewall and I would like to reach the external pop3 server through this proxy. pop3 { pop3\_capabilit…

---

## [Access log's name](https://www.ruby-forum.com/t/access-logs-name/147571)

<div class="topic-metadata">

**Author:** [@walt](https://www.ruby-forum.com/u/walt)\
**Replies:** 1\
**Last updated:** [September 3, 2008, 9:34am UTC](https://www.ruby-forum.com/t/access-logs-name/147571 "2008-09-03T09:34:18Z")

</div>

I want to make the access log file’s name as image.test.com\_access.date, for example, image.test.com\_access.2008-09-03,tomorrow will be image.test.com\_access.2008-09-04.what should I do ?thank you!

---

## [Does nginx 0.7.x support syslog?](https://www.ruby-forum.com/t/does-nginx-0-7-x-support-syslog/147561)

<div class="topic-metadata">

**Author:** [@Delta\_Y](https://www.ruby-forum.com/u/Delta_Y)\
**Replies:** 0\
**Last updated:** [September 3, 2008, 5:46am UTC](https://www.ruby-forum.com/t/does-nginx-0-7-x-support-syslog/147561 "2008-09-03T05:46:05Z")

</div>

Hi All, I notice that there is a syslog patch for 0.6.32. I want to know is there a syslog patch for 0.7.x . BR, DeltaY

---

## [Caching static assets if present](https://www.ruby-forum.com/t/caching-static-assets-if-present/147548)

<div class="topic-metadata">

**Author:** [@archfiend997](https://www.ruby-forum.com/u/archfiend997)\
**Replies:** 2\
**Last updated:** [September 3, 2008, 3:04am UTC](https://www.ruby-forum.com/t/caching-static-assets-if-present/147548 "2008-09-03T03:04:05Z")

</div>

Hello, I am configuring an environment where at deployment-time static files are identified and stored in a known location. Also as part of deployment, each static file has a compressed version generated, and touch…

---

## [Unix sockets for fastcgi\_pass](https://www.ruby-forum.com/t/unix-sockets-for-fastcgi-pass/147461)

<div class="topic-metadata">

**Author:** [@yetanothergeek](https://www.ruby-forum.com/u/yetanothergeek)\
**Replies:** 13\
**Last updated:** [September 3, 2008, 12:43am UTC](https://www.ruby-forum.com/t/unix-sockets-for-fastcgi-pass/147461 "2008-09-03T00:43:44Z")

</div>

Hello, I just tested out using unix sockets for fastcgi\_pass instead of the often seen 127.0.0.1:9000. It worked fine as far as I could tell. Is there some reason no one seems to do this? I’ve read that sockets are …

---

## [$request\_time granularity](https://www.ruby-forum.com/t/request-time-granularity/147542)

<div class="topic-metadata">

**Author:** [@archfiend997](https://www.ruby-forum.com/u/archfiend997)\
**Replies:** 0\
**Last updated:** [September 3, 2008, 12:00am UTC](https://www.ruby-forum.com/t/request-time-granularity/147542 "2008-09-03T00:00:25Z")

</div>

Hello, What part of the nginx workflow does $request\_time cover? I am guessing that it is from the initial connect (or keep-alive) to the last write of the response. I am seeing a wide variance of times in my logs,…

---

## [Mongrel as Windows service with normal privileges](https://www.ruby-forum.com/t/mongrel-as-windows-service-with-normal-privileges/139558)

<div class="topic-metadata">

**Author:** [@ingmar\_s](https://www.ruby-forum.com/u/ingmar_s)\
**Replies:** 12\
**Last updated:** [September 2, 2008, 11:28pm UTC](https://www.ruby-forum.com/t/mongrel-as-windows-service-with-normal-privileges/139558 "2008-09-02T23:28:08Z")

</div>

I am trying to run Mongrel 1.1.5 with mongrel\_service 0.3.4 on Ruby 1.8.6 with a “normal” user account, i.e. a user which belongs only to the Windows group “Users”. The rationale behind this is that running a web serv…

---

## [Nagle disabled?](https://www.ruby-forum.com/t/nagle-disabled/147449)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 0\
**Last updated:** [September 1, 2008, 11:21pm UTC](https://www.ruby-forum.com/t/nagle-disabled/147449 "2008-09-01T23:21:56Z")

</div>

Is nagle disabled for mongrel’s sockets? I am thinking it isn’t? Thanks! -=R

---

## [Question about mongrel debugging](https://www.ruby-forum.com/t/question-about-mongrel-debugging/147444)

<div class="topic-metadata">

**Author:** [@frontline](https://www.ruby-forum.com/u/frontline)\
**Replies:** 0\
**Last updated:** [September 1, 2008, 10:26pm UTC](https://www.ruby-forum.com/t/question-about-mongrel-debugging/147444 "2008-09-01T22:26:57Z")

</div>

I enabled debugging with “kill -USR1” and got this in the log: “\*\* USR1 received, toggling $mongrel\_debug\_client to true” What else is this supposed to log and is it logging it in the same file? I haven’t got any othe…

---

## [Announcing Nginx 0.7.14 for Windows (win32)](https://www.ruby-forum.com/t/announcing-nginx-0-7-14-for-windows-win32/147433)

<div class="topic-metadata">

**Author:** [@inspire22](https://www.ruby-forum.com/u/inspire22)\
**Replies:** 0\
**Last updated:** [September 1, 2008, 7:48pm UTC](https://www.ruby-forum.com/t/announcing-nginx-0-7-14-for-windows-win32/147433 "2008-09-01T19:48:05Z")

</div>

Hello Nginx’ers, I just released Nginx 0.7.14 for Windows: http://www.kevinworthington.com/2008/09/01/announcing-nginx-0714-for-windows-win32/ Please leave me feedback if you find these packages useful. Thanks, Kevi…

---

## [How to chroot nginx](https://www.ruby-forum.com/t/how-to-chroot-nginx/147382)

<div class="topic-metadata">

**Author:** [@sovok](https://www.ruby-forum.com/u/sovok)\
**Replies:** 4\
**Last updated:** [September 1, 2008, 6:19pm UTC](https://www.ruby-forum.com/t/how-to-chroot-nginx/147382 "2008-09-01T18:19:37Z")

</div>

Is it possible to chroot nginx also fastcgi? if yes, how?

---

## [Nginx for webhosting company](https://www.ruby-forum.com/t/nginx-for-webhosting-company/147334)

<div class="topic-metadata">

**Author:** [@sovok](https://www.ruby-forum.com/u/sovok)\
**Replies:** 4\
**Last updated:** [September 1, 2008, 6:02pm UTC](https://www.ruby-forum.com/t/nginx-for-webhosting-company/147334 "2008-09-01T18:02:38Z")

</div>

Is it possible to use nginx for a web hosting company, like every users can set his/her “rewrite” options, without “restart” of nginx and without need of root access. I am asking something on the idea like shared host…

---

## [Use different fastcgi backend in different folder](https://www.ruby-forum.com/t/use-different-fastcgi-backend-in-different-folder/147358)

<div class="topic-metadata">

**Author:** [@Samuel\_Vogel](https://www.ruby-forum.com/u/Samuel_Vogel)\
**Replies:** 8\
**Last updated:** [September 1, 2008, 3:31pm UTC](https://www.ruby-forum.com/t/use-different-fastcgi-backend-in-different-folder/147358 "2008-09-01T15:31:10Z")

</div>

I am wondering how I can tell nginx to use a different fastcgi backend for my phpmyadmin subfolder /pma. This is what I did: location ~ /pma/.+\\.php$ { fastcgi\_pass 127.0.0.1:9001; } locatio…

---

## [How to find what cause 503 error?](https://www.ruby-forum.com/t/how-to-find-what-cause-503-error/147405)

<div class="topic-metadata">

**Author:** [@baalchina](https://www.ruby-forum.com/u/baalchina)\
**Replies:** 1\
**Last updated:** [September 1, 2008, 3:29pm UTC](https://www.ruby-forum.com/t/how-to-find-what-cause-503-error/147405 "2008-09-01T15:29:24Z")

</div>

Hi,everyone. I am using an nginx 0.6.32 and an apache 2.2 server, running a web forum, using php and mysql.Apache listen in 127.0.0.1:81,processing php requests. It works fine for nearly two month. But today I found …

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

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