# Server

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

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

---

## [X-Accel-Redirect and Content-Type](https://www.ruby-forum.com/t/x-accel-redirect-and-content-type/198653)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 2\
**Last updated:** [November 5, 2010, 4:33pm UTC](https://www.ruby-forum.com/t/x-accel-redirect-and-content-type/198653 "2010-11-05T16:33:34Z")

</div>

Currently the application that is passing the X-Accel-Redirect uri back to nginx must set the Content-type header otherwise it will automatically be set to the default\_type setting. Is there a way to get nginx to aut…

---

## [Fastcgi\_cache replication?](https://www.ruby-forum.com/t/fastcgi-cache-replication/198675)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 3\
**Last updated:** [November 5, 2010, 1:23pm UTC](https://www.ruby-forum.com/t/fastcgi-cache-replication/198675 "2010-11-05T13:23:06Z")

</div>

Hello, We are successfully using fastcgi\_cache on our PHP application. We currently have 5 servers in the farm, which means it currently takes 5x as long to build up the cache after each purge/timeout. Is there anywa…

---

## [$binary\_remote\_addr byte order (big-endian guaranteed?)](https://www.ruby-forum.com/t/binary-remote-addr-byte-order-big-endian-guaranteed/198679)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 1\
**Last updated:** [November 5, 2010, 1:13pm UTC](https://www.ruby-forum.com/t/binary-remote-addr-byte-order-big-endian-guaranteed/198679 "2010-11-05T13:13:03Z")

</div>

In what format is $binary\_remote\_addr? Test shows network byte order (big-endian), but is that guaranteed? English wiki doesn’t say, and my Russian leaves much to be desired. helen Posted at Nginx Forum:

---

## [Per-Request Unique Identifier (Log Correlation)](https://www.ruby-forum.com/t/per-request-unique-identifier-log-correlation/198678)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 0\
**Last updated:** [November 5, 2010, 7:33am UTC](https://www.ruby-forum.com/t/per-request-unique-identifier-log-correlation/198678 "2010-11-05T07:33:19Z")

</div>

There is information available to log by the fastcgi backend which is not available to nginx, and vice versa (e.g., $body\_bytes\_sent). I need some way to match these two logs together after the fact. This necessaril…

---

## [Reverse proxy cache design](https://www.ruby-forum.com/t/reverse-proxy-cache-design/198636)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 2\
**Last updated:** [November 5, 2010, 7:08am UTC](https://www.ruby-forum.com/t/reverse-proxy-cache-design/198636 "2010-11-05T07:08:09Z")

</div>

at the moment we are running an active/standby reverse proxy installation. one virtual IP by keepalived. it works great thanks to NGINX, but has the disantvantage of having an empty cache on the standby proxy, so in …

---

## [Nginx load balancer help](https://www.ruby-forum.com/t/nginx-load-balancer-help/164533)

<div class="topic-metadata">

**Author:** [@teck](https://www.ruby-forum.com/u/teck)\
**Replies:** 3\
**Last updated:** [November 5, 2010, 6:32am UTC](https://www.ruby-forum.com/t/nginx-load-balancer-help/164533 "2010-11-05T06:32:54Z")

</div>

Hi all, I need your help to setup nginx as load balancer. This is the hardware I plan to have: 3 web servers and 1 db server. Now I have 1 web server (nginx + php-fpm with php and static files to server) and 1 db ser…

---

## [Error: client closed prematurely connection](https://www.ruby-forum.com/t/error-client-closed-prematurely-connection/198650)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 0\
**Last updated:** [November 4, 2010, 8:24pm UTC](https://www.ruby-forum.com/t/error-client-closed-prematurely-connection/198650 "2010-11-04T20:24:33Z")

</div>

I have a problem similar to the one described here: Re: ngx\_http\_do\_read\_client\_request\_body -- client closed prematurely connection - I’m seeing some “client closed prematurely connection” errors. They seem to happen …

---

## [Hello,everyone](https://www.ruby-forum.com/t/hello-everyone/198613)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 0\
**Last updated:** [November 4, 2010, 8:51am UTC](https://www.ruby-forum.com/t/hello-everyone/198613 "2010-11-04T08:51:12Z")

</div>

Hello,everyone I am glad to enter here,have a good time Posted at Nginx Forum:

---

## [Is there are way to log PHP errors in fastcgi?](https://www.ruby-forum.com/t/is-there-are-way-to-log-php-errors-in-fastcgi/198523)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 5\
**Last updated:** [November 4, 2010, 1:21am UTC](https://www.ruby-forum.com/t/is-there-are-way-to-log-php-errors-in-fastcgi/198523 "2010-11-04T01:21:52Z")

</div>

I have configured the virtual host with a custom php.ini which has the error\_log value configured, but the file is empty, it is not created at all. Does the FastCGI have another way to log the PHP errors? – Frank C…

---

## [Client abort detection w/ upstream broken on anything but kqueue ()?](https://www.ruby-forum.com/t/client-abort-detection-w-upstream-broken-on-anything-but-kqueue/198520)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 3\
**Last updated:** [November 3, 2010, 7:35pm UTC](https://www.ruby-forum.com/t/client-abort-detection-w-upstream-broken-on-anything-but-kqueue/198520 "2010-11-03T19:35:39Z")

</div>

Hello, I’m investigating why client aborts are successfully detected by nginx when using kqueue () on BSD systems and not when using poll () on BSD & Linux or epoll () on Linux systems. I’ve done debug sessions and I…

---

## [Keep Alive Bug](https://www.ruby-forum.com/t/keep-alive-bug/198556)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 5\
**Last updated:** [November 3, 2010, 2:45pm UTC](https://www.ruby-forum.com/t/keep-alive-bug/198556 "2010-11-03T14:45:16Z")

</div>

With keep alive enabled I regularly get issues where requests are combined, it seems to depend on the status of a background XMLHTTP request as to whether or not they will be combined. The output I get is like: ,{“i…

---

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

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 15\
**Last updated:** [November 3, 2010, 12:52pm UTC](https://www.ruby-forum.com/t/how-to-convert-apache-to-nginx-rewrite/198393 "2010-11-03T12:52:45Z")

</div>

Its rewrite for phpBB mod - przemo.org. \[code\]RewriteEngine on #RewriteBase /forum RewriteRule ^cat(\[0-9\]\*).htm$ ./index.php?c=$1 \[L,QSA\] RewriteRule ^(forum|.-vf)(\[0-9\]+)-(\[0-9\]+),(\[0-9\]+).htm$ ./viewforum.php?f=$…

---

## [Upgrading binaries with USR2 results in two severs running](https://www.ruby-forum.com/t/upgrading-binaries-with-usr2-results-in-two-severs-running/198542)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 1\
**Last updated:** [November 3, 2010, 9:50am UTC](https://www.ruby-forum.com/t/upgrading-binaries-with-usr2-results-in-two-severs-running/198542 "2010-11-03T09:50:51Z")

</div>

Shouldent the original process die after it starts the new process? I see another server start up, but the old one hang around: Log: 2010/11/03 07:16:41 \[notice\] 54825#0: signal 12 (SIGUSR2) received, changing binary …

---

## [Re: Dotted cookie name as proxy\_cache\_key problem](https://www.ruby-forum.com/t/re-dotted-cookie-name-as-proxy-cache-key-problem/198532)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 0\
**Last updated:** [November 3, 2010, 1:49am UTC](https://www.ruby-forum.com/t/re-dotted-cookie-name-as-proxy-cache-key-problem/198532 "2010-11-03T01:49:10Z")

</div>

Our internet site mens watches supplies quite a few manufacturers of designer designer handbags handbags like the Louis Vuitton Purses, Chanel Purses, Coach Purses and so on. They’re replica handbags all in fashion wh…

---

## [Re: Two Problems with proxy\_pass to upstream](https://www.ruby-forum.com/t/re-two-problems-with-proxy-pass-to-upstream/198529)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 0\
**Last updated:** [November 3, 2010, 1:48am UTC](https://www.ruby-forum.com/t/re-two-problems-with-proxy-pass-to-upstream/198529 "2010-11-03T01:48:32Z")

</div>

Our internet site mens watches supplies quite a few manufacturers of designer designer handbags handbags like the Louis Vuitton Purses, Chanel Purses, Coach Purses and so on. They’re replica handbags all in fashion wh…

---

## [Re: Nginx unexpectedly returning 304 for content cached from proxy](https://www.ruby-forum.com/t/re-nginx-unexpectedly-returning-304-for-content-cached-from-proxy/198524)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 0\
**Last updated:** [November 3, 2010, 1:48am UTC](https://www.ruby-forum.com/t/re-nginx-unexpectedly-returning-304-for-content-cached-from-proxy/198524 "2010-11-03T01:48:32Z")

</div>

Our internet site mens watches supplies quite a few manufacturers of designer designer handbags handbags like the Louis Vuitton Purses, Chanel Purses, Coach Purses and so on. They’re replica handbags all in fashion wh…

---

## [Re: nginx keeping session](https://www.ruby-forum.com/t/re-nginx-keeping-session/198528)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 0\
**Last updated:** [November 3, 2010, 1:48am UTC](https://www.ruby-forum.com/t/re-nginx-keeping-session/198528 "2010-11-03T01:48:32Z")

</div>

Our internet site mens watches supplies quite a few manufacturers of designer designer handbags handbags like the Louis Vuitton Purses, Chanel Purses, Coach Purses and so on. They’re replica handbags all in fashion wh…

---

## [Re: nginx with phpmyadmin 3.1.0](https://www.ruby-forum.com/t/re-nginx-with-phpmyadmin-3-1-0/198530)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 0\
**Last updated:** [November 3, 2010, 1:48am UTC](https://www.ruby-forum.com/t/re-nginx-with-phpmyadmin-3-1-0/198530 "2010-11-03T01:48:32Z")

</div>

Our internet site mens watches supplies quite a few manufacturers of designer designer handbags handbags like the Louis Vuitton Purses, Chanel Purses, Coach Purses and so on. They’re replica handbags all in fashion wh…

---

## [Are fastcgi\_params case-sensitive](https://www.ruby-forum.com/t/are-fastcgi-params-case-sensitive/198519)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 4\
**Last updated:** [November 3, 2010, 12:42am UTC](https://www.ruby-forum.com/t/are-fastcgi-params-case-sensitive/198519 "2010-11-03T00:42:56Z")

</div>

I have spent a few hours trying to debug ‘No input file specified’ errors until I realized that the script\_filename must be specified in upper case ie, fastcgi\_param SCRIPT\_FILENAME $document\_root$fastcgi\_script\_n…

---

## [How do you setup logging to check 'No input file specified'](https://www.ruby-forum.com/t/how-do-you-setup-logging-to-check-no-input-file-specified/198518)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 1\
**Last updated:** [November 3, 2010, 12:19am UTC](https://www.ruby-forum.com/t/how-do-you-setup-logging-to-check-no-input-file-specified/198518 "2010-11-03T00:19:44Z")

</div>

I keep getting a ‘No input file specified’ error and I want to know what information is passed by nginx to the fast cgi script. How can I do that? – Frank C. ======================= http://devblog.brahmancreations.…

---

## [Support for both HTTP and HTTPS requests on port 443](https://www.ruby-forum.com/t/support-for-both-http-and-https-requests-on-port-443/198176)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 2\
**Last updated:** [November 2, 2010, 9:54pm UTC](https://www.ruby-forum.com/t/support-for-both-http-and-https-requests-on-port-443/198176 "2010-11-02T21:54:41Z")

</div>

Hello, I have HTTPS/SSL server configured like this: server { listen 1.2.3.4:443 ssl; server\_name ssl.dom.tld ssl on; keepalive\_timeout 70; access\_log…

---

## [Change in error\_page behavior](https://www.ruby-forum.com/t/change-in-error-page-behavior/198458)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 2\
**Last updated:** [November 2, 2010, 5:06am UTC](https://www.ruby-forum.com/t/change-in-error-page-behavior/198458 "2010-11-02T05:06:12Z")

</div>

I used to use this: error\_page 497 https://domain.com:7878$request\_uri; to redirect requests from the http://domain.com:7878 non-ssl address to the ssl version on the same port. see Http-\>https redirection on the …

---

## [Limiting number of mail(imap/pop) connections per user per IP](https://www.ruby-forum.com/t/limiting-number-of-mail-imap-pop-connections-per-user-per-ip/198431)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 3\
**Last updated:** [November 1, 2010, 3:48pm UTC](https://www.ruby-forum.com/t/limiting-number-of-mail-imap-pop-connections-per-user-per-ip/198431 "2010-11-01T15:48:56Z")

</div>

Hi, In real IMAP servers like Dovecot, there is a way to limit the number of connections made by a username from a particular IP. Now that nginx is going to sit in front of my dovecot - I won’t be able make use of th…

---

## [Subrequest in limit\_rate](https://www.ruby-forum.com/t/subrequest-in-limit-rate/198433)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 0\
**Last updated:** [November 1, 2010, 10:42am UTC](https://www.ruby-forum.com/t/subrequest-in-limit-rate/198433 "2010-11-01T10:42:37Z")

</div>

Hi all, Does limit\_rate, which is in write filter module, work right when many subrequests exist? I meet a problem with limit\_rate for many subrequests. Here is the problem. limit\_rate works like this: a) after se…

---

## [Custom 403 error page quirk](https://www.ruby-forum.com/t/custom-403-error-page-quirk/198425)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 2\
**Last updated:** [November 1, 2010, 10:35am UTC](https://www.ruby-forum.com/t/custom-403-error-page-quirk/198425 "2010-11-01T10:35:06Z")

</div>

Hi I have been trying to imlement a custom 403 error page - to be triggered when the request method is not in HEAD,GET,POST. I started with something like this (note I was specifically triggering the 403 error for G…

---

## [Debugging another issue](https://www.ruby-forum.com/t/debugging-another-issue/198367)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 1\
**Last updated:** [November 1, 2010, 3:33am UTC](https://www.ruby-forum.com/t/debugging-another-issue/198367 "2010-11-01T03:33:04Z")

</div>

Im receiveing lots of messages like “error\] 32211#0: \*1650258 upstream sent no valid HTTP/1.0 header while reading response header from upstream, client: 178.66.174.159, server: , request: “POST /\_serv/chat/read HTT…

---

## [Upload Issues with Nginx Reverse Proxy - Part 2](https://www.ruby-forum.com/t/upload-issues-with-nginx-reverse-proxy-part-2/148847)

<div class="topic-metadata">

**Author:** [@Tony\_Holmes](https://www.ruby-forum.com/u/Tony_Holmes)\
**Replies:** 6\
**Last updated:** [October 31, 2010, 3:28pm UTC](https://www.ruby-forum.com/t/upload-issues-with-nginx-reverse-proxy-part-2/148847 "2010-10-31T15:28:30Z")

</div>

I am using nginx (0.6.29) on Freebsd 7 amd64 as a reverse proxy to back end web sites. It works very well except for php based file uploads. I googled and found mention of setting the max post/upload/body size on the …

---

## [Mongrel don't render html if i use .htaccess](https://www.ruby-forum.com/t/mongrel-dont-render-html-if-i-use-htaccess/198395)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 0\
**Last updated:** [October 31, 2010, 1:21pm UTC](https://www.ruby-forum.com/t/mongrel-dont-render-html-if-i-use-htaccess/198395 "2010-10-31T13:21:33Z")

</div>

Hy, Being new here i hope somebody can help me. Setup: CentOS 5.5 ruby 1.8.7 (2009-06-08 patchlevel 173) \[i686-linux\] Rails 2.3.8 mongrel 1.1.5 rack 1.2.1, 1.0.1 Problem: If i use a .htaccess like RewriteEngin…

---

## [Nginx on host + nginx in jail - how to setup two servers?](https://www.ruby-forum.com/t/nginx-on-host-nginx-in-jail-how-to-setup-two-servers/198328)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 4\
**Last updated:** [October 31, 2010, 9:11am UTC](https://www.ruby-forum.com/t/nginx-on-host-nginx-in-jail-how-to-setup-two-servers/198328 "2010-10-31T09:11:09Z")

</div>

I have one nginx server on my host, whose connected to internet. I have second nginx in jail, whose has nonroutable ip. I want: nginx jail —\> nginx host —\> internet (world) How I can setup this? Proxy or sth? Posted …

---

## [Rewrite regexp for subdomains](https://www.ruby-forum.com/t/rewrite-regexp-for-subdomains/198372)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 3\
**Last updated:** [October 31, 2010, 4:50am UTC](https://www.ruby-forum.com/t/rewrite-regexp-for-subdomains/198372 "2010-10-31T04:50:15Z")

</div>

Hi i need to blabla.example.org or dummy.example.org anotherdummy send me to www.example.org (another words \*.example.org must redirect to www.example.org) but when i type www.example.org it can’t send to www.example.…

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

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