# Server

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

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

---

## [Content load stalls for IE7, nginx 0.7.62, SSL](https://www.ruby-forum.com/t/content-load-stalls-for-ie7-nginx-0-7-62-ssl/183217)

<div class="topic-metadata">

**Author:** [@njvack](https://www.ruby-forum.com/u/njvack)\
**Replies:** 0\
**Last updated:** [February 10, 2010, 3:03am UTC](https://www.ruby-forum.com/t/content-load-stalls-for-ie7-nginx-0-7-62-ssl/183217 "2010-02-10T03:03:58Z")

</div>

Hi all, We’re running an app under rails / unicorn / nginx / ubuntu, and for some of our users under IE7, the login page doesn’t completely render – it gets most of the way done and hangs. It’s intermittent, though s…

---

## [Help setting up imap, pop3, smtp, and web proxy's](https://www.ruby-forum.com/t/help-setting-up-imap-pop3-smtp-and-web-proxys/183198)

<div class="topic-metadata">

**Author:** [@ski98033](https://www.ruby-forum.com/u/ski98033)\
**Replies:** 1\
**Last updated:** [February 9, 2010, 11:34pm UTC](https://www.ruby-forum.com/t/help-setting-up-imap-pop3-smtp-and-web-proxys/183198 "2010-02-09T23:34:29Z")

</div>

Hi, I have searched and was only able to get this partially to work (probably because I do not understand the difference between the NginxMailProxyModule and NginxMailCoreModule). My goal is to proxy webmail, imap, …

---

## [Separate Log for Robot Page Access](https://www.ruby-forum.com/t/separate-log-for-robot-page-access/183021)

<div class="topic-metadata">

**Author:** [@Wohbah](https://www.ruby-forum.com/u/Wohbah)\
**Replies:** 6\
**Last updated:** [February 9, 2010, 11:26pm UTC](https://www.ruby-forum.com/t/separate-log-for-robot-page-access/183021 "2010-02-09T23:26:17Z")

</div>

To record robots in another log I have a boolean $is\_robot. The variable is set correctly. But I can’t use it. (nginx version 0.765-1) Why can I do if ( … ) { … access\_log off; … } but not if ( … ) { … access\_l…

---

## [Mongrel\_service folder has different name](https://www.ruby-forum.com/t/mongrel-service-folder-has-different-name/183154)

<div class="topic-metadata">

**Author:** [@macsig](https://www.ruby-forum.com/u/macsig)\
**Replies:** 3\
**Last updated:** [February 9, 2010, 10:58pm UTC](https://www.ruby-forum.com/t/mongrel-service-folder-has-different-name/183154 "2010-02-09T22:58:02Z")

</div>

Hello guys, I’m trying to run a Rails up using Mongrel on a Windows machine. In the same machine I have already installed (successfully) an other Rails app that uses Mongrel as well. I din that almost 2 years ago so I …

---

## [Response Sent To Wrong User](https://www.ruby-forum.com/t/response-sent-to-wrong-user/182885)

<div class="topic-metadata">

**Author:** [@Yaoxing](https://www.ruby-forum.com/u/Yaoxing)\
**Replies:** 5\
**Last updated:** [February 9, 2010, 8:21pm UTC](https://www.ruby-forum.com/t/response-sent-to-wrong-user/182885 "2010-02-09T20:21:17Z")

</div>

Hi all, I’m suffering from the pain that Nginx returns wrong page to the users. Don’t know if anyone else encountered the same problem. I have a page summaries.aspx which displays the user summary info for users. No …

---

## [FLV streaming on Debian Lenny Nginx binary package](https://www.ruby-forum.com/t/flv-streaming-on-debian-lenny-nginx-binary-package/183162)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [February 9, 2010, 2:37pm UTC](https://www.ruby-forum.com/t/flv-streaming-on-debian-lenny-nginx-binary-package/183162 "2010-02-09T14:37:04Z")

</div>

Hi, everybody. I trying to configure nginx, which was installed from standard Debian repository, for FLV streaming. And the problem is: When I try to GET flv file with some shift (http://localhost/video.flv?start=1),…

---

## [Regex in proxy\_pass](https://www.ruby-forum.com/t/regex-in-proxy-pass/183087)

<div class="topic-metadata">

**Author:** [@pablo\_platt](https://www.ruby-forum.com/u/pablo_platt)\
**Replies:** 1\
**Last updated:** [February 9, 2010, 12:49pm UTC](https://www.ruby-forum.com/t/regex-in-proxy-pass/183087 "2010-02-09T12:49:55Z")

</div>

Hi Hi I’m trying to proxy requests from http://example1.com/test/some/path to http://test.example2.com/some/path I’ve tried: location ~ ^/(.\*)/ { proxy\_pass http://$1.example2.com; proxy\_buffering off; proxy\_rea…

---

## [Regular expressions in server\_name: pattern length](https://www.ruby-forum.com/t/regular-expressions-in-server-name-pattern-length/180425)

<div class="topic-metadata">

**Author:** [@phillipoertel](https://www.ruby-forum.com/u/phillipoertel)\
**Replies:** 19\
**Last updated:** [February 8, 2010, 9:04pm UTC](https://www.ruby-forum.com/t/regular-expressions-in-server-name-pattern-length/180425 "2010-02-08T21:04:34Z")

</div>

Is it possible to capture the length of a particular pattern in the server\_name section? For example, I’m having trouble getting the following to match: server\_name ~(\[a-z\]{2,3})?\\d{3,6}.mysite.org; I’m using 0.7.62. …

---

## [Mongrel Hanging (Apache, mod\_proxy, Mongrel Cluster, Rails)](https://www.ruby-forum.com/t/mongrel-hanging-apache-mod-proxy-mongrel-cluster-rails/171257)

<div class="topic-metadata">

**Author:** [@Justin\_Erickson](https://www.ruby-forum.com/u/Justin_Erickson)\
**Replies:** 2\
**Last updated:** [February 8, 2010, 3:08pm UTC](https://www.ruby-forum.com/t/mongrel-hanging-apache-mod-proxy-mongrel-cluster-rails/171257 "2010-02-08T15:08:38Z")

</div>

We have been having a problem with our mongrel servers hanging at seemingly random times. The problem can be most often reproduced by accessing a page, leaving the browser open for some time (60+ min) then making anot…

---

## [FastCGI PHP - unable to prematurely close connection to browser](https://www.ruby-forum.com/t/fastcgi-php-unable-to-prematurely-close-connection-to-browser/183027)

<div class="topic-metadata">

**Author:** [@cactus](https://www.ruby-forum.com/u/cactus)\
**Replies:** 9\
**Last updated:** [February 8, 2010, 12:35pm UTC](https://www.ruby-forum.com/t/fastcgi-php-unable-to-prematurely-close-connection-to-browser/183027 "2010-02-08T12:35:18Z")

</div>

Hi all! I am optimizing a few of the PHP scripts by: doing all that generates output to browser closing connection to browser doing some more processing The processing bit cannot be avoided, but the speed of executio…

---

## [Glype 404 error nginx/0.7.59+ fastcgi](https://www.ruby-forum.com/t/glype-404-error-nginx-0-7-59-fastcgi/182952)

<div class="topic-metadata">

**Author:** [@zereshk](https://www.ruby-forum.com/u/zereshk)\
**Replies:** 8\
**Last updated:** [February 7, 2010, 6:27pm UTC](https://www.ruby-forum.com/t/glype-404-error-nginx-0-7-59-fastcgi/182952 "2010-02-07T18:27:13Z")

</div>

Hi nginx gurus, I have this weird problem: After following carefully this tutorial: http://www.linuxspace.org/archives/1576 I could get my glype script page, but it does not work: The nginx gives a ‘404 Not Found’ w…

---

## [Bug in ngx\_slab.c?](https://www.ruby-forum.com/t/bug-in-ngx-slab-c/183042)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [February 7, 2010, 9:41am UTC](https://www.ruby-forum.com/t/bug-in-ngx-slab-c/183042 "2010-02-07T09:41:42Z")

</div>

Hello, In “ngx\_slab.c”: static ngx\_uint\_t ngx\_slab\_max\_size; \[…\] void ngx\_slab\_init(ngx\_slab\_pool\_t \*pool) { if (ngx\_slab\_max\_size == 0) { Could one be sure, that “ngx\_slab\_max\_size” is always “0”? Maybe better: …

---

## [Help getting regexp to match to set expires headers](https://www.ruby-forum.com/t/help-getting-regexp-to-match-to-set-expires-headers/183053)

<div class="topic-metadata">

**Author:** [@Tim\_Wong](https://www.ruby-forum.com/u/Tim_Wong)\
**Replies:** 1\
**Last updated:** [February 7, 2010, 3:44am UTC](https://www.ruby-forum.com/t/help-getting-regexp-to-match-to-set-expires-headers/183053 "2010-02-07T03:44:48Z")

</div>

Hi there, I’m trying to get nginx to set expires headers only for assets that have timestamps at the end of them but am having trouble figuring out exactly what to put in the conf file. Would anybody be able to help …

---

## [Nginx 0.7.64 ignoring Cache-Control headers](https://www.ruby-forum.com/t/nginx-0-7-64-ignoring-cache-control-headers/183050)

<div class="topic-metadata">

**Author:** [@Kura](https://www.ruby-forum.com/u/Kura)\
**Replies:** 4\
**Last updated:** [February 7, 2010, 12:46am UTC](https://www.ruby-forum.com/t/nginx-0-7-64-ignoring-cache-control-headers/183050 "2010-02-07T00:46:54Z")

</div>

Hey guys, I apologise if this is covered in another topic, I have searched many pages on the forum and not come across this issue. I’m using nginx v. 0.7.64 with the following: --with-debug –with-http\_stub\_status\_modu…

---

## [Nginx proxy\_pass with urls with no content-length headers](https://www.ruby-forum.com/t/nginx-proxy-pass-with-urls-with-no-content-length-headers/183019)

<div class="topic-metadata">

**Author:** [@Kingsley\_F](https://www.ruby-forum.com/u/Kingsley_F)\
**Replies:** 1\
**Last updated:** [February 6, 2010, 6:28am UTC](https://www.ruby-forum.com/t/nginx-proxy-pass-with-urls-with-no-content-length-headers/183019 "2010-02-06T06:28:19Z")

</div>

I’ve found a small issue with proxy\_pass when passing urls that don’t have a content-length field. Nginx is adding a content-field length of 221183499 rather then just not including the header. The way to test this i…

---

## [Godaddy wildcard certs](https://www.ruby-forum.com/t/godaddy-wildcard-certs/183010)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 7\
**Last updated:** [February 6, 2010, 6:01am UTC](https://www.ruby-forum.com/t/godaddy-wildcard-certs/183010 "2010-02-06T06:01:25Z")

</div>

I’m trying to use a wildcard godaddy cert and having some issues. Once I changed the openssl CSR request to have “\*.domain.com” instead of “domain.com” now I get an error when trying to start nginx: failed (SSL: error…

---

## [Howto create conditional basic authentication](https://www.ruby-forum.com/t/howto-create-conditional-basic-authentication/183008)

<div class="topic-metadata">

**Author:** [@azgar](https://www.ruby-forum.com/u/azgar)\
**Replies:** 2\
**Last updated:** [February 5, 2010, 11:59pm UTC](https://www.ruby-forum.com/t/howto-create-conditional-basic-authentication/183008 "2010-02-05T23:59:09Z")

</div>

Hi all, I have an operational NGINX server with e few dozen location {} definitions When a connection is made from an internal network towards the server the client browser gets all the pages. Now I like to add exter…

---

## [Overwriting a request cookie with a variable](https://www.ruby-forum.com/t/overwriting-a-request-cookie-with-a-variable/182987)

<div class="topic-metadata">

**Author:** [@mflive](https://www.ruby-forum.com/u/mflive)\
**Replies:** 1\
**Last updated:** [February 5, 2010, 7:00pm UTC](https://www.ruby-forum.com/t/overwriting-a-request-cookie-with-a-variable/182987 "2010-02-05T19:00:37Z")

</div>

Hello list, I have managed to retrieve data from memcache in a variable using the eval module in Nginx but now i need that variable to be injected into the current HTTP request. Scenario: An incoming HTTP request …

---

## [Retrieving memcache value for further processing](https://www.ruby-forum.com/t/retrieving-memcache-value-for-further-processing/182971)

<div class="topic-metadata">

**Author:** [@mflive](https://www.ruby-forum.com/u/mflive)\
**Replies:** 2\
**Last updated:** [February 5, 2010, 1:15pm UTC](https://www.ruby-forum.com/t/retrieving-memcache-value-for-further-processing/182971 "2010-02-05T13:15:52Z")

</div>

Hello list, I need some advice on how to solve my use-case. I have a memcache backend with some keys and values. Every HTTP request carries a cookie with a SHA1 hash as value, this cookie value is also a key in memc…

---

## [Not sure if it's passing to the proxy properly](https://www.ruby-forum.com/t/not-sure-if-its-passing-to-the-proxy-properly/182959)

<div class="topic-metadata">

**Author:** [@James\_Matthews](https://www.ruby-forum.com/u/James_Matthews)\
**Replies:** 3\
**Last updated:** [February 5, 2010, 10:57am UTC](https://www.ruby-forum.com/t/not-sure-if-its-passing-to-the-proxy-properly/182959 "2010-02-05T10:57:08Z")

</div>

Hi, I am passing my requests like this if ( -f $request\_filename){ expires 30d; break; } proxy\_pass http://127.0.0.1:20000; However Apache is still serving everything (images included). How can I get it …

---

## [Why nginx took so many memory? Is it right?](https://www.ruby-forum.com/t/why-nginx-took-so-many-memory-is-it-right/182962)

<div class="topic-metadata">

**Author:** [@21andy](https://www.ruby-forum.com/u/21andy)\
**Replies:** 2\
**Last updated:** [February 5, 2010, 10:18am UTC](https://www.ruby-forum.com/t/why-nginx-took-so-many-memory-is-it-right/182962 "2010-02-05T10:18:00Z")

</div>

My server: 8 core CPU , 2G memory , CentOS 5.3 64bit nginx take 40M memory per thread, is it right? I see other guys only 11M memory per-thread and the php-cgi also take 40M memory per thread I see other guys only 8…

---

## [Merge HTTP & HTTPS Definition In The Same Section](https://www.ruby-forum.com/t/merge-http-https-definition-in-the-same-section/182818)

<div class="topic-metadata">

**Author:** [@Yaoxing](https://www.ruby-forum.com/u/Yaoxing)\
**Replies:** 3\
**Last updated:** [February 5, 2010, 3:48am UTC](https://www.ruby-forum.com/t/merge-http-https-definition-in-the-same-section/182818 "2010-02-05T03:48:09Z")

</div>

Hi all, I’m wondering if it’s possible to merge the HTTP and HTTPS definition into one section. The situation is like this, my server serves both HTTP and HTTPS, both of them have the same redirecting rules. I don’t …

---

## [HTTP status code bug?](https://www.ruby-forum.com/t/http-status-code-bug/182926)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [February 4, 2010, 11:10pm UTC](https://www.ruby-forum.com/t/http-status-code-bug/182926 "2010-02-04T23:10:07Z")

</div>

Hello, The browser hits a non-existing file. An “error\_page” points to a fastcgi-application. The fastcgi thinks this is not an error and explicit sets: “Status: 200” or “Status: 302”, … One would expect that the fas…

---

## [Load balancing with nginx using ip\_hash;](https://www.ruby-forum.com/t/load-balancing-with-nginx-using-ip-hash/182907)

<div class="topic-metadata">

**Author:** [@vicky007](https://www.ruby-forum.com/u/vicky007)\
**Replies:** 0\
**Last updated:** [February 4, 2010, 4:33pm UTC](https://www.ruby-forum.com/t/load-balancing-with-nginx-using-ip-hash/182907 "2010-02-04T16:33:39Z")

</div>

Hello, I’ve experienced strange behavior - I have website with many subdomains and I have nginx set up as load balancer and proxy to apache. each subdomain is using proxy\_pass http://apaches; While upstream …

---

## [Hotlink protection for wordpress](https://www.ruby-forum.com/t/hotlink-protection-for-wordpress/182674)

<div class="topic-metadata">

**Author:** [@max](https://www.ruby-forum.com/u/max)\
**Replies:** 3\
**Last updated:** [February 4, 2010, 8:55am UTC](https://www.ruby-forum.com/t/hotlink-protection-for-wordpress/182674 "2010-02-04T08:55:53Z")

</div>

Hello, I tried to add some rewrite rule to block hotlinking from other web sites. But the rules don’t work, I go to my site (e.g. domain1.com), the images won’t load at all (using wordpress as the cms). Is there anyt…

---

## [Jvm route problem](https://www.ruby-forum.com/t/jvm-route-problem/182877)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [February 4, 2010, 8:22am UTC](https://www.ruby-forum.com/t/jvm-route-problem/182877 "2010-02-04T08:22:31Z")

</div>

Hey guys, I am using unofficial module named “jvm\_route\_module” ( Google Code Archive - Long-term storage for Google Code Project Hosting.) to make my nginx support sticky session for tomcat through ajp. The compilat…

---

## [Rewrite Location header?](https://www.ruby-forum.com/t/rewrite-location-header/182831)

<div class="topic-metadata">

**Author:** [@3molo](https://www.ruby-forum.com/u/3molo)\
**Replies:** 6\
**Last updated:** [February 4, 2010, 7:27am UTC](https://www.ruby-forum.com/t/rewrite-location-header/182831 "2010-02-04T07:27:31Z")

</div>

Hi. Running nginx as a reverse proxy for trac. Reaching trac etc works, but when posting login credentials, trac returns a Location: header as seen below. POST /somesite/login HTTP/1.1 Host: dev.somesite.co.za:8001 …

---

## [X-Accel-Redirect error:Value too large for defined data type](https://www.ruby-forum.com/t/x-accel-redirect-error-value-too-large-for-defined-data-type/182841)

<div class="topic-metadata">

**Author:** [@kevyau](https://www.ruby-forum.com/u/kevyau)\
**Replies:** 1\
**Last updated:** [February 3, 2010, 9:01pm UTC](https://www.ruby-forum.com/t/x-accel-redirect-error-value-too-large-for-defined-data-type/182841 "2010-02-03T21:01:25Z")

</div>

Using REE 1.8.7, rails 2.3.5, with phusion passenger 2.2.9 and nginx just setup X-Accel-Redirect, to replace the send\_data and send\_file calls on our web app, however, we seem to be getting an error for pdf and rtf do…

---

## [Memcached module + headers](https://www.ruby-forum.com/t/memcached-module-headers/182814)

<div class="topic-metadata">

**Author:** [@Simon\_L](https://www.ruby-forum.com/u/Simon_L)\
**Replies:** 1\
**Last updated:** [February 3, 2010, 8:28am UTC](https://www.ruby-forum.com/t/memcached-module-headers/182814 "2010-02-03T08:28:27Z")

</div>

Hi all - first post here Memcache module looks great but provides no way of handling headers- the cache seems to want to store content only. We need to be able to store headers along with the content in the cache, ot…

---

## [Switching backends based on a cookie](https://www.ruby-forum.com/t/switching-backends-based-on-a-cookie/182500)

<div class="topic-metadata">

**Author:** [@saltyflorida](https://www.ruby-forum.com/u/saltyflorida)\
**Replies:** 20\
**Last updated:** [February 3, 2010, 6:31am UTC](https://www.ruby-forum.com/t/switching-backends-based-on-a-cookie/182500 "2010-02-03T06:31:44Z")

</div>

Is it possible to switch backend clusters of servers based on a cookie? I would like to set a cookie named “env” and do something like this: if ($http\_cookie ~\* "env=testing(;|$)") { proxy\_pass http://backe…

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

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