# Server

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

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

---

## [Virtualhosts and listen (Listen to all, handle some)](https://www.ruby-forum.com/t/virtualhosts-and-listen-listen-to-all-handle-some/204346)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [March 10, 2011, 10:57am UTC](https://www.ruby-forum.com/t/virtualhosts-and-listen-listen-to-all-handle-some/204346 "2011-03-10T10:57:00Z")

</div>

hello (sorry for my bad english) in the following example, nginx do bind on all interfaces because exists a “listen \*: 80” right? OK, so I want to do the following, nginx listens on all interfaces (localhost, LAN and…

---

## [Transfering apache proxy settings to nginx](https://www.ruby-forum.com/t/transfering-apache-proxy-settings-to-nginx/204348)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [March 10, 2011, 10:03am UTC](https://www.ruby-forum.com/t/transfering-apache-proxy-settings-to-nginx/204348 "2011-03-10T10:03:06Z")

</div>

Hey! I am moving from apache to nginx and i am having some problems with proxy settings. Apache settings are: ProxyRequests Off ProxyPreserveHost Off Order deny,allow Allow from all ProxyPass /dirpath http://sub.y…

---

## [Rows go missing when seen through APACHE but through Mongrail, works fine](https://www.ruby-forum.com/t/rows-go-missing-when-seen-through-apache-but-through-mongrail-works-fine/204342)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [March 10, 2011, 8:32am UTC](https://www.ruby-forum.com/t/rows-go-missing-when-seen-through-apache-but-through-mongrail-works-fine/204342 "2011-03-10T08:32:54Z")

</div>

Hi, In my site, I have implemented a functionality where we can fetch upto 100000 rows and display all of it at one shot on the GUI, through Java interface. Now, when I start my client through mongrail ( ./script/ser…

---

## [Ngx\_upstream do not cleanup file buffers in subrequest](https://www.ruby-forum.com/t/ngx-upstream-do-not-cleanup-file-buffers-in-subrequest/204265)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [March 10, 2011, 1:29am UTC](https://www.ruby-forum.com/t/ngx-upstream-do-not-cleanup-file-buffers-in-subrequest/204265 "2011-03-10T01:29:05Z")

</div>

Hello, Is it reasonable to add following check to not clean/discard fd in case if it’s sub request? I developed nginx module and when it started to use tmp buffers under load I had following error: \[alert\] 29663#0: …

---

## [Switched to nginx anf alexa.com ranking increased about 100 times](https://www.ruby-forum.com/t/switched-to-nginx-anf-alexa-com-ranking-increased-about-100-times/204321)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 9, 2011, 8:29pm UTC](https://www.ruby-forum.com/t/switched-to-nginx-anf-alexa-com-ranking-increased-about-100-times/204321 "2011-03-09T20:29:06Z")

</div>

Hello, Recently, I have switched to nginx from apache. In a week, alexa.com rating of my website increased for about 100 times, although number of visitors is a little more. Any ideas why? Thanks. Alex. Posted at …

---

## [How to redirect to a query](https://www.ruby-forum.com/t/how-to-redirect-to-a-query/204248)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [March 9, 2011, 1:36pm UTC](https://www.ruby-forum.com/t/how-to-redirect-to-a-query/204248 "2011-03-09T13:36:22Z")

</div>

I Need help with if someone enter www.mysite.com it redirect to www.mysite.com/site.php?site=1 when I try it just loop and adds www.mysite.com/site.php?site=1site.php?site=1 site.php?site=1 till it fails Posted at …

---

## [Procedure for phusion passenger ,ruby enterprise edition,rails 2.3.10 on suse linux](https://www.ruby-forum.com/t/procedure-for-phusion-passenger-ruby-enterprise-edition-rails-2-3-10-on-suse-linux/204240)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 9, 2011, 1:05pm UTC](https://www.ruby-forum.com/t/procedure-for-phusion-passenger-ruby-enterprise-edition-rails-2-3-10-on-suse-linux/204240 "2011-03-09T13:05:38Z")

</div>

hello, plz assist me in installing these… procedure for phusion passenger ,ruby 1.8.7 enterprise edition,rails 2.3.10 on suse linux

---

## [How to solve the "out of ports" problem?TIME\_WAIT reusing seems not work](https://www.ruby-forum.com/t/how-to-solve-the-out-of-ports-problem-time-wait-reusing-seems-not-work/204285)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 9, 2011, 6:51am UTC](https://www.ruby-forum.com/t/how-to-solve-the-out-of-ports-problem-time-wait-reusing-seems-not-work/204285 "2011-03-09T06:51:25Z")

</div>

I’m using nginx as reverse proxy, and find more than 30k TIME\_WAIT state ports in upstream server. I know my servers are “out of ports” which discussed here(lots of connections on TIME\_WAIT state), and set both nginx …

---

## [High CPU when upstream server down](https://www.ruby-forum.com/t/high-cpu-when-upstream-server-down/204262)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [March 9, 2011, 4:34am UTC](https://www.ruby-forum.com/t/high-cpu-when-upstream-server-down/204262 "2011-03-09T04:34:04Z")

</div>

Nginx goes to nearly 100% CPU when I take down my upstream servers (gunicorn). Has anybody heard of this as an issue? $ nginx -v nginx version: nginx/0.7.67 $ uname -a Linux ip-10-242-226-66 2.6.35-27-virtual #48-U…

---

## [Alias causing phpMyAdmin login endless loop](https://www.ruby-forum.com/t/alias-causing-phpmyadmin-login-endless-loop/201863)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [March 8, 2011, 11:39pm UTC](https://www.ruby-forum.com/t/alias-causing-phpmyadmin-login-endless-loop/201863 "2011-03-08T23:39:40Z")

</div>

Recently I’ve been trying to set up a web server using Nginx (I normally use Apache). However I’ve ran into a problem trying to set phpMyAdmin up on an alias. The alias correctly takes you too the phpMyAdmin login scr…

---

## [Nginx + php 5.3.5 fpm result is high server load](https://www.ruby-forum.com/t/nginx-php-5-3-5-fpm-result-is-high-server-load/203770)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [March 7, 2011, 10:50pm UTC](https://www.ruby-forum.com/t/nginx-php-5-3-5-fpm-result-is-high-server-load/203770 "2011-03-07T22:50:07Z")

</div>

Hi Guys, we try to migrate our apache 2.2 mod\_fcgid with php-cgi configuration to nginx + php-fpm from ports on our freebsd 8.2 stable system.We hosted round 200-300 sites. The result is high load of the server, lots…

---

## [Nginx reverse proxy for tomcat](https://www.ruby-forum.com/t/nginx-reverse-proxy-for-tomcat/204016)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 7, 2011, 12:19pm UTC](https://www.ruby-forum.com/t/nginx-reverse-proxy-for-tomcat/204016 "2011-03-07T12:19:19Z")

</div>

Hi. I am new to nginx. I am trying to set up nginx as reverse proxy for a tomcat server using SSL connection. I want the client’s browser to load my tomcat application when nginx reverse proxy’s IP is called from …

---

## [How to catch memory leak?](https://www.ruby-forum.com/t/how-to-catch-memory-leak/204046)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [March 7, 2011, 5:32am UTC](https://www.ruby-forum.com/t/how-to-catch-memory-leak/204046 "2011-03-07T05:32:34Z")

</div>

Is there any ways to catch memory leak in nginx? I run valgrind and it does not catch anything. I wrote module which sends sub-request to different location, reads response to variable. Then I check this variable in …

---

## [Rewrite rules](https://www.ruby-forum.com/t/rewrite-rules/204157)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [March 6, 2011, 11:40pm UTC](https://www.ruby-forum.com/t/rewrite-rules/204157 "2011-03-06T23:40:47Z")

</div>

I have to make a blog application in multiple languages, to do this, I decided to use zinnia and create to separate urls blogfrench.com and blog.com (this is an example). I also used the multisite ability of django t…

---

## [Nginx as smtp / imap proxy for postfix and dovecot](https://www.ruby-forum.com/t/nginx-as-smtp-imap-proxy-for-postfix-and-dovecot/204148)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 6, 2011, 6:46pm UTC](https://www.ruby-forum.com/t/nginx-as-smtp-imap-proxy-for-postfix-and-dovecot/204148 "2011-03-06T18:46:48Z")

</div>

Hi, I wanna use nginx as a mail proxy. Is this prossible without any problems or do I have to watch something. Regards, alokat

---

## [Monthly Gateway Timeout](https://www.ruby-forum.com/t/monthly-gateway-timeout/204075)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [March 5, 2011, 3:29pm UTC](https://www.ruby-forum.com/t/monthly-gateway-timeout/204075 "2011-03-05T15:29:13Z")

</div>

Hi All I’m experiencing a very strange network problem that occurs every four to six weeks and lasts for approximately one hour. I can not manually provoke the problem and, during this very hour, I can not resolve it …

---

## [Show nginx, expert.io Marketplace for your expertise!](https://www.ruby-forum.com/t/show-nginx-expert-io-marketplace-for-your-expertise/204103)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 5, 2011, 11:08am UTC](https://www.ruby-forum.com/t/show-nginx-expert-io-marketplace-for-your-expertise/204103 "2011-03-05T11:08:04Z")

</div>

Hi, fellow nginx users! I started learning nginx this year and here is a small project I built using nginx as web server. Marketplace for your expertise http://expert.io But I do have some question to ask if it is a…

---

## [Extract individual cookie from multiple cookies](https://www.ruby-forum.com/t/extract-individual-cookie-from-multiple-cookies/204080)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [March 5, 2011, 10:56am UTC](https://www.ruby-forum.com/t/extract-individual-cookie-from-multiple-cookies/204080 "2011-03-05T10:56:11Z")

</div>

Hi, Am developing an nginx module. I get multiple cookies in a http request. I need to extract individual cookie from the multiple cookies that I get. How do I achive this? Is there an api to extract individual cooki…

---

## [Test\_types\_hash\_max\_size?](https://www.ruby-forum.com/t/test-types-hash-max-size/204033)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [March 5, 2011, 1:53am UTC](https://www.ruby-forum.com/t/test-types-hash-max-size/204033 "2011-03-05T01:53:18Z")

</div>

I change some things around in my config and now I’m getting this: could not build the test\_types\_hash, you should increase either test\_types\_hash\_max\_size: 2048 or test\_types\_hash\_bucket\_size: 64 Problem is those val…

---

## [Virtual host in one ip address](https://www.ruby-forum.com/t/virtual-host-in-one-ip-address/204058)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 18\
**Last updated:** [March 4, 2011, 4:19pm UTC](https://www.ruby-forum.com/t/virtual-host-in-one-ip-address/204058 "2011-03-04T16:19:36Z")

</div>

I have a rackspace server running with nginx. I am a newbie to all the server stuff. Let me explain the situation here:I have an IP address and I have two virtual host on my machine.I don’t have a domain and I don’t w…

---

## [Preventing abusive behavior](https://www.ruby-forum.com/t/preventing-abusive-behavior/204073)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 4, 2011, 11:09am UTC](https://www.ruby-forum.com/t/preventing-abusive-behavior/204073 "2011-03-04T11:09:53Z")

</div>

Hi - What do the users of this ML use to block abusive behavior and spiders that don’t respect robots.txt? I observe 2 kinds of abusive behavior on my site: Vulnerability scanners/ abusive crawlers Targeted PHP app …

---

## [Apache22+mod\_proxy+mongrel+ssl](https://www.ruby-forum.com/t/apache22-mod-proxy-mongrel-ssl/126343)

<div class="topic-metadata">

**Author:** [@john-anes](https://www.ruby-forum.com/u/john-anes)\
**Replies:** 6\
**Last updated:** [March 4, 2011, 10:37am UTC](https://www.ruby-forum.com/t/apache22-mod-proxy-mongrel-ssl/126343 "2011-03-04T10:37:08Z")

</div>

I am trying to move a Rails application, that uses SSL, from an Apache/FastCGI stack, that works fine, to Apache22 and mongrel working with a single mongrel instance (i.e., not mongrel cluster, yet.) I have a single m…

---

## [Performance problem with Virtuozzo Server](https://www.ruby-forum.com/t/performance-problem-with-virtuozzo-server/204041)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [March 3, 2011, 9:25pm UTC](https://www.ruby-forum.com/t/performance-problem-with-virtuozzo-server/204041 "2011-03-03T21:25:31Z")

</div>

Hi, i’m trying to install Nginx to replace Apache on several Virtuzzo VPS. I’m experiencing a big performance problem. On the same server and on static files when acting as a reverse proxy, Apache is able to serve …

---

## [Proxy\_cache doesn't return headers](https://www.ruby-forum.com/t/proxy-cache-doesnt-return-headers/204012)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [March 3, 2011, 1:00pm UTC](https://www.ruby-forum.com/t/proxy-cache-doesnt-return-headers/204012 "2011-03-03T13:00:22Z")

</div>

Hello, We have quite busy phpbb based forum. I found that it is quite heavy loaded with bots(Google, AdSense, Yahoo. It seems that AdSense bot duplicate every user’s request). I have added confuguration to cache all …

---

## [Is this patch received and accepted?](https://www.ruby-forum.com/t/is-this-patch-received-and-accepted/203996)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [March 3, 2011, 3:16am UTC](https://www.ruby-forum.com/t/is-this-patch-received-and-accepted/203996 "2011-03-03T03:16:34Z")

</div>

I submit a patch with the diff in the attachment. Is it received or accepted for the main branch? I’m a new developer here and not familiar with the rules. Sorry for the native question. The patch is in Posted at …

---

## [Mongrel/mongrel\_rails windows question](https://www.ruby-forum.com/t/mongrel-mongrel-rails-windows-question/203736)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [March 3, 2011, 2:29am UTC](https://www.ruby-forum.com/t/mongrel-mongrel-rails-windows-question/203736 "2011-03-03T02:29:01Z")

</div>

Hello! I’m just wondering if anyone has any recommendations for running mongrel/mongrel\_service under Windows (Client requires Windows Server 2008, SQL Server 2008, IIS7, no budget for a \*nix box of any kind). I hav…

---

## [Memc module](https://www.ruby-forum.com/t/memc-module/203908)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [March 2, 2011, 8:05pm UTC](https://www.ruby-forum.com/t/memc-module/203908 "2011-03-02T20:05:51Z")

</div>

I found “memc\_next\_upstream” and others in the source, but they are not documented. I can figure out what they do from the source, but wasn’t sure if they were “ready for production.” agentzh? Thanks. – Brian A.

---

## [Time-of-day caching?](https://www.ruby-forum.com/t/time-of-day-caching/203865)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [March 2, 2011, 5:02pm UTC](https://www.ruby-forum.com/t/time-of-day-caching/203865 "2011-03-02T17:02:39Z")

</div>

Quick note of intro: I’m certainly not a highly-experienced sys admin or developer – more of a “gifted amateur” as a friend once called me :slight\_smile: Anyway: I have a large and fairly complex WordPress-based site …

---

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

<div class="topic-metadata">

**Author:** [@Valery\_K](https://www.ruby-forum.com/u/Valery_K)\
**Replies:** 5\
**Last updated:** [March 2, 2011, 2:51am UTC](https://www.ruby-forum.com/t/upload-module-2-2-0/195663 "2011-03-02T02:51:53Z")

</div>

Greetings! This release of upload module opens a new branch and new feature: resumable uploads. Resumable uploads were tested on Mail.ru’s file exchange service: files.mail.ru They were very kind to publish sources …

---

## [Site Redirecting](https://www.ruby-forum.com/t/site-redirecting/203918)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [March 1, 2011, 10:16pm UTC](https://www.ruby-forum.com/t/site-redirecting/203918 "2011-03-01T22:16:54Z")

</div>

Hello, everyone. I have Wordpress 3.1 Multisite installed, and my main site is in a continuous loop: http://classblogs.us/. There is nothing in my error logs to tell me what is wrong. Can someone help me with trouble…

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

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