# Server

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

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

---

## [Log 404 errors only?](https://www.ruby-forum.com/t/log-404-errors-only/158203)

<div class="topic-metadata">

**Author:** [@Peter\_Hinse](https://www.ruby-forum.com/u/Peter_Hinse)\
**Replies:** 2\
**Last updated:** [January 20, 2009, 3:43pm UTC](https://www.ruby-forum.com/t/log-404-errors-only/158203 "2009-01-20T15:43:40Z")

</div>

Hi all, is there any way to log only HTTP codes \>= 400 (maybe only 404 errors) in the access.log? I’m not interested in successful delivery, redirects or similar. Regards, Peter

---

## [Nginx-0.7.31](https://www.ruby-forum.com/t/nginx-0-7-31/158120)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 14\
**Last updated:** [January 20, 2009, 2:58pm UTC](https://www.ruby-forum.com/t/nginx-0-7-31/158120 "2009-01-20T14:58:35Z")

</div>

Changes with nginx 0.7.31 19 Jan 2009 \*) Change: now the "try\_files" directive tests files only and ignores directories. \*) Feature: the "fastcgi\_split\_path\_info" directive. …

---

## [Performance problem with Tomcat](https://www.ruby-forum.com/t/performance-problem-with-tomcat/158113)

<div class="topic-metadata">

**Author:** [@Chang\_S](https://www.ruby-forum.com/u/Chang_S)\
**Replies:** 10\
**Last updated:** [January 20, 2009, 2:18pm UTC](https://www.ruby-forum.com/t/performance-problem-with-tomcat/158113 "2009-01-20T14:18:05Z")

</div>

Hi, folks. I have been testing nginx with Tomcat backend server, and I was disappointed with the result. 30-40% worse than apache front web server setup. I think the culprit of the performance problem is the absence …

---

## [Dynamically defining auth user file](https://www.ruby-forum.com/t/dynamically-defining-auth-user-file/158083)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 1\
**Last updated:** [January 20, 2009, 12:23am UTC](https://www.ruby-forum.com/t/dynamically-defining-auth-user-file/158083 "2009-01-20T00:23:14Z")

</div>

i have this snippet if ($request\_uri ~\* “/foo/(.+)/”) { set $htpasswd /home/foo/$1/.htpasswd; } auth\_basic “Restricted files”; auth\_basic\_user\_file $htpasswd; this shows in the error log: 009/01/18 23:07:49 \[crit\]…

---

## [Problem configuring nginx](https://www.ruby-forum.com/t/problem-configuring-nginx/158116)

<div class="topic-metadata">

**Author:** [@dcian](https://www.ruby-forum.com/u/dcian)\
**Replies:** 4\
**Last updated:** [January 19, 2009, 11:46pm UTC](https://www.ruby-forum.com/t/problem-configuring-nginx/158116 "2009-01-19T23:46:54Z")

</div>

Hi, I wish to convert a url of the form: “http://mydomain/path/file.htm” to run script /home/ian/websites/builder/parser.php?f=/path/file.htm with root of /home/ian/websites/emccatering (so the script can find pa…

---

## [MySQL authentication module?](https://www.ruby-forum.com/t/mysql-authentication-module/157957)

<div class="topic-metadata">

**Author:** [@Warwick\_Poole](https://www.ruby-forum.com/u/Warwick_Poole)\
**Replies:** 1\
**Last updated:** [January 19, 2009, 11:11am UTC](https://www.ruby-forum.com/t/mysql-authentication-module/157957 "2009-01-19T11:11:00Z")

</div>

Hi Apologies if this has been asked before, the list archive search seems to be down right now. Does anyone know of any development which has been done on an nginx equivalent of the mod\_auth\_mysql Apache module? Es…

---

## [Serving an iPhone website with nginx](https://www.ruby-forum.com/t/serving-an-iphone-website-with-nginx/157541)

<div class="topic-metadata">

**Author:** [@npenkov](https://www.ruby-forum.com/u/npenkov)\
**Replies:** 5\
**Last updated:** [January 18, 2009, 5:13pm UTC](https://www.ruby-forum.com/t/serving-an-iphone-website-with-nginx/157541 "2009-01-18T17:13:18Z")

</div>

nginx crowd, (For those not interested in serving an iPhone site, feel free to delete this.) While recently working on an iPhone website, I found I had some seemingly common requirements but couldn’t find any good w…

---

## [Multiple access\_log directives in different contexts](https://www.ruby-forum.com/t/multiple-access-log-directives-in-different-contexts/157996)

<div class="topic-metadata">

**Author:** [@senh](https://www.ruby-forum.com/u/senh)\
**Replies:** 3\
**Last updated:** [January 17, 2009, 11:50pm UTC](https://www.ruby-forum.com/t/multiple-access-log-directives-in-different-contexts/157996 "2009-01-17T23:50:38Z")

</div>

I have a traffic log directive in my http block: http { Traffic log log\_format traffic $time\_local | $server\_name | $request\_length | $bytes\_sent; access\_log /var/log/nginx/traffic.log traffic; \[â€¦\] } This works…

---

## [Remove from error\_log favicon.ico](https://www.ruby-forum.com/t/remove-from-error-log-favicon-ico/157676)

<div class="topic-metadata">

**Author:** [@sovok](https://www.ruby-forum.com/u/sovok)\
**Replies:** 7\
**Last updated:** [January 17, 2009, 9:23am UTC](https://www.ruby-forum.com/t/remove-from-error-log-favicon-ico/157676 "2009-01-17T09:23:43Z")

</div>

Hello, I dont have the “favicon.ico” on my web site, but in the logs I have a tons of errors that favicon.ico not found. I know is possible in the config file to add a line or something similar which will not logged a…

---

## [Simple Rewrite Question](https://www.ruby-forum.com/t/simple-rewrite-question/157892)

<div class="topic-metadata">

**Author:** [@alanwatts](https://www.ruby-forum.com/u/alanwatts)\
**Replies:** 4\
**Last updated:** [January 16, 2009, 2:02pm UTC](https://www.ruby-forum.com/t/simple-rewrite-question/157892 "2009-01-16T14:02:12Z")

</div>

Morning all. I have a very simple request to clean up I basically need to catch URI’s that end with “/” and if they do, append index.htm to them. The upstream proxy doesn’t like to see “/”. so a request: http://xy…

---

## [How to use memcached with nginx-php-fpm-wordpress](https://www.ruby-forum.com/t/how-to-use-memcached-with-nginx-php-fpm-wordpress/157880)

<div class="topic-metadata">

**Author:** [@sovok](https://www.ruby-forum.com/u/sovok)\
**Replies:** 0\
**Last updated:** [January 16, 2009, 8:24am UTC](https://www.ruby-forum.com/t/how-to-use-memcached-with-nginx-php-fpm-wordpress/157880 "2009-01-16T08:24:30Z")

</div>

I have a small server, running on CentOS with nginx 0.6.34 with php-fpm and hosting a blog (using wordpress). Two days ago I installed memcached and memcache extension for php, but as I understood, for php to work wit…

---

## [Best way to have new features included](https://www.ruby-forum.com/t/best-way-to-have-new-features-included/157746)

<div class="topic-metadata">

**Author:** [@Resicow](https://www.ruby-forum.com/u/Resicow)\
**Replies:** 6\
**Last updated:** [January 16, 2009, 7:00am UTC](https://www.ruby-forum.com/t/best-way-to-have-new-features-included/157746 "2009-01-16T07:00:09Z")

</div>

Hello, As you may know I have been asking about certain features from time to time on this list. What would be the best way to go about having features added to nginx, either core of as optional modules. There are so…

---

## [To many open files](https://www.ruby-forum.com/t/to-many-open-files/157607)

<div class="topic-metadata">

**Author:** [@iberci](https://www.ruby-forum.com/u/iberci)\
**Replies:** 5\
**Last updated:** [January 15, 2009, 10:49pm UTC](https://www.ruby-forum.com/t/to-many-open-files/157607 "2009-01-15T22:49:12Z")

</div>

This morning, our server (www.spellingcity.com) went down and I can’t figure out why. The Nginx log file has this error in it (all over the place and is growing): 2009/01/13 10:07:24 \[alert\] 26159#0: accept() faile…

---

## [Previous questoin... maybe I'm grabbing at straws](https://www.ruby-forum.com/t/previous-questoin-maybe-im-grabbing-at-straws/157842)

<div class="topic-metadata">

**Author:** [@iberci](https://www.ruby-forum.com/u/iberci)\
**Replies:** 7\
**Last updated:** [January 15, 2009, 10:37pm UTC](https://www.ruby-forum.com/t/previous-questoin-maybe-im-grabbing-at-straws/157842 "2009-01-15T22:37:27Z")

</div>

I previously posted a question about getting more information about an error that we’re getting in our Nginx log files. The error is as follows: 2009/01/15 11:47:57 \[error\] 15704#0: \*689561 open() “/home/spellcit/pu…

---

## [How can i quickly handle alternate config for site downtime?](https://www.ruby-forum.com/t/how-can-i-quickly-handle-alternate-config-for-site-downtime/156409)

<div class="topic-metadata">

**Author:** [@jonny](https://www.ruby-forum.com/u/jonny)\
**Replies:** 8\
**Last updated:** [January 15, 2009, 3:17pm UTC](https://www.ruby-forum.com/t/how-can-i-quickly-handle-alternate-config-for-site-downtime/156409 "2009-01-15T15:17:49Z")

</div>

for the pat few years, i have stuff like this: file: /hosts/findmeon content: include /hosts/findmeon/www.findmeon.com ; #include /hosts/findmeon/www.findmeon.com-downtime ; when i want to take a domain up/down, i …

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/157780)

<div class="topic-metadata">

**Author:** [@vanderkerkoff](https://www.ruby-forum.com/u/vanderkerkoff)\
**Replies:** 0\
**Last updated:** [January 15, 2009, 8:59am UTC](https://www.ruby-forum.com/t/unsubscribe/157780 "2009-01-15T08:59:53Z")

</div>

unsubscribe nginx removed\_email\_address@domain.invalid

---

## [Mongrel timeout error](https://www.ruby-forum.com/t/mongrel-timeout-error/196879)

<div class="topic-metadata">

**Author:** [@harpoon45](https://www.ruby-forum.com/u/harpoon45)\
**Replies:** 2\
**Last updated:** [January 15, 2009, 8:22am UTC](https://www.ruby-forum.com/t/mongrel-timeout-error/196879 "2009-01-15T08:22:24Z")

</div>

My mongrel cluster seems to have some weird issues. Anyone here with some insight into whats going on? Tue Jan 13 09:36:34 -0800 2009: Reaping 7 threads for slow workers because of ‘shutdown’ Thread #\<Thread:0x2aaaab…

---

## [Losing sessions?](https://www.ruby-forum.com/t/losing-sessions/157730)

<div class="topic-metadata">

**Author:** [@iberci](https://www.ruby-forum.com/u/iberci)\
**Replies:** 5\
**Last updated:** [January 15, 2009, 1:13am UTC](https://www.ruby-forum.com/t/losing-sessions/157730 "2009-01-15T01:13:35Z")

</div>

Hi All, Weird situation… On our production environment, one of our users (I have remotely connected to their system) is losing Session information as soon as they try to do anything past their login. Even stranger …

---

## [Administration Frontend for Nginx](https://www.ruby-forum.com/t/administration-frontend-for-nginx/157491)

<div class="topic-metadata">

**Author:** [@John\_Huong](https://www.ruby-forum.com/u/John_Huong)\
**Replies:** 3\
**Last updated:** [January 15, 2009, 12:07am UTC](https://www.ruby-forum.com/t/administration-frontend-for-nginx/157491 "2009-01-15T00:07:25Z")

</div>

Are there any frontend that can be used to manage Nginx e.g. Webmin?

---

## [Optimization guidelines](https://www.ruby-forum.com/t/optimization-guidelines/157704)

<div class="topic-metadata">

**Author:** [@iberci](https://www.ruby-forum.com/u/iberci)\
**Replies:** 9\
**Last updated:** [January 14, 2009, 10:25pm UTC](https://www.ruby-forum.com/t/optimization-guidelines/157704 "2009-01-14T22:25:08Z")

</div>

Does anyone have specific or “generic” optimization guidelines for running Nginx in the following configuraiton? Dedicated Nginx server (1) PHP FPM FastCgi Dedicated DB Server MySQL Traffic on our sit…

---

## [Location "default" documentation](https://www.ruby-forum.com/t/location-default-documentation/157658)

<div class="topic-metadata">

**Author:** [@James\_Byers](https://www.ruby-forum.com/u/James_Byers)\
**Replies:** 3\
**Last updated:** [January 14, 2009, 6:04pm UTC](https://www.ruby-forum.com/t/location-default-documentation/157658 "2009-01-14T18:04:52Z")

</div>

I had some trouble setting the “deferred” option on a listen directive, related to the use of “default”. If someone can help me understand this better, I’ll update the English documentation. Our configuration has ma…

---

## [Limit\_zone: Using other variables than $binary\_remote\_addr](https://www.ruby-forum.com/t/limit-zone-using-other-variables-than-binary-remote-addr/157678)

<div class="topic-metadata">

**Author:** [@steffen\_w](https://www.ruby-forum.com/u/steffen_w)\
**Replies:** 3\
**Last updated:** [January 14, 2009, 5:41pm UTC](https://www.ruby-forum.com/t/limit-zone-using-other-variables-than-binary-remote-addr/157678 "2009-01-14T17:41:58Z")

</div>

I want to restrict the number of connections people can have to our download server. Limiting the concurrent connections by ip address is not very useful, because if I only allow 1 connection per ip address then a use…

---

## [X-Accel-Buffering, proxy\_buffering and proxy\_store](https://www.ruby-forum.com/t/x-accel-buffering-proxy-buffering-and-proxy-store/156927)

<div class="topic-metadata">

**Author:** [@MichaSSSSSJaszczyk](https://www.ruby-forum.com/u/MichaSSSSSJaszczyk)\
**Replies:** 1\
**Last updated:** [January 14, 2009, 3:56pm UTC](https://www.ruby-forum.com/t/x-accel-buffering-proxy-buffering-and-proxy-store/156927 "2009-01-14T15:56:58Z")

</div>

Hi everyone, I’m trying to set up safe file downloading with Nginx. My config file stripped down to most important elements looks like this: upstream tempurl { server tempurl:8888; } upstream storage { server …

---

## [Re: Serving an alternate robots.txt for SSL requests](https://www.ruby-forum.com/t/re-serving-an-alternate-robots-txt-for-ssl-requests/157642)

<div class="topic-metadata">

**Author:** [@Juan\_FcoSGiordana](https://www.ruby-forum.com/u/Juan_FcoSGiordana)\
**Replies:** 5\
**Last updated:** [January 14, 2009, 12:53pm UTC](https://www.ruby-forum.com/t/re-serving-an-alternate-robots-txt-for-ssl-requests/157642 "2009-01-14T12:53:14Z")

</div>

Thank you Nick for your help, I’ve followed your suggestions and it worked as expected. I’ve changed the rewrite rule since I don’t need to capture anything there. server { listen 443; \[…\] location = /robots.txt { …

---

## [Wrong Vhost being followed when using SSL](https://www.ruby-forum.com/t/wrong-vhost-being-followed-when-using-ssl/157460)

<div class="topic-metadata">

**Author:** [@yankees26](https://www.ruby-forum.com/u/yankees26)\
**Replies:** 9\
**Last updated:** [January 14, 2009, 10:00am UTC](https://www.ruby-forum.com/t/wrong-vhost-being-followed-when-using-ssl/157460 "2009-01-14T10:00:22Z")

</div>

Hello all, I have one server hosting two sites and am trying to set up my nginx vhost.conf to have both sites working with SSL. My vhost.conf file can be seen here (domain names have been changed): http://pastie.org/…

---

## [More information out of error log?](https://www.ruby-forum.com/t/more-information-out-of-error-log/157639)

<div class="topic-metadata">

**Author:** [@iberci](https://www.ruby-forum.com/u/iberci)\
**Replies:** 9\
**Last updated:** [January 14, 2009, 8:26am UTC](https://www.ruby-forum.com/t/more-information-out-of-error-log/157639 "2009-01-14T08:26:27Z")

</div>

Hi All, We are getting many of these errors: 2009/01/13 13:04:28 \[error\] 27100#0: \*782718 open() “/home/spellcit/public\_html/letters/.mp3” failed (2: No such file or directory), client: 204.38.160.220, server: www.sp…

---

## [Re: Ten(14) Reasons why Couchdb is better than Mysql (Off topic - might be interesting)](https://www.ruby-forum.com/t/re-ten-14-reasons-why-couchdb-is-better-than-mysql-off-topic-might-be-interesting/157656)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [January 14, 2009, 6:42am UTC](https://www.ruby-forum.com/t/re-ten-14-reasons-why-couchdb-is-better-than-mysql-off-topic-might-be-interesting/157656 "2009-01-14T06:42:15Z")

</div>

Ignore it Dave and it will go away. Answering will only encourage it.

---

## [Redirecting log to tcp/udp](https://www.ruby-forum.com/t/redirecting-log-to-tcp-udp/157652)

<div class="topic-metadata">

**Author:** [@Mohammad\_K](https://www.ruby-forum.com/u/Mohammad_K)\
**Replies:** 0\
**Last updated:** [January 14, 2009, 5:29am UTC](https://www.ruby-forum.com/t/redirecting-log-to-tcp-udp/157652 "2009-01-14T05:29:10Z")

</div>

Hi, There was a suggestion a while back to add support for redirecting the logs to tcp/udp/multicast. I am wondering if anyone knows whether or not it is added, or is scheduled to be added, or if neither, whether some…

---

## [Multiple client\_max\_body\_size (location based)](https://www.ruby-forum.com/t/multiple-client-max-body-size-location-based/157586)

<div class="topic-metadata">

**Author:** [@Juan\_FcoSGiordana](https://www.ruby-forum.com/u/Juan_FcoSGiordana)\
**Replies:** 4\
**Last updated:** [January 14, 2009, 12:14am UTC](https://www.ruby-forum.com/t/multiple-client-max-body-size-location-based/157586 "2009-01-14T00:14:58Z")

</div>

Hello, Is it possible to have multiple client\_max\_body\_size per location directives? I’ve tried this and doesn’t seem to work, but the docs says that it is possible to have client\_max\_body\_size in a location context. …

---

## [BUG report: error log separation per virtual host does not work](https://www.ruby-forum.com/t/bug-report-error-log-separation-per-virtual-host-does-not-work/157178)

<div class="topic-metadata">

**Author:** [@Dan\_Dascalescu](https://www.ruby-forum.com/u/Dan_Dascalescu)\
**Replies:** 4\
**Last updated:** [January 13, 2009, 2:50pm UTC](https://www.ruby-forum.com/t/bug-report-error-log-separation-per-virtual-host-does-not-work/157178 "2009-01-13T14:50:51Z")

</div>

I reported this bug already at http://thread.gmane.org/gmane.comp.web.nginx.english/1604/focus=1628 but was using the stable version of nginx. I just upgraded to the latest development version, 0.7.30, and the bug is …

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

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