# Server

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

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

---

## [Trying to do the opposite of www.domain.com -\> domain.com](https://www.ruby-forum.com/t/trying-to-do-the-opposite-of-www-domain-com-domain-com/147360)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 8\
**Last updated:** [September 1, 2008, 2:15pm UTC](https://www.ruby-forum.com/t/trying-to-do-the-opposite-of-www-domain-com-domain-com/147360 "2008-09-01T14:15:29Z")

</div>

Hi, Following this example from the docs: #rewrites Domeinnaam Mydomain.nl overnemen? Koop nu en start met je plan. =\> Domeinnaam Mydomain.nl overnemen? Koop nu en start met je plan. if ($host ~\* www.(.)) { set $host…

---

## [Mongrel\_rails: fatal: relocation error](https://www.ruby-forum.com/t/mongrel-rails-fatal-relocation-error/147395)

<div class="topic-metadata">

**Author:** [@deepakbattu](https://www.ruby-forum.com/u/deepakbattu)\
**Replies:** 1\
**Last updated:** [September 1, 2008, 1:00pm UTC](https://www.ruby-forum.com/t/mongrel-rails-fatal-relocation-error/147395 "2008-09-01T13:00:10Z")

</div>

Just installed mongrel from source and when try to start mongrel… the following error is coming. $\>mongrel\_rails start \*\* Starting Mongrel listening at 0.0.0.0:3000 \*\* Starting Rails with development environment… /u…

---

## [Mixed Virtualhosts and IP hosts](https://www.ruby-forum.com/t/mixed-virtualhosts-and-ip-hosts/147324)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 15\
**Last updated:** [August 31, 2008, 3:22pm UTC](https://www.ruby-forum.com/t/mixed-virtualhosts-and-ip-hosts/147324 "2008-08-31T15:22:50Z")

</div>

Hello, I have 2-3 IPs. I would like 2 IPs to be IP based hosts, and the 3rd IP to host my virtualhosted sites. Currently I have setup each domain with it’s own config file that is called into nginx.conf inside the h…

---

## [How to write a module to redirect a request to specific server by uri?](https://www.ruby-forum.com/t/how-to-write-a-module-to-redirect-a-request-to-specific-server-by-uri/147329)

<div class="topic-metadata">

**Author:** [@nbubingo](https://www.ruby-forum.com/u/nbubingo)\
**Replies:** 1\
**Last updated:** [August 31, 2008, 2:33pm UTC](https://www.ruby-forum.com/t/how-to-write-a-module-to-redirect-a-request-to-specific-server-by-uri/147329 "2008-08-31T14:33:04Z")

</div>

Hello: I want to write a module to redirect a request to a specific server by uri. when received a request, I need to calculate the secific server’s ip with the number in the uri. I have tried the function of ngx\_htt…

---

## [Error log](https://www.ruby-forum.com/t/error-log/147325)

<div class="topic-metadata">

**Author:** [@walt](https://www.ruby-forum.com/u/walt)\
**Replies:** 1\
**Last updated:** [August 31, 2008, 6:07am UTC](https://www.ruby-forum.com/t/error-log/147325 "2008-08-31T06:07:15Z")

</div>

What’s mean by this error log,just only one. 2008/08/31 00:24:08 \[error\] 19374#0: accept() failed (103: Software caused connection abort) while accepting new connection on 0.0.0.0:80

---

## [Mongrel startup fails now: already initialized constant OPTIONS](https://www.ruby-forum.com/t/mongrel-startup-fails-now-already-initialized-constant-options/120115)

<div class="topic-metadata">

**Author:** [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Replies:** 16\
**Last updated:** [August 31, 2008, 4:17am UTC](https://www.ruby-forum.com/t/mongrel-startup-fails-now-already-initialized-constant-options/120115 "2008-08-31T04:17:38Z")

</div>

I updated to ruby 1.8.6p111 last night and updated some gems and now mongrel doesn’t work: MacOS 10.4.10 $ ruby --version ruby 1.8.6 (2007-09-24 patchlevel 111) \[i686-darwin8.10.1\] $ gem list rails \*\*\* LOCAL GEMS \*…

---

## [Correct way to do redirect](https://www.ruby-forum.com/t/correct-way-to-do-redirect/147266)

<div class="topic-metadata">

**Author:** [@yetanothergeek](https://www.ruby-forum.com/u/yetanothergeek)\
**Replies:** 3\
**Last updated:** [August 30, 2008, 7:02pm UTC](https://www.ruby-forum.com/t/correct-way-to-do-redirect/147266 "2008-08-30T19:02:13Z")

</div>

I’d like to do a geo based redirect. Users who initially hit my site would be given an IP round robin from the DNS servers. Then each node would test the ip and decide if it would be better to redirect to the closer …

---

## [Nginx + Mercurial + $path\_info](https://www.ruby-forum.com/t/nginx-mercurial-path-info/147090)

<div class="topic-metadata">

**Author:** [@thundercat](https://www.ruby-forum.com/u/thundercat)\
**Replies:** 1\
**Last updated:** [August 30, 2008, 2:39pm UTC](https://www.ruby-forum.com/t/nginx-mercurial-path-info/147090 "2008-08-30T14:39:58Z")

</div>

Hi guys, the last couple of days I’ve been working on a Mercurial repository behind nginx (via fastCGI) and it has been working absolutely fine. Now I had to move my /www/ directory for the repository and can’t get it…

---

## [Appending unique data to files before output](https://www.ruby-forum.com/t/appending-unique-data-to-files-before-output/147256)

<div class="topic-metadata">

**Author:** [@dezer85](https://www.ruby-forum.com/u/dezer85)\
**Replies:** 0\
**Last updated:** [August 29, 2008, 9:41pm UTC](https://www.ruby-forum.com/t/appending-unique-data-to-files-before-output/147256 "2008-08-29T21:41:30Z")

</div>

I’m working on a site which uses a quick digital watermark which is added before download. Ideally this might be added by nginx while transferring the files to avoid tying up the mongrels. It seems that http\_addition…

---

## [GZIP problem with backend hosts](https://www.ruby-forum.com/t/gzip-problem-with-backend-hosts/147101)

<div class="topic-metadata">

**Author:** [@alanwatts](https://www.ruby-forum.com/u/alanwatts)\
**Replies:** 10\
**Last updated:** [August 29, 2008, 2:11pm UTC](https://www.ruby-forum.com/t/gzip-problem-with-backend-hosts/147101 "2008-08-29T14:11:54Z")

</div>

Afternoon all. I first of all thought I had a problem with our backend hosts not sending GZIP content, but it appears NGINX is at fault. We use nginx infront of a lot of Amazon instances. The backend instances, prep…

---

## [Nginx with tomcat](https://www.ruby-forum.com/t/nginx-with-tomcat/147205)

<div class="topic-metadata">

**Author:** [@sovok](https://www.ruby-forum.com/u/sovok)\
**Replies:** 3\
**Last updated:** [August 29, 2008, 12:09pm UTC](https://www.ruby-forum.com/t/nginx-with-tomcat/147205 "2008-08-29T12:09:48Z")

</div>

Does anyone know if nginx is possible to work with tomcat, tomcat as somekind of a proxy back-end, similar idea to php-fastcgi? I need to test something and I have it with apache, mod\_jk and of course tomcat and wanna…

---

## [Error log](https://www.ruby-forum.com/t/error-log/147176)

<div class="topic-metadata">

**Author:** [@walt](https://www.ruby-forum.com/u/walt)\
**Replies:** 4\
**Last updated:** [August 29, 2008, 11:36am UTC](https://www.ruby-forum.com/t/error-log/147176 "2008-08-29T11:36:05Z")

</div>

2008/08/28 16:57:00 \[alert\] 14892#0: accept() failed (24: Too many open files) while accepting new connection on 0.0.0.0:80 2008/08/28 16:57:00 \[alert\] 14892#0: accept() failed (24: Too many open files) while acceptin…

---

## [Upload module 2.0.6](https://www.ruby-forum.com/t/upload-module-2-0-6/147164)

<div class="topic-metadata">

**Author:** [@Valery\_K](https://www.ruby-forum.com/u/Valery_K)\
**Replies:** 0\
**Last updated:** [August 28, 2008, 11:28pm UTC](https://www.ruby-forum.com/t/upload-module-2-0-6/147164 "2008-08-28T23:28:10Z")

</div>

Changes (28-08-2008): Fixed bug: zero variables count in aggregate field name caused allocation of random amount of memory Fixed bug: Prevent generation of a field in case of empty field name NOTE: This release is ma…

---

## [Empty server name argument - Can't get it to work](https://www.ruby-forum.com/t/empty-server-name-argument-cant-get-it-to-work/147080)

<div class="topic-metadata">

**Author:** [@Luigi\_Perroti](https://www.ruby-forum.com/u/Luigi_Perroti)\
**Replies:** 9\
**Last updated:** [August 28, 2008, 2:24pm UTC](https://www.ruby-forum.com/t/empty-server-name-argument-cant-get-it-to-work/147080 "2008-08-28T14:24:30Z")

</div>

Hi, I’m trying out the new 0.7.13 release which permits to use “” as server name, but there must be something wrong with my configuration since I can’t get this new feature to work. Here’s the relevant snippet from…

---

## [Threading Rails](https://www.ruby-forum.com/t/threading-rails/147029)

<div class="topic-metadata">

**Author:** [@Parker\_T](https://www.ruby-forum.com/u/Parker_T)\
**Replies:** 3\
**Last updated:** [August 28, 2008, 4:01am UTC](https://www.ruby-forum.com/t/threading-rails/147029 "2008-08-28T04:01:00Z")

</div>

Hey, We (Pivotal Labs) have bee experimenting with Mongrel and Rails Edge to see what happens if we remove the mutex around the dispatch to Rails, our goal being to reduce memory usage in virtualized environments whe…

---

## [Nginx-0.7.13](https://www.ruby-forum.com/t/nginx-0-7-13/146916)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 4\
**Last updated:** [August 27, 2008, 11:00pm UTC](https://www.ruby-forum.com/t/nginx-0-7-13/146916 "2008-08-27T23:00:16Z")

</div>

Changes with nginx 0.7.13 26 Aug 2008 \*) Bugfix: nginx could not be built on Linux and Solaris; the bug had appeared in 0.7.12.

---

## [Rewrite rule to remove trailing dot from hostname](https://www.ruby-forum.com/t/rewrite-rule-to-remove-trailing-dot-from-hostname/146957)

<div class="topic-metadata">

**Author:** [@esquilax](https://www.ruby-forum.com/u/esquilax)\
**Replies:** 2\
**Last updated:** [August 27, 2008, 8:20pm UTC](https://www.ruby-forum.com/t/rewrite-rule-to-remove-trailing-dot-from-hostname/146957 "2008-08-27T20:20:10Z")

</div>

Here’s the issue: Right now users can browse my site via either “http://.com” or “http://.com.”. Notice the trailing dot. So because of some flash security issues I want to redirect the hostname with the trailing d…

---

## [Sending logout events](https://www.ruby-forum.com/t/sending-logout-events/146990)

<div class="topic-metadata">

**Author:** [@Attila\_Nagy](https://www.ruby-forum.com/u/Attila_Nagy)\
**Replies:** 5\
**Last updated:** [August 27, 2008, 4:12pm UTC](https://www.ruby-forum.com/t/sending-logout-events/146990 "2008-08-27T16:12:01Z")

</div>

Hello, Would it be possible to extend this protocol: http://wiki.codemongers.com/NginxImapCoreModule with logout (connection closed, timeout, etc) events? Something like this: GET /close HTTP/1.0 Host: auth.server.…

---

## [Kernel: trap divide error](https://www.ruby-forum.com/t/kernel-trap-divide-error/146705)

<div class="topic-metadata">

**Author:** [@Olivier\_B.valet](https://www.ruby-forum.com/u/Olivier_B.valet)\
**Replies:** 3\
**Last updated:** [August 27, 2008, 2:00pm UTC](https://www.ruby-forum.com/t/kernel-trap-divide-error/146705 "2008-08-27T14:00:36Z")

</div>

Hello, I use NginX 0.6.32-1 (the Debian sid package, recompiled for Debian Etch) in a 64bit environnement (about 25M hits per day, per server). NginX is used to serve static contents, and send other queries to an Apa…

---

## [Nginx-0.7.12](https://www.ruby-forum.com/t/nginx-0-7-12/146908)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 5\
**Last updated:** [August 27, 2008, 8:33am UTC](https://www.ruby-forum.com/t/nginx-0-7-12/146908 "2008-08-27T08:33:56Z")

</div>

Changes with nginx 0.7.12 26 Aug 2008 \*) Feature: the "server\_name" directive supports empty name "". \*) Feature: the "gzip\_disable" directive supports special "msie6" mask. \*…

---

## [Eventports](https://www.ruby-forum.com/t/eventports/146631)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 3\
**Last updated:** [August 27, 2008, 8:33am UTC](https://www.ruby-forum.com/t/eventports/146631 "2008-08-27T08:33:20Z")

</div>

Someone on nginx blogged about this… http://letsgetdugg.com/view/Nginx\_hidden\_performance\_option Wondering what OSes would benefit from this? and at what point would it help to turn on, or should it be on always, or s…

---

## [Read configuration at runtime](https://www.ruby-forum.com/t/read-configuration-at-runtime/146891)

<div class="topic-metadata">

**Author:** [@Jarod\_B](https://www.ruby-forum.com/u/Jarod_B)\
**Replies:** 11\
**Last updated:** [August 27, 2008, 5:08am UTC](https://www.ruby-forum.com/t/read-configuration-at-runtime/146891 "2008-08-27T05:08:05Z")

</div>

I want to make nginx to get different configurations dynamically at runtime. Appreciate for any suggestions.

---

## [Problems with php-fpm](https://www.ruby-forum.com/t/problems-with-php-fpm/146947)

<div class="topic-metadata">

**Author:** [@Samuel\_Vogel](https://www.ruby-forum.com/u/Samuel_Vogel)\
**Replies:** 7\
**Last updated:** [August 27, 2008, 3:45am UTC](https://www.ruby-forum.com/t/problems-with-php-fpm/146947 "2008-08-27T03:45:06Z")

</div>

Hey guys, I am new to nginx an I am trying to set up nginx with php support through php-fpm. When I start php-fpm, it does spawn some php processes: ps aux | grep php root 30292 0.0 0.0 11852 2752 ? Ss…

---

## [1451#0: duplicate MIME type "text/html" in /usr/local/nginx/conf/nginx.conf:71](https://www.ruby-forum.com/t/1451-0-duplicate-mime-type-text-html-in-usr-local-nginx-conf-nginx-conf-71/146942)

<div class="topic-metadata">

**Author:** [@Adam\_Setzler](https://www.ruby-forum.com/u/Adam_Setzler)\
**Replies:** 2\
**Last updated:** [August 27, 2008, 12:33am UTC](https://www.ruby-forum.com/t/1451-0-duplicate-mime-type-text-html-in-usr-local-nginx-conf-nginx-conf-71/146942 "2008-08-27T00:33:45Z")

</div>

What does this error mean? I upgraded from 0.6.32 to 0.7.13 and it appeared. \[warn\] 1451#0: duplicate MIME type “text/html” in /usr/local/nginx/conf/nginx.conf:71 – Adam “Courage is not the absence of fear, but rat…

---

## [Adding a module, config variables unknown](https://www.ruby-forum.com/t/adding-a-module-config-variables-unknown/146379)

<div class="topic-metadata">

**Author:** [@Bjoern](https://www.ruby-forum.com/u/Bjoern)\
**Replies:** 9\
**Last updated:** [August 26, 2008, 10:08pm UTC](https://www.ruby-forum.com/t/adding-a-module-config-variables-unknown/146379 "2008-08-26T22:08:25Z")

</div>

Hi everybody, I have a problem adding a module. I’ve downloaded and extracted the nginx sources. ~/devel/nginx/ Downloaded the sources of the module called “accesskey”. Extracted the files to a folder let’s call it …

---

## [Question about http\_stub\_status](https://www.ruby-forum.com/t/question-about-http-stub-status/146571)

<div class="topic-metadata">

**Author:** [@Marcus\_Bianchy](https://www.ruby-forum.com/u/Marcus_Bianchy)\
**Replies:** 6\
**Last updated:** [August 26, 2008, 8:59pm UTC](https://www.ruby-forum.com/t/question-about-http-stub-status/146571 "2008-08-26T20:59:47Z")

</div>

Hi, we are using the “Stub Status Module” now for a couple of days, and there is a something strange effect with the values from this module: The first few hours the values for “Active connections” and “Waiting” wer…

---

## [Error: structure has no member named \`gl\_matchc' (was: nginx-0.7.12)](https://www.ruby-forum.com/t/error-structure-has-no-member-named-gl-matchc-was-nginx-0-7-12/146912)

<div class="topic-metadata">

**Author:** [@Jason\_Becker](https://www.ruby-forum.com/u/Jason_Becker)\
**Replies:** 1\
**Last updated:** [August 26, 2008, 7:08pm UTC](https://www.ruby-forum.com/t/error-structure-has-no-member-named-gl-matchc-was-nginx-0-7-12/146912 "2008-08-26T19:08:28Z")

</div>

On Tue, Aug 26, 2008 at 10:20 AM, Igor S. removed\_email\_address@domain.invalid wrote: Changes with nginx 0.7.12 26 Aug 2008 I cannot compile 0.7.12 on Ubuntu or CentOS. ./confi…

---

## [Can nginx.conf use relative paths?](https://www.ruby-forum.com/t/can-nginx-conf-use-relative-paths/146894)

<div class="topic-metadata">

**Author:** [@Sven\_CSKoehler](https://www.ruby-forum.com/u/Sven_CSKoehler)\
**Replies:** 4\
**Last updated:** [August 26, 2008, 5:53pm UTC](https://www.ruby-forum.com/t/can-nginx-conf-use-relative-paths/146894 "2008-08-26T17:53:59Z")

</div>

Hello, I am just wondering whether it’s possible to use relative paths in the nginx.conf, like: \[ng.conf\] include common.nginx.conf; pid nginx.pid; error\_log error.log; On Gentoo’s nginx-0.7.7 I get /tmp/ng $ /us…

---

## [Custom response codes and content-types for memcache module](https://www.ruby-forum.com/t/custom-response-codes-and-content-types-for-memcache-module/143740)

<div class="topic-metadata">

**Author:** [@spilgames](https://www.ruby-forum.com/u/spilgames)\
**Replies:** 16\
**Last updated:** [August 26, 2008, 4:08pm UTC](https://www.ruby-forum.com/t/custom-response-codes-and-content-types-for-memcache-module/143740 "2008-08-26T16:08:59Z")

</div>

Hi, I have recently written a patch which allows storage of custom HTTP response codes and Content-type headers within memcache alongside the actual response body. This allows us to pass the not\_found’s of the memcac…

---

## [Help with rebuilding to support FLV module](https://www.ruby-forum.com/t/help-with-rebuilding-to-support-flv-module/146671)

<div class="topic-metadata">

**Author:** [@Adam\_Setzler](https://www.ruby-forum.com/u/Adam_Setzler)\
**Replies:** 3\
**Last updated:** [August 26, 2008, 3:34pm UTC](https://www.ruby-forum.com/t/help-with-rebuilding-to-support-flv-module/146671 "2008-08-26T15:34:57Z")

</div>

If I am going to rebuild Nginx to include the FLV module, when I recompile, will it overwrite my conf file? Could someone tell me how to prepare to rebuild it, etc? – Adam “Courage is not the absence of fear, but r…

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

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