# Server

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

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

---

## [NginxHttpStubStatusModule Stats Incorrect?](https://www.ruby-forum.com/t/nginxhttpstubstatusmodule-stats-incorrect/181253)

<div class="topic-metadata">

**Author:** [@Nathan\_Folkman](https://www.ruby-forum.com/u/Nathan_Folkman)\
**Replies:** 1\
**Last updated:** [January 8, 2010, 2:16pm UTC](https://www.ruby-forum.com/t/nginxhttpstubstatusmodule-stats-incorrect/181253 "2010-01-08T14:16:21Z")

</div>

Seeing something that doesn’t add up after adding the following rewrite rules: server { listen 80; server\_name \_; underscores\_in\_headers on; proxy\_set\_header Host $host; proxy\_set\_header X-Real-IP $remote\_addr; p…

---

## [Disable access logging?](https://www.ruby-forum.com/t/disable-access-logging/181248)

<div class="topic-metadata">

**Author:** [@SnakeV](https://www.ruby-forum.com/u/SnakeV)\
**Replies:** 3\
**Last updated:** [January 8, 2010, 5:57am UTC](https://www.ruby-forum.com/t/disable-access-logging/181248 "2010-01-08T05:57:09Z")

</div>

Hello, How can disable access\_logs in nginx, i have a site with a lot of request and access\_log increments a lot of GB daily. Thanks :slight\_smile: Posted at Nginx Forum:

---

## [NginxHttpImageFilterModule doesn't conform to HTTP spec on HEAD](https://www.ruby-forum.com/t/nginxhttpimagefiltermodule-doesnt-conform-to-http-spec-on-head/181189)

<div class="topic-metadata">

**Author:** [@jack](https://www.ruby-forum.com/u/jack)\
**Replies:** 0\
**Last updated:** [January 7, 2010, 3:17am UTC](https://www.ruby-forum.com/t/nginxhttpimagefiltermodule-doesnt-conform-to-http-spec-on-head/181189 "2010-01-07T03:17:13Z")

</div>

In reference to NginxHttpImageFilterModule image\_filter resize directive: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html Content-Length: …or, in the case of the HEAD method, the size of the entity-body t…

---

## [Nginx and fastcgi - unable to serve PHP](https://www.ruby-forum.com/t/nginx-and-fastcgi-unable-to-serve-php/181162)

<div class="topic-metadata">

**Author:** [@sekatsim](https://www.ruby-forum.com/u/sekatsim)\
**Replies:** 1\
**Last updated:** [January 7, 2010, 12:47am UTC](https://www.ruby-forum.com/t/nginx-and-fastcgi-unable-to-serve-php/181162 "2010-01-07T00:47:20Z")

</div>

I’ve been working on this for about two days now, still with no luck, and I’m about out of ideas. Any suggestions would be much appreciated. I’ve got a working install of nginx (serves HTML fine), installed php5 and f…

---

## [Anti hotlink code for nginx 7?](https://www.ruby-forum.com/t/anti-hotlink-code-for-nginx-7/181175)

<div class="topic-metadata">

**Author:** [@johnt519](https://www.ruby-forum.com/u/johnt519)\
**Replies:** 1\
**Last updated:** [January 6, 2010, 9:52pm UTC](https://www.ruby-forum.com/t/anti-hotlink-code-for-nginx-7/181175 "2010-01-06T21:52:18Z")

</div>

I have antihotlink code but there for some reason www part of domain was reporting 403 error,also it seems this doesnt just prevent image hotlinking,it also produces 403 when someone click link which leads to domain.A…

---

## [Server\_name help](https://www.ruby-forum.com/t/server-name-help/144029)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [January 6, 2010, 9:43pm UTC](https://www.ruby-forum.com/t/server-name-help/144029 "2010-01-06T21:43:31Z")

</div>

Hi I serve multiple apps using one nginx server using server\_name like this server\_name APP1.domain1.com; i want to server\_name to be app1.\*.com, how do i do this correctly for nginx? thanks

---

## [Passenger\_enabled slows down nginx dramatically](https://www.ruby-forum.com/t/passenger-enabled-slows-down-nginx-dramatically/181165)

<div class="topic-metadata">

**Author:** [@ming](https://www.ruby-forum.com/u/ming)\
**Replies:** 0\
**Last updated:** [January 6, 2010, 5:37pm UTC](https://www.ruby-forum.com/t/passenger-enabled-slows-down-nginx-dramatically/181165 "2010-01-06T17:37:05Z")

</div>

I’m using nginx to serve files cached by merb. Passenger/mod\_rails to deals with requests not served by the cache. merb is not touched by the test case here. all test (cached) files are handled by nginx or passeng…

---

## [Static usage](https://www.ruby-forum.com/t/static-usage/181126)

<div class="topic-metadata">

**Author:** [@Davide\_DSAmico](https://www.ruby-forum.com/u/Davide_DSAmico)\
**Replies:** 1\
**Last updated:** [January 6, 2010, 9:42am UTC](https://www.ruby-forum.com/t/static-usage/181126 "2010-01-06T09:42:59Z")

</div>

Hi, I’m using nginx-0.7.64 on FreeBSD 7.2-p4 amd64 server (Dell R200, raid1 sata disk, 4gb ram) I enabled server status with: location /status { stub\_status on; access\_log off; allow 172.16.16.0/24; allow 172.16…

---

## [Limit\_rate based on proxy upstream response header](https://www.ruby-forum.com/t/limit-rate-based-on-proxy-upstream-response-header/181077)

<div class="topic-metadata">

**Author:** [@Robert\_Mueller](https://www.ruby-forum.com/u/Robert_Mueller)\
**Replies:** 2\
**Last updated:** [January 6, 2010, 12:16am UTC](https://www.ruby-forum.com/t/limit-rate-based-on-proxy-upstream-response-header/181077 "2010-01-06T00:16:24Z")

</div>

We’re using nginx as a proxy, and I want to limit the download rate of certain proxied pages/files depending on a header potentially set by the backend server. I’m trying something like: location ^~ / { set $slowrat…

---

## [Need help calling PHP as a fallback](https://www.ruby-forum.com/t/need-help-calling-php-as-a-fallback/181079)

<div class="topic-metadata">

**Author:** [@davvv](https://www.ruby-forum.com/u/davvv)\
**Replies:** 10\
**Last updated:** [January 5, 2010, 7:32am UTC](https://www.ruby-forum.com/t/need-help-calling-php-as-a-fallback/181079 "2010-01-05T07:32:32Z")

</div>

I wrote a very scalable HTTP event server in C++ and I would like to make it work with nginx. My server is on port 9001, PHP-FPM is running on port 9000. My server is set up to return a 504 error when an event is foun…

---

## [Need Help Converting .htaccess to Nginx Configuration File](https://www.ruby-forum.com/t/need-help-converting-htaccess-to-nginx-configuration-file/181082)

<div class="topic-metadata">

**Author:** [@kevinayp](https://www.ruby-forum.com/u/kevinayp)\
**Replies:** 1\
**Last updated:** [January 5, 2010, 7:12am UTC](https://www.ruby-forum.com/t/need-help-converting-htaccess-to-nginx-configuration-file/181082 "2010-01-05T07:12:03Z")

</div>

Hi all, I just moved my site from an Apache-based webserver into a Nginx-based webserver. As a result, all of my site’s permalinks are broken. Can anyone help me convert my .htaccess into Nginx configuration files? H…

---

## [Cannot listen to port 80 but 3000, 3080 without Apache](https://www.ruby-forum.com/t/cannot-listen-to-port-80-but-3000-3080-without-apache/181049)

<div class="topic-metadata">

**Author:** [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Replies:** 2\
**Last updated:** [January 5, 2010, 3:20am UTC](https://www.ruby-forum.com/t/cannot-listen-to-port-80-but-3000-3080-without-apache/181049 "2010-01-05T03:20:38Z")

</div>

Hi Guys, I am using ubuntu and having nginx with thin (using sockets) and rails successfully — only on port 3000 and 3080. When I try to change the nginx config and listen 80; it fails and the follows found in nginx…

---

## [Error deploying to nginx](https://www.ruby-forum.com/t/error-deploying-to-nginx/181063)

<div class="topic-metadata">

**Author:** [@klaxuz](https://www.ruby-forum.com/u/klaxuz)\
**Replies:** 1\
**Last updated:** [January 4, 2010, 10:46pm UTC](https://www.ruby-forum.com/t/error-deploying-to-nginx/181063 "2010-01-04T22:46:36Z")

</div>

Hi! I’m not sure whether this post should be here or in the nginx section 'cause I don’t know the reason for this error. Here’s the problem: I’m trying to deploy a ror application using nginx and phusion. My nginx s…

---

## [Page generation time and actual response time difference](https://www.ruby-forum.com/t/page-generation-time-and-actual-response-time-difference/180918)

<div class="topic-metadata">

**Author:** [@ehudros](https://www.ruby-forum.com/u/ehudros)\
**Replies:** 5\
**Last updated:** [January 4, 2010, 3:20pm UTC](https://www.ruby-forum.com/t/page-generation-time-and-actual-response-time-difference/180918 "2010-01-04T15:20:16Z")

</div>

Hi all, I’m seeing something a bit odd in our rails app. In the application log file I see the homepage is constantly generated in under 350ms, sometimes going as far down as 150ms. However, when I run firebug locall…

---

## [Varnish (reverse proxy) + nginx with php and REMOTE\_ADDR issue](https://www.ruby-forum.com/t/varnish-reverse-proxy-nginx-with-php-and-remote-addr-issue/181014)

<div class="topic-metadata">

**Author:** [@hibernaculus](https://www.ruby-forum.com/u/hibernaculus)\
**Replies:** 4\
**Last updated:** [January 3, 2010, 11:18pm UTC](https://www.ruby-forum.com/t/varnish-reverse-proxy-nginx-with-php-and-remote-addr-issue/181014 "2010-01-03T23:18:33Z")

</div>

Hi there. I have Varnish as reverse proxy to nginx what serve php. Varnish sends to nginx REMOTE\_ADDR as 127.0.0.1. My php config: location ~ .php$ { try\_files $uri @404; fastcgi\_param GATEWAY\_INTERFACE CGI/1.1…

---

## [Nginx creating a huge "off" file](https://www.ruby-forum.com/t/nginx-creating-a-huge-off-file/180977)

<div class="topic-metadata">

**Author:** [@travisbell](https://www.ruby-forum.com/u/travisbell)\
**Replies:** 3\
**Last updated:** [January 3, 2010, 7:12pm UTC](https://www.ruby-forum.com/t/nginx-creating-a-huge-off-file/180977 "2010-01-03T19:12:08Z")

</div>

Hey guys, I couldn’t find much about this in the docs or Google, could just be due to its name… anyways, in the root nginx dir, nginx creates this “off” file. It slowly gets huge and ended up eating all the disk space…

---

## [Forum problems?](https://www.ruby-forum.com/t/forum-problems/180946)

<div class="topic-metadata">

**Author:** [@kastorilo](https://www.ruby-forum.com/u/kastorilo)\
**Replies:** 7\
**Last updated:** [January 2, 2010, 4:25pm UTC](https://www.ruby-forum.com/t/forum-problems/180946 "2010-01-02T16:25:27Z")

</div>

Hi, The forum (forum.nginx.org) appears to be having problems - at least I can’t view more than the header ‘Welcome to Nginx’. Is anyone else experiencing the same problems? Marcus.

---

## [\[ANN\] mongrel\_service 0.4.beta2 Released](https://www.ruby-forum.com/t/ann-mongrel-service-0-4-beta2-released/180955)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [January 1, 2010, 10:47pm UTC](https://www.ruby-forum.com/t/ann-mongrel-service-0-4-beta2-released/180955 "2010-01-01T22:47:54Z")

</div>

mongrel\_service version 0.4.beta2 has been released! http://github.com/fauna/mongrel\_service This plugin offer native win32 services for rails. This replace mongrel\_rails\_service. Since this is a pre-release gem, yo…

---

## [Var/www](https://www.ruby-forum.com/t/var-www/180829)

<div class="topic-metadata">

**Author:** [@dohmer](https://www.ruby-forum.com/u/dohmer)\
**Replies:** 6\
**Last updated:** [January 1, 2010, 12:35am UTC](https://www.ruby-forum.com/t/var-www/180829 "2010-01-01T00:35:57Z")

</div>

Hello, I removed apache2 after installing nginx with passenger. If I browse http://127.0.0.1, I get the nginx page. However, if I browse http://localhost, I get the old apache index web page in var/www. Does anyone p…

---

## [Bug in autoindex module](https://www.ruby-forum.com/t/bug-in-autoindex-module/180800)

<div class="topic-metadata">

**Author:** [@Edho\_P\_Arief](https://www.ruby-forum.com/u/Edho_P_Arief)\
**Replies:** 8\
**Last updated:** [December 31, 2009, 5:07pm UTC](https://www.ruby-forum.com/t/bug-in-autoindex-module/180800 "2009-12-31T17:07:04Z")

</div>

Don’t know if found by someone else, but I find this bug today in autoindex module. Basically, the file/dirname is not escaped properly. To reproduce: enable autoindex in a directory create file with name “something…

---

## [AIO cause memory leak](https://www.ruby-forum.com/t/aio-cause-memory-leak/180846)

<div class="topic-metadata">

**Author:** [@tony](https://www.ruby-forum.com/u/tony)\
**Replies:** 2\
**Last updated:** [December 31, 2009, 2:26am UTC](https://www.ruby-forum.com/t/aio-cause-memory-leak/180846 "2009-12-31T02:26:17Z")

</div>

I got the memory leak error on my linux server when I added ‘aio on;’ in my nginx.conf, The os is fedora 11(x86-64) and gentoo(x86-64),The kernel is 2.6.29+. I’ve already set 'directio 2m; sendfile on; ’ into nginx.co…

---

## [Re: Using NGINX as reverse proxy for OWA](https://www.ruby-forum.com/t/re-using-nginx-as-reverse-proxy-for-owa/180815)

<div class="topic-metadata">

**Author:** [@Michael\_NolteSSta](https://www.ruby-forum.com/u/Michael_NolteSSta)\
**Replies:** 1\
**Last updated:** [December 31, 2009, 12:09am UTC](https://www.ruby-forum.com/t/re-using-nginx-as-reverse-proxy-for-owa/180815 "2009-12-31T00:09:51Z")

</div>

I got the same “Content Encoding” errors. I had to add the following to my config: proxy\_set\_header Accept-Encoding “”; After that it works with my (german) SBS 2003… Michael \_\_\_\_\_\_\_\_\_\_ Hinweis von ESET NOD32 Antivi…

---

## [I've been trying to convert this .htaccess for a week now](https://www.ruby-forum.com/t/ive-been-trying-to-convert-this-htaccess-for-a-week-now/180785)

<div class="topic-metadata">

**Author:** [@AMP\_Admin](https://www.ruby-forum.com/u/AMP_Admin)\
**Replies:** 11\
**Last updated:** [December 30, 2009, 12:35pm UTC](https://www.ruby-forum.com/t/ive-been-trying-to-convert-this-htaccess-for-a-week-now/180785 "2009-12-30T12:35:01Z")

</div>

I hate to ask but this one is just too big and complicated for me to convert. Any help would be good. Thanks! RewriteRule ^articles/{0,1}$ articles.php \[QSA,L\] RewriteRule ^articles/entry/(\[^/.\]+)/{0,1}$ articles…

---

## [Include don't Loading have Variables Path](https://www.ruby-forum.com/t/include-dont-loading-have-variables-path/180844)

<div class="topic-metadata">

**Author:** [@fireye](https://www.ruby-forum.com/u/fireye)\
**Replies:** 1\
**Last updated:** [December 30, 2009, 11:14am UTC](https://www.ruby-forum.com/t/include-dont-loading-have-variables-path/180844 "2009-12-30T11:14:14Z")

</div>

server { listen 80; server\_name localhost; charset utf-8; location / { set $web\_root d:/website/wordpress; root $web\_root; index index.html index.htm index.php; } …

---

## [Directory fallback](https://www.ruby-forum.com/t/directory-fallback/180816)

<div class="topic-metadata">

**Author:** [@Tobia\_C](https://www.ruby-forum.com/u/Tobia_C)\
**Replies:** 5\
**Last updated:** [December 30, 2009, 8:29am UTC](https://www.ruby-forum.com/t/directory-fallback/180816 "2009-12-30T08:29:46Z")

</div>

Hello I’m trying to come up with a nginx configuration file for a fallback-like directory structure. I have the following directories: /var/www/base/ (generic files) /var/www/site1/ (files specific to site1) Given …

---

## [Traffic limit and HTTP headers rewrite](https://www.ruby-forum.com/t/traffic-limit-and-http-headers-rewrite/180812)

<div class="topic-metadata">

**Author:** [@Aryanto\_Rachmad](https://www.ruby-forum.com/u/Aryanto_Rachmad)\
**Replies:** 1\
**Last updated:** [December 30, 2009, 6:36am UTC](https://www.ruby-forum.com/t/traffic-limit-and-http-headers-rewrite/180812 "2009-12-30T06:36:12Z")

</div>

Hello Everybody, Sorry that I mentioned Cherokee instead of Nginx, so please ignore my previous post. Below is the questions that I intended to send. Some time ago, it was mentioned that we can not limit the traffic p…

---

## [Can real\_ip\_header's behavior be altered slightly?](https://www.ruby-forum.com/t/can-real-ip-headers-behavior-be-altered-slightly/180826)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 3\
**Last updated:** [December 30, 2009, 1:18am UTC](https://www.ruby-forum.com/t/can-real-ip-headers-behavior-be-altered-slightly/180826 "2009-12-30T01:18:22Z")

</div>

Currently there’s a slight annoyance (not sure I’d call it a bug) - we’re behind a CDN and the wrong IP is being assigned from real\_ip\_header, because we’re getting multiple IP addresses. Can the behavior be altered f…

---

## [Proxy\_redirect problems](https://www.ruby-forum.com/t/proxy-redirect-problems/180822)

<div class="topic-metadata">

**Author:** [@allins](https://www.ruby-forum.com/u/allins)\
**Replies:** 4\
**Last updated:** [December 29, 2009, 11:49pm UTC](https://www.ruby-forum.com/t/proxy-redirect-problems/180822 "2009-12-29T23:49:58Z")

</div>

This might be simple and related to the fact that I have been working way too many hours in the last 4 weeks. If it is, please forgive. We have: rewrite ^/$ /admin; which is then handled by: location / { index …

---

## [Changing case of URLs](https://www.ruby-forum.com/t/changing-case-of-urls/180821)

<div class="topic-metadata">

**Author:** [@Dennis\_J](https://www.ruby-forum.com/u/Dennis_J)\
**Replies:** 1\
**Last updated:** [December 29, 2009, 10:36pm UTC](https://www.ruby-forum.com/t/changing-case-of-urls/180821 "2009-12-29T22:36:13Z")

</div>

Hi, Does nginx have a function/map like Apache’s “int:tolower” that can be used to rewrite something like “/SuperUser/file.txt” to “/superuser/file.txt”? Regards, Dennis

---

## [Sad limitation with an if block](https://www.ruby-forum.com/t/sad-limitation-with-an-if-block/180811)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 1\
**Last updated:** [December 29, 2009, 7:21pm UTC](https://www.ruby-forum.com/t/sad-limitation-with-an-if-block/180811 "2009-12-29T19:21:18Z")

</div>

I wanted to do a conditional addition to fastcgi params: if ($http\_host ~\* ‘secure-’) { fastcgi\_param HTTPS on; } However, nginx returns with “fastcgi\_param is not allowed here” Any way to allow fastcgi\_params to be…

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

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