# Server

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

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

---

## [Multy subdomain](https://www.ruby-forum.com/t/multy-subdomain/166464)

<div class="topic-metadata">

**Author:** [@Andrius\_Semionovas](https://www.ruby-forum.com/u/Andrius_Semionovas)\
**Replies:** 1\
**Last updated:** [April 25, 2009, 6:08pm UTC](https://www.ruby-forum.com/t/multy-subdomain/166464 "2009-04-25T18:08:41Z")

</div>

my configuration is: server { listen 80; server\_name www.domain.com main.domain.com test.domain.com hight.domain.com; if ($host = ‘www.domain.com’) { root /www/server; access\_log logs/www.domain.com.log …

---

## [Bad Performance when using two Nginx behind each other](https://www.ruby-forum.com/t/bad-performance-when-using-two-nginx-behind-each-other/166444)

<div class="topic-metadata">

**Author:** [@maxigs](https://www.ruby-forum.com/u/maxigs)\
**Replies:** 2\
**Last updated:** [April 25, 2009, 12:43pm UTC](https://www.ruby-forum.com/t/bad-performance-when-using-two-nginx-behind-each-other/166444 "2009-04-25T12:43:45Z")

</div>

Hi, i’m currently having pretty bad performance on my server setup which is most likely just a little issue with my configuration but i cant figure out what i do wrong. Google did not really help much either. The Pro…

---

## [C fast-cgi implementation](https://www.ruby-forum.com/t/c-fast-cgi-implementation/166341)

<div class="topic-metadata">

**Author:** [@Huy\_Phan](https://www.ruby-forum.com/u/Huy_Phan)\
**Replies:** 5\
**Last updated:** [April 25, 2009, 7:40am UTC](https://www.ruby-forum.com/t/c-fast-cgi-implementation/166341 "2009-04-25T07:40:37Z")

</div>

Hi, I’m doing some benchmarks on Nginx against Apache with PHP and C/C++. as far as I know, Nginx is lack of supporting CGI, can you suggest me a way to implement Nginx fast-cgi with C/C++ ? I googled these days but…

---

## [Proxy\_cache\_valid question](https://www.ruby-forum.com/t/proxy-cache-valid-question/166310)

<div class="topic-metadata">

**Author:** [@Resicow](https://www.ruby-forum.com/u/Resicow)\
**Replies:** 3\
**Last updated:** [April 24, 2009, 9:21pm UTC](https://www.ruby-forum.com/t/proxy-cache-valid-question/166310 "2009-04-24T21:21:25Z")

</div>

Hello Community, Is it possible to assign different proxy\_cache\_valid values for different file extensions? So for example .jpg could live in the cache for 7 days, but .js files would only live for 6 hours? I guess y…

---

## [Getgrnam("root") failed](https://www.ruby-forum.com/t/getgrnam-root-failed/166030)

<div class="topic-metadata">

**Author:** [@balishaggy](https://www.ruby-forum.com/u/balishaggy)\
**Replies:** 21\
**Last updated:** [April 24, 2009, 6:31pm UTC](https://www.ruby-forum.com/t/getgrnam-root-failed/166030 "2009-04-24T18:31:23Z")

</div>

Hi, I’m a deployment newbie and ran into an error in my nginx config file (pasted below). Any pointers are very much appreciated. I am setting up NGINX on Mac OS 10.5.6 to test before deploying a Rails app on an AWS…

---

## [Upcoming 0.7.53 large patch](https://www.ruby-forum.com/t/upcoming-0-7-53-large-patch/166321)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 16\
**Last updated:** [April 24, 2009, 6:31pm UTC](https://www.ruby-forum.com/t/upcoming-0-7-53-large-patch/166321 "2009-04-24T18:31:22Z")

</div>

Future even today: http://sysoev.ru/tmp/patch.0.7.52.prefix There are many changes related to the “-p prefix” switch support and the start up error logging and I want to test them before release. \*) Change: now a log…

---

## [Htaccess to NGINX conversion help](https://www.ruby-forum.com/t/htaccess-to-nginx-conversion-help/166390)

<div class="topic-metadata">

**Author:** [@leej\_w](https://www.ruby-forum.com/u/leej_w)\
**Replies:** 1\
**Last updated:** [April 24, 2009, 5:59pm UTC](https://www.ruby-forum.com/t/htaccess-to-nginx-conversion-help/166390 "2009-04-24T17:59:40Z")

</div>

Hello, I am wondering if anyone could help me convert this .htaccess file to NGINX. I have attempted to look for solutions on the internet but cannot seem to solve the problem. RewriteEngine On RewriteBase / Rewri…

---

## [Upstream content checks](https://www.ruby-forum.com/t/upstream-content-checks/166389)

<div class="topic-metadata">

**Author:** [@Smatchimo](https://www.ruby-forum.com/u/Smatchimo)\
**Replies:** 1\
**Last updated:** [April 24, 2009, 5:45pm UTC](https://www.ruby-forum.com/t/upstream-content-checks/166389 "2009-04-24T17:45:01Z")

</div>

Does anyone know of any addons to nginx that would let it do content checks to determine if an upstream server is alive or not, i.e. check a certain page for a given string? We are hoping to replace a lot of old ldire…

---

## [Content-Type parsing issue](https://www.ruby-forum.com/t/content-type-parsing-issue/166380)

<div class="topic-metadata">

**Author:** [@Pavel\_Ivashkov](https://www.ruby-forum.com/u/Pavel_Ivashkov)\
**Replies:** 0\
**Last updated:** [April 24, 2009, 2:50pm UTC](https://www.ruby-forum.com/t/content-type-parsing-issue/166380 "2009-04-24T14:50:47Z")

</div>

Hello all, nginx-0.7.33 It seems than nginx cannot correctly recognize the following header: Content-Type: text/html;UTF-8;charset=UTF-8 (Can be seen on http://www.nutrisystem.com/jsps\_hmr/home/index.jsp for examp…

---

## [Php-fpm patch](https://www.ruby-forum.com/t/php-fpm-patch/166355)

<div class="topic-metadata">

**Author:** [@sovok](https://www.ruby-forum.com/u/sovok)\
**Replies:** 2\
**Last updated:** [April 24, 2009, 12:58pm UTC](https://www.ruby-forum.com/t/php-fpm-patch/166355 "2009-04-24T12:58:02Z")

</div>

Does anyone know if the development of php-fpm still is on… I mean there is already php 5.2.9, but the php-fpm patch is nowhere to be found. If you have some updates, please let me know… just simply running php-fastc…

---

## [Mail proxy module - http auth - BUG : bad Auth-Method returned](https://www.ruby-forum.com/t/mail-proxy-module-http-auth-bug-bad-auth-method-returned/166363)

<div class="topic-metadata">

**Author:** [@Simon\_LSSSScaille](https://www.ruby-forum.com/u/Simon_LSSSScaille)\
**Replies:** 3\
**Last updated:** [April 24, 2009, 12:57pm UTC](https://www.ruby-forum.com/t/mail-proxy-module-http-auth-bug-bad-auth-method-returned/166363 "2009-04-24T12:57:20Z")

</div>

When authenticate mechanism such as apop or cram-md5 are used, the Auth-Method header sent to backend mismatch the auth method used. e.g With cram-md5 mechanism GET / HTTP/1.0 Host: localhost Auth-Method: none Auth…

---

## [Strange hex numbers on my page](https://www.ruby-forum.com/t/strange-hex-numbers-on-my-page/166285)

<div class="topic-metadata">

**Author:** [@marcintom](https://www.ruby-forum.com/u/marcintom)\
**Replies:** 2\
**Last updated:** [April 24, 2009, 8:51am UTC](https://www.ruby-forum.com/t/strange-hex-numbers-on-my-page/166285 "2009-04-24T08:51:33Z")

</div>

Hi all, I work on 0.5.26 version and yesterday I migrate to 0.6.36 version. I have a problem configuration looks like as in old version and allmost everything work fine but in the wordpress it appear some random hex…

---

## [Cache](https://www.ruby-forum.com/t/cache/166266)

<div class="topic-metadata">

**Author:** [@Glen\_L](https://www.ruby-forum.com/u/Glen_L)\
**Replies:** 1\
**Last updated:** [April 23, 2009, 9:28pm UTC](https://www.ruby-forum.com/t/cache/166266 "2009-04-23T21:28:27Z")

</div>

I used fastcgi\_cache. It works so great But I have a website that let someone to login with their own username. Sometimes it’s giving me onother username. Is there any ways if using fastcgi\_cache, but exclude a text t…

---

## [Nginx "Bug"?](https://www.ruby-forum.com/t/nginx-bug/166286)

<div class="topic-metadata">

**Author:** [@paul](https://www.ruby-forum.com/u/paul)\
**Replies:** 2\
**Last updated:** [April 23, 2009, 8:15pm UTC](https://www.ruby-forum.com/t/nginx-bug/166286 "2009-04-23T20:15:05Z")

</div>

Hi, I don’t know if Igor S. is aware of this: When running nginx in debug mode (I was debugging a custom module for nginx in gdb): master\_process off; daemon off; Nginx breaks down when sending a HUP signal (relo…

---

## [Nginx-0.7.52](https://www.ruby-forum.com/t/nginx-0-7-52/165942)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 43\
**Last updated:** [April 23, 2009, 3:38pm UTC](https://www.ruby-forum.com/t/nginx-0-7-52/165942 "2009-04-23T15:38:33Z")

</div>

Changes with nginx 0.7.52 20 Apr 2009 \*) Feature: the first native Windows binary release. \*) Bugfix: in processing HEAD method while caching. \*) Bugfix: in processing the "If-M…

---

## [IPv6 support](https://www.ruby-forum.com/t/ipv6-support/160005)

<div class="topic-metadata">

**Author:** [@Tobias\_lott](https://www.ruby-forum.com/u/Tobias_lott)\
**Replies:** 2\
**Last updated:** [April 23, 2009, 1:43pm UTC](https://www.ruby-forum.com/t/ipv6-support/160005 "2009-04-23T13:43:20Z")

</div>

Hey, I’ve found older Messages about IPv6 support in this List that its not supported right now, so my Question is there any plan to implement it soon? Greetings Tobias

---

## [Help: How to deal with content scrapers?](https://www.ruby-forum.com/t/help-how-to-deal-with-content-scrapers/166235)

<div class="topic-metadata">

**Author:** [@davidr](https://www.ruby-forum.com/u/davidr)\
**Replies:** 2\
**Last updated:** [April 23, 2009, 3:48am UTC](https://www.ruby-forum.com/t/help-how-to-deal-with-content-scrapers/166235 "2009-04-23T03:48:58Z")

</div>

Guys, I need some help. In the past few months, the site that I administer (it’s a large medical non-profit/charity) has been attacked by content scraping bots. Basically, these content thieves scrape our sites and t…

---

## [SMTP without Auth can this be done](https://www.ruby-forum.com/t/smtp-without-auth-can-this-be-done/166213)

<div class="topic-metadata">

**Author:** [@blacktux](https://www.ruby-forum.com/u/blacktux)\
**Replies:** 1\
**Last updated:** [April 22, 2009, 8:59pm UTC](https://www.ruby-forum.com/t/smtp-without-auth-can-this-be-done/166213 "2009-04-22T20:59:29Z")

</div>

Does anyone have a example config of SMTP without Auth? I am just trying to get going a SMTP Relay Proxy to a internal MTAs from external connections. Or could please point me in the correct direction. Cheers James P…

---

## [Starting /stopping nginx](https://www.ruby-forum.com/t/starting-stopping-nginx/166081)

<div class="topic-metadata">

**Author:** [@Payam\_C](https://www.ruby-forum.com/u/Payam_C)\
**Replies:** 10\
**Last updated:** [April 22, 2009, 3:00pm UTC](https://www.ruby-forum.com/t/starting-stopping-nginx/166081 "2009-04-22T15:00:48Z")

</div>

hey Guys, Anyone else notice that in the resent \*.52 release stopping/starting nginx does not restart the process? I manually have to kill -9 the master and each child… any ideas? it gets annoying when you have to do…

---

## [Another windows 0.7.52 question](https://www.ruby-forum.com/t/another-windows-0-7-52-question/166126)

<div class="topic-metadata">

**Author:** [@Chris\_Cortese](https://www.ruby-forum.com/u/Chris_Cortese)\
**Replies:** 1\
**Last updated:** [April 22, 2009, 2:30pm UTC](https://www.ruby-forum.com/t/another-windows-0-7-52-question/166126 "2009-04-22T14:30:11Z")

</div>

I found that increasing the # of worker\_connections to 64 makes it so I no longer get 500 Internal Server Error, and I’m back to “No input file specified.” In the error log I see stuff like this: 2009/04/21 19:40:00 …

---

## [X-forward-header / x-real-ip](https://www.ruby-forum.com/t/x-forward-header-x-real-ip/166101)

<div class="topic-metadata">

**Author:** [@Payam\_C](https://www.ruby-forum.com/u/Payam_C)\
**Replies:** 4\
**Last updated:** [April 22, 2009, 2:03pm UTC](https://www.ruby-forum.com/t/x-forward-header-x-real-ip/166101 "2009-04-22T14:03:44Z")

</div>

hey guys, what is the main difference between these two? reading the documentation it looks like both set the ip address of the client on the request which allows you to pass the real client ip address to a backend s…

---

## [Move calculation $upstream\_response\_time before send header to client](https://www.ruby-forum.com/t/move-calculation-upstream-response-time-before-send-header-to-client/166092)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [April 22, 2009, 10:36am UTC](https://www.ruby-forum.com/t/move-calculation-upstream-response-time-before-send-header-to-client/166092 "2009-04-22T10:36:56Z")

</div>

From: Kirill A. Korinskiy removed\_email\_address@domain.invalid Now calculation $upstream\_response\_time happen after send header to client and we have a 0 ms response to not error (last) upstream. src/http/ngx\_http\_ups…

---

## [Request for small feature change](https://www.ruby-forum.com/t/request-for-small-feature-change/166150)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 0\
**Last updated:** [April 22, 2009, 10:28am UTC](https://www.ruby-forum.com/t/request-for-small-feature-change/166150 "2009-04-22T10:28:45Z")

</div>

fastcgi\_intercept\_errors on; currently only takes effect if you have explicitly defined error\_page’s. can it fall back to nginx default error pages? that was the behavior i had expected in the past. i don’t see why it…

---

## [Nginx feature request](https://www.ruby-forum.com/t/nginx-feature-request/128677)

<div class="topic-metadata">

**Author:** [@Hendrik\_H](https://www.ruby-forum.com/u/Hendrik_H)\
**Replies:** 27\
**Last updated:** [April 22, 2009, 9:33am UTC](https://www.ruby-forum.com/t/nginx-feature-request/128677 "2009-04-22T09:33:32Z")

</div>

Hi all, Discovered Nginx a few weeks back. After some experimenting I have come to the conclusion that Nginx really is very very good. I have a small feature request: I have a set of static files (html and others) w…

---

## [Which one is better?](https://www.ruby-forum.com/t/which-one-is-better/166039)

<div class="topic-metadata">

**Author:** [@Glen\_L](https://www.ruby-forum.com/u/Glen_L)\
**Replies:** 27\
**Last updated:** [April 22, 2009, 8:54am UTC](https://www.ruby-forum.com/t/which-one-is-better/166039 "2009-04-22T08:54:23Z")

</div>

I still wonder which one is better for performance Pure nginx + php-fpm Or Nginx + apache2 + proxy\_cache Anybody knows about this?

---

## [Request body problem](https://www.ruby-forum.com/t/request-body-problem/166132)

<div class="topic-metadata">

**Author:** [@dr-dr\_xp](https://www.ruby-forum.com/u/dr-dr_xp)\
**Replies:** 0\
**Last updated:** [April 22, 2009, 5:37am UTC](https://www.ruby-forum.com/t/request-body-problem/166132 "2009-04-22T05:37:51Z")

</div>

I do not know if it is a bug or design intention: if request body client sent is larger than the amount Content-Length specified . The addition data is also received and dealt in an incorrect way. If content-length i…

---

## [Segmentation fault - signal 11](https://www.ruby-forum.com/t/segmentation-fault-signal-11/166109)

<div class="topic-metadata">

**Author:** [@dalspenguin](https://www.ruby-forum.com/u/dalspenguin)\
**Replies:** 0\
**Last updated:** [April 21, 2009, 11:46pm UTC](https://www.ruby-forum.com/t/segmentation-fault-signal-11/166109 "2009-04-21T23:46:12Z")

</div>

hello, I have created module which contains the function set\_crc32. You can find the source of it below: I’ve tested it on the Ubuntu and the function set\_crc32 returned the value without any errors: You can find th…

---

## [Re: starting /stopping nginx](https://www.ruby-forum.com/t/re-starting-stopping-nginx/166088)

<div class="topic-metadata">

**Author:** [@joviyach](https://www.ruby-forum.com/u/joviyach)\
**Replies:** 0\
**Last updated:** [April 21, 2009, 7:50pm UTC](https://www.ruby-forum.com/t/re-starting-stopping-nginx/166088 "2009-04-21T19:50:00Z")

</div>

I installed 0.7.52 on several Virtuozzo containers. All are running CentOS, some 32 bit and some 64. After reading your post I checked them all. One (and only one) is having a similar issue. It’s a 64 bit container. …

---

## [Bug? Inconsistent url encoding in X-Accel-Redirect](https://www.ruby-forum.com/t/bug-inconsistent-url-encoding-in-x-accel-redirect/166079)

<div class="topic-metadata">

**Author:** [@bdmcnitt](https://www.ruby-forum.com/u/bdmcnitt)\
**Replies:** 0\
**Last updated:** [April 21, 2009, 7:00pm UTC](https://www.ruby-forum.com/t/bug-inconsistent-url-encoding-in-x-accel-redirect/166079 "2009-04-21T19:00:05Z")

</div>

I believe I’ve found an inconsistency in url encoding of X-Accel-Redirect requests. The URL that I’m providing in my X-Accel-Redirect header looks something like: /BACKING\_HOST\_LOCATION/Green%20Apple.gif?param1=TzJPv…

---

## [Http headers ip address](https://www.ruby-forum.com/t/http-headers-ip-address/165910)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [April 21, 2009, 5:37pm UTC](https://www.ruby-forum.com/t/http-headers-ip-address/165910 "2009-04-21T17:37:58Z")

</div>

hi i get the clients ip address in this http header: X-FB-USER-REMOTE-ADDR. how do i configure nginx so that this is set as the ip address of client for a fastcgi app? thanks a lot!

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

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