# Server

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

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

---

## [Maxconn 1 in nginx](https://www.ruby-forum.com/t/maxconn-1-in-nginx/150515)

<div class="topic-metadata">

**Author:** [@MichaSSSSSJaszczyk](https://www.ruby-forum.com/u/MichaSSSSSJaszczyk)\
**Replies:** 9\
**Last updated:** [October 9, 2008, 9:57pm UTC](https://www.ruby-forum.com/t/maxconn-1-in-nginx/150515 "2008-10-09T21:57:51Z")

</div>

Hey, I’m creating a pretty big HTTP RESTful API that is organized in the following way: There are many different functionalities in the API. Different functionalities are served by different backend machines and each…

---

## [FastCGI or Upstream proxy for python?](https://www.ruby-forum.com/t/fastcgi-or-upstream-proxy-for-python/150349)

<div class="topic-metadata">

**Author:** [@Phillip\_B\_Oldham](https://www.ruby-forum.com/u/Phillip_B_Oldham)\
**Replies:** 5\
**Last updated:** [October 9, 2008, 7:15pm UTC](https://www.ruby-forum.com/t/fastcgi-or-upstream-proxy-for-python/150349 "2008-10-09T19:15:44Z")

</div>

Which would be fastest/preferable to connect nginx to python? FastCGI (using Flup or similar) or the upstream module proxying to an http server such as cherrypy?

---

## [IP address in server\_name](https://www.ruby-forum.com/t/ip-address-in-server-name/150535)

<div class="topic-metadata">

**Author:** [@igorclark](https://www.ruby-forum.com/u/igorclark)\
**Replies:** 0\
**Last updated:** [October 9, 2008, 4:45pm UTC](https://www.ruby-forum.com/t/ip-address-in-server-name/150535 "2008-10-09T16:45:18Z")

</div>

Hi there - is it possible to have a virtual host identified by IP address as well as a default virtual host? listen 22.22.22.22; server\_name 22.22.22.22; http://22.22.22.22/ I have another server block with serve…

---

## ["add\_header X-Upstream-Response-Time $upstream\_response\_time" not working](https://www.ruby-forum.com/t/add-header-x-upstream-response-time-upstream-response-time-not-working/150455)

<div class="topic-metadata">

**Author:** [@Matt\_Albright](https://www.ruby-forum.com/u/Matt_Albright)\
**Replies:** 2\
**Last updated:** [October 8, 2008, 9:22pm UTC](https://www.ruby-forum.com/t/add-header-x-upstream-response-time-upstream-response-time-not-working/150455 "2008-10-08T21:22:53Z")

</div>

I’m using nginx 0.5.35 (I know, we’ll upgrade here soon) and have $upstream\_response\_time in the access log, and it works great. To track down a problem, I wanted to add a header to nginx’s response that shows the re…

---

## [Question about traffic statistics on each vhost,is it possible?](https://www.ruby-forum.com/t/question-about-traffic-statistics-on-each-vhost-is-it-possible/117898)

<div class="topic-metadata">

**Author:** [@sinnis\_r](https://www.ruby-forum.com/u/sinnis_r)\
**Replies:** 25\
**Last updated:** [October 8, 2008, 9:08pm UTC](https://www.ruby-forum.com/t/question-about-traffic-statistics-on-each-vhost-is-it-possible/117898 "2008-10-08T21:08:13Z")

</div>

hi,i wanna write a module to perform traffic statistic on every vhost,but after i read the document:“Guide to Nginx Module Developmenthttp://www.riceonfire.org/emiller/nginx-modules-guide.html” and some code in /ngin…

---

## [IP-based HTTP auth](https://www.ruby-forum.com/t/ip-based-http-auth/148878)

<div class="topic-metadata">

**Author:** [@dileepfrog](https://www.ruby-forum.com/u/dileepfrog)\
**Replies:** 3\
**Last updated:** [October 8, 2008, 7:12pm UTC](https://www.ruby-forum.com/t/ip-based-http-auth/148878 "2008-10-08T19:12:07Z")

</div>

Hello, I’m trying to implement HTTP auth, but want to limit it by IP. That is, users originating from our office IP should not have to enter a password, but everyone else should. I tried the following but with no luck…

---

## [A question about "ngx\_http\_log\_module"](https://www.ruby-forum.com/t/a-question-about-ngx-http-log-module/150437)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [October 8, 2008, 4:28pm UTC](https://www.ruby-forum.com/t/a-question-about-ngx-http-log-module/150437 "2008-10-08T16:28:25Z")

</div>

Hi,all: I have a question about “ngx\_http\_log\_module”. If we set the “worker\_processes” to 2, how the nginx promises the two process can write to the same access log without disturbing by eachother! thanks

---

## [Location issues with upload progress module](https://www.ruby-forum.com/t/location-issues-with-upload-progress-module/150427)

<div class="topic-metadata">

**Author:** [@Reinis\_R](https://www.ruby-forum.com/u/Reinis_R)\
**Replies:** 1\
**Last updated:** [October 8, 2008, 2:13pm UTC](https://www.ruby-forum.com/t/location-issues-with-upload-progress-module/150427 "2008-10-08T14:13:15Z")

</div>

Hi, maybe somebody can tell how to work arround this. While its not a big issue and seems more related to Nginx overal location mechanics. I have played arround Nginx Upload Progress Module ( http://wiki.codemongers…

---

## [New satisfy directive usage?](https://www.ruby-forum.com/t/new-satisfy-directive-usage/150390)

<div class="topic-metadata">

**Author:** [@teck](https://www.ruby-forum.com/u/teck)\
**Replies:** 0\
**Last updated:** [October 8, 2008, 12:20am UTC](https://www.ruby-forum.com/t/new-satisfy-directive-usage/150390 "2008-10-08T00:20:52Z")

</div>

Hi all, I try to use the “satisfy\_any” directive, but is deprecated. What is the new “satisfy” usage? I have nginx 0.7.17 installed. Regards, Floren

---

## [404 error when adding password protection to directory](https://www.ruby-forum.com/t/404-error-when-adding-password-protection-to-directory/150358)

<div class="topic-metadata">

**Author:** [@johnt519](https://www.ruby-forum.com/u/johnt519)\
**Replies:** 0\
**Last updated:** [October 7, 2008, 6:37pm UTC](https://www.ruby-forum.com/t/404-error-when-adding-password-protection-to-directory/150358 "2008-10-07T18:37:17Z")

</div>

Hello i puted proper code into ngix conf for password protection of directory and when i load protected directory i getting 404 error same as person on this url: http://forum.slicehost.com/comments.php?DiscussionID=16…

---

## [Mod\_mime\_magic](https://www.ruby-forum.com/t/mod-mime-magic/150328)

<div class="topic-metadata">

**Author:** [@Fabio\_Coatti](https://www.ruby-forum.com/u/Fabio_Coatti)\
**Replies:** 0\
**Last updated:** [October 7, 2008, 12:57pm UTC](https://www.ruby-forum.com/t/mod-mime-magic/150328 "2008-10-07T12:57:28Z")

</div>

Hi all, I’m facing the problem to identify and correctly set the content-type header for files without extension. Basically, what I need is something like mod\_mime\_magic for apache; is there any similar functionality…

---

## [Nginx hangs on page with multiple virtual ssi tags that hit memcache](https://www.ruby-forum.com/t/nginx-hangs-on-page-with-multiple-virtual-ssi-tags-that-hit-memcache/135319)

<div class="topic-metadata">

**Author:** [@knappe](https://www.ruby-forum.com/u/knappe)\
**Replies:** 1\
**Last updated:** [October 7, 2008, 10:06am UTC](https://www.ruby-forum.com/t/nginx-hangs-on-page-with-multiple-virtual-ssi-tags-that-hit-memcache/135319 "2008-10-07T10:06:13Z")

</div>

I have discovered a situation where nginx consistently hangs when interacting with memcached while using multiple SSI virtual tags in a single page. Our application returns a page that looks like this: … … n…

---

## [Mozilla Weave](https://www.ruby-forum.com/t/mozilla-weave/150287)

<div class="topic-metadata">

**Author:** [@peterpiper](https://www.ruby-forum.com/u/peterpiper)\
**Replies:** 0\
**Last updated:** [October 6, 2008, 11:24pm UTC](https://www.ruby-forum.com/t/mozilla-weave/150287 "2008-10-06T23:24:57Z")

</div>

Just curious if anyone’s added webdav for running Mozilla Weave on their nginx server? Are there any quirks to look out for?

---

## [\--add\_module for filters?](https://www.ruby-forum.com/t/add-module-for-filters/150133)

<div class="topic-metadata">

**Author:** [@bdmcnitt](https://www.ruby-forum.com/u/bdmcnitt)\
**Replies:** 2\
**Last updated:** [October 6, 2008, 6:38pm UTC](https://www.ruby-forum.com/t/add-module-for-filters/150133 "2008-10-06T18:38:34Z")

</div>

I’m trying to write a bare-bones body and header filter (just prints a debugging message for headers and the body), and found that when I put added it to the configuration with the --add-module configure directive, it…

---

## [phpSysInfo 2.5.4 slow with nginx 0.6.32 and php-fpm](https://www.ruby-forum.com/t/phpsysinfo-2-5-4-slow-with-nginx-0-6-32-and-php-fpm/149934)

<div class="topic-metadata">

**Author:** [@sovok](https://www.ruby-forum.com/u/sovok)\
**Replies:** 10\
**Last updated:** [October 5, 2008, 4:19pm UTC](https://www.ruby-forum.com/t/phpsysinfo-2-5-4-slow-with-nginx-0-6-32-and-php-fpm/149934 "2008-10-05T16:19:53Z")

</div>

Hi, Im running a web server with nginx 0.6.32, php-fpm, on Ubuntu server 8.04. The system configuration is: Intel Pentium D 3.2, 4GB DDR2, 200GB disk and a 20MBit connection. Every php script works quiet fast, but php…

---

## [How to setup php-fpm in a chroot environment](https://www.ruby-forum.com/t/how-to-setup-php-fpm-in-a-chroot-environment/150142)

<div class="topic-metadata">

**Author:** [@sovok](https://www.ruby-forum.com/u/sovok)\
**Replies:** 0\
**Last updated:** [October 4, 2008, 3:44pm UTC](https://www.ruby-forum.com/t/how-to-setup-php-fpm-in-a-chroot-environment/150142 "2008-10-04T15:44:54Z")

</div>

Hi, I have already setup nginx and php-fpm and is running fine. I wanna setup php-fpm in a chroot environment. I dont exacly know how, I mean I know where to set it in the php-fpm.conf but I dont know if its enough. T…

---

## [Nginx mp4 streaming module](https://www.ruby-forum.com/t/nginx-mp4-streaming-module/150136)

<div class="topic-metadata">

**Author:** [@191919](https://www.ruby-forum.com/u/191919)\
**Replies:** 0\
**Last updated:** [October 4, 2008, 11:43am UTC](https://www.ruby-forum.com/t/nginx-mp4-streaming-module/150136 "2008-10-04T11:43:27Z")

</div>

I adapted the lighttpd mod\_h264\_streaming to nginx module. It is under GPL license. I tested it under: Leopard 10.5.5 CentOS 5.2 FreeBSD 7.0 both 32-bit and 64-bit environment. Please do not hesitate to send your…

---

## [Rewritemap in nginx](https://www.ruby-forum.com/t/rewritemap-in-nginx/150108)

<div class="topic-metadata">

**Author:** [@Klaas\_Naaijkens](https://www.ruby-forum.com/u/Klaas_Naaijkens)\
**Replies:** 4\
**Last updated:** [October 4, 2008, 9:33am UTC](https://www.ruby-forum.com/t/rewritemap-in-nginx/150108 "2008-10-04T09:33:02Z")

</div>

I am trying to implement the RewriteMap funcionality I am using extensively in apache in some way with nginx. In apache we use a dbm database where we store legacy urls (around 100.000) that we redirect to their new u…

---

## [Gallery2 rewrite rules](https://www.ruby-forum.com/t/gallery2-rewrite-rules/148756)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 9\
**Last updated:** [October 4, 2008, 4:16am UTC](https://www.ruby-forum.com/t/gallery2-rewrite-rules/148756 "2008-10-04T04:16:06Z")

</div>

Installed nginx for the first time, today, and like what I see! Using spawn-fcgi from lighttpd, I now have nginx fronting my Gallery 2.2.4 site. Memory footprint is much smaller, and album load time is noticeably fa…

---

## [Lots of 'client timed out' messages](https://www.ruby-forum.com/t/lots-of-client-timed-out-messages/150110)

<div class="topic-metadata">

**Author:** [@praveen](https://www.ruby-forum.com/u/praveen)\
**Replies:** 0\
**Last updated:** [October 3, 2008, 9:15pm UTC](https://www.ruby-forum.com/t/lots-of-client-timed-out-messages/150110 "2008-10-03T21:15:02Z")

</div>

Hi all, I just started using nginx, and I wanted to thank Igor and the other devs for nginx. I’m using nginx as a reverse proxy to my backends. I’m monitoring my logs and I am unable to explain a few things I see the…

---

## [Passing errors on to ruby on max upload](https://www.ruby-forum.com/t/passing-errors-on-to-ruby-on-max-upload/149984)

<div class="topic-metadata">

**Author:** [@fred](https://www.ruby-forum.com/u/fred)\
**Replies:** 1\
**Last updated:** [October 2, 2008, 10:46am UTC](https://www.ruby-forum.com/t/passing-errors-on-to-ruby-on-max-upload/149984 "2008-10-02T10:46:08Z")

</div>

Hello, I have a ruby application where users are able to upload a file of max size 1 MB, which alerts users if the file they are trying to upload is over that size. In my nginx configuration, I have set the max uplo…

---

## [Mongrel\_Cluster unable to access OCI8 library](https://www.ruby-forum.com/t/mongrel-cluster-unable-to-access-oci8-library/149948)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 8\
**Last updated:** [October 2, 2008, 4:54am UTC](https://www.ruby-forum.com/t/mongrel-cluster-unable-to-access-oci8-library/149948 "2008-10-02T04:54:56Z")

</div>

Hi, I’m able to run a ROR application in a Red Hat Enterprise Linux 4.4 environment, as long as I start my mongrel\_cluster via the command line: \[chris@localhost ~\]$ mongrel\_cluster\_ctl start I take a look at the two…

---

## [Variable for absolute requested url](https://www.ruby-forum.com/t/variable-for-absolute-requested-url/149974)

<div class="topic-metadata">

**Author:** [@brblakley](https://www.ruby-forum.com/u/brblakley)\
**Replies:** 0\
**Last updated:** [October 1, 2008, 9:26pm UTC](https://www.ruby-forum.com/t/variable-for-absolute-requested-url/149974 "2008-10-01T21:26:01Z")

</div>

Hello, I’m not sure if I’m missing something obvious here, but is there a variable available that can be used in if conditions that has the entire requested URL? This is, so you could have something like the following…

---

## [Replacing apache with nginx](https://www.ruby-forum.com/t/replacing-apache-with-nginx/149882)

<div class="topic-metadata">

**Author:** [@Stephen\_Nelson-Smit](https://www.ruby-forum.com/u/Stephen_Nelson-Smit)\
**Replies:** 16\
**Last updated:** [October 1, 2008, 6:07pm UTC](https://www.ruby-forum.com/t/replacing-apache-with-nginx/149882 "2008-10-01T18:07:00Z")

</div>

I have apache 2.2 load-balancing a pool of 3 tomcat servers. I want to replace it with nginx. I have the following very simple setup to test the concept: user nginx; worker\_processes 2; error\_log logs/error.log…

---

## [Feature request: h.264 pseudo streaming module](https://www.ruby-forum.com/t/feature-request-h-264-pseudo-streaming-module/149937)

<div class="topic-metadata">

**Author:** [@Hannes\_Haug](https://www.ruby-forum.com/u/Hannes_Haug)\
**Replies:** 2\
**Last updated:** [October 1, 2008, 5:18pm UTC](https://www.ruby-forum.com/t/feature-request-h-264-pseudo-streaming-module/149937 "2008-10-01T17:18:12Z")

</div>

Hi mod\_h264\_streaming is an experimental lighttpd module for pseudo streaming QuickTime/MP4 files to the popular JW FLV Media Player. Cf. http://h264.code-shop.com for the lighttpd module and JW Player: End-to-End S…

---

## [Matching on two conditions](https://www.ruby-forum.com/t/matching-on-two-conditions/149933)

<div class="topic-metadata">

**Author:** [@PSSSSl-Kristian\_Ham](https://www.ruby-forum.com/u/PSSSSl-Kristian_Ham)\
**Replies:** 1\
**Last updated:** [October 1, 2008, 4:12pm UTC](https://www.ruby-forum.com/t/matching-on-two-conditions/149933 "2008-10-01T16:12:20Z")

</div>

Hi, I have seen that this topic has been discussed on the lists earlier, but I did not see that anyone found a good solution for it. As far as I know, nginx does not support if-else or nested if blocks in the configu…

---

## [Routing outgoing traffic](https://www.ruby-forum.com/t/routing-outgoing-traffic/149949)

<div class="topic-metadata">

**Author:** [@harish\_sri](https://www.ruby-forum.com/u/harish_sri)\
**Replies:** 1\
**Last updated:** [October 1, 2008, 3:14pm UTC](https://www.ruby-forum.com/t/routing-outgoing-traffic/149949 "2008-10-01T15:14:01Z")

</div>

Hi Everyone, I’m newbie to this world of webservers/loadbalancing… so forgive me if I talk anything that makes no sense So my question is there any option where I can say route all the outgoing traffic directly to …

---

## [Nginx module like lighttpd's proxy-core.balancer](https://www.ruby-forum.com/t/nginx-module-like-lighttpds-proxy-core-balancer/149910)

<div class="topic-metadata">

**Author:** [@m3rls](https://www.ruby-forum.com/u/m3rls)\
**Replies:** 1\
**Last updated:** [October 1, 2008, 2:20am UTC](https://www.ruby-forum.com/t/nginx-module-like-lighttpds-proxy-core-balancer/149910 "2008-10-01T02:20:25Z")

</div>

Hi, We’re currently experiencing a DDoS, which is causing havoc with our FastCGI pools. I am wondering if there is any module available which allows us to load balance the FastCGI pass stage of the request, similiar…

---

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

<div class="topic-metadata">

**Author:** [@pachl](https://www.ruby-forum.com/u/pachl)\
**Replies:** 7\
**Last updated:** [September 30, 2008, 6:59pm UTC](https://www.ruby-forum.com/t/rewrite-issue/149780 "2008-09-30T18:59:26Z")

</div>

I’ve got an odd configuration issue I cannot solve, using this config: server { listen 80; access\_log logs/leadgen.access main; error\_log logs/leadgen.error; root /opt/le…

---

## [Does this look okay?](https://www.ruby-forum.com/t/does-this-look-okay/149744)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 5\
**Last updated:** [September 30, 2008, 6:00am UTC](https://www.ruby-forum.com/t/does-this-look-okay/149744 "2008-09-30T06:00:22Z")

</div>

my nginx stub status page says: Active connections: 284 server accepts handled requests 28762321 28762321 183603127 Reading: 1 Writing: 6 Waiting: 277 is that many in a “waiting” state okay? or is that something I s…

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

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