# Server

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

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

---

## [Making AJAX Applications Crawlable](https://www.ruby-forum.com/t/making-ajax-applications-crawlable/209025)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [July 3, 2011, 3:17pm UTC](https://www.ruby-forum.com/t/making-ajax-applications-crawlable/209025 "2011-07-03T15:17:29Z")

</div>

Ho, folks! I am in love with this site: Looking for how it was maden I ended here: And, of course, now I am tring to find the best way to accomplish it with nginx. Anybody can throw me in the right direction? Her…

---

## [Nginx make fail (passenger standalone) on Mac Os X 10.6.8](https://www.ruby-forum.com/t/nginx-make-fail-passenger-standalone-on-mac-os-x-10-6-8/209024)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [July 3, 2011, 11:20am UTC](https://www.ruby-forum.com/t/nginx-make-fail-passenger-standalone-on-mac-os-x-10-6-8/209024 "2011-07-03T11:20:30Z")

</div>

I’m trying to install passenger standalone, but it keeps failing. The same error comes when trying to build from source Nginx (I’ve tried 1.0.0 and 1.0.4). Snow Leopard 10.6.8 Xcode 4.1 installed Error traced: make…

---

## [Question about key\_zone in proxy\_cache\_path](https://www.ruby-forum.com/t/question-about-key-zone-in-proxy-cache-path/208998)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [July 2, 2011, 11:26pm UTC](https://www.ruby-forum.com/t/question-about-key-zone-in-proxy-cache-path/208998 "2011-07-02T23:26:02Z")

</div>

Hi, The wiki (1) states: “Zone size should be set proportional to number of pages to cache. The size of the metadata for one page (file) depends on the OS; currently it is 64 bytes for FreeBSD/i386, and 128 bytes f…

---

## [Worker processes in hung state after reload](https://www.ruby-forum.com/t/worker-processes-in-hung-state-after-reload/208994)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [July 2, 2011, 6:19pm UTC](https://www.ruby-forum.com/t/worker-processes-in-hung-state-after-reload/208994 "2011-07-02T18:19:43Z")

</div>

We use Nginx as a reverse proxy. After 2 or 3 reloads (kill -HUP), the parent’s one child worker process remains “stuck”; the parent spawns a new one which is also often “stuck.” The number of worker\_processes we hav…

---

## [How GeoIP database stored in memory?](https://www.ruby-forum.com/t/how-geoip-database-stored-in-memory/208995)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [July 2, 2011, 9:52am UTC](https://www.ruby-forum.com/t/how-geoip-database-stored-in-memory/208995 "2011-07-02T09:52:56Z")

</div>

I use nginx with N worker processes. GeoIP City database is pretty big, how does it stored in memory ? Is every worker process have it’s own geoip database ? Or are the using shared memory ? How does it work? Posted …

---

## [Nginx and cscart](https://www.ruby-forum.com/t/nginx-and-cscart/208718)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [July 2, 2011, 8:33am UTC](https://www.ruby-forum.com/t/nginx-and-cscart/208718 "2011-07-02T08:33:17Z")

</div>

hi, i asked this question in other topics but did not get the complete solution yet. many problems solved but one final of pice of puzzle is still unsolved; we want to use nginx in front of three cs cart web servers; …

---

## [Auth\_basic not requiring Authorization](https://www.ruby-forum.com/t/auth-basic-not-requiring-authorization/208982)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [July 1, 2011, 8:28pm UTC](https://www.ruby-forum.com/t/auth-basic-not-requiring-authorization/208982 "2011-07-01T20:28:37Z")

</div>

Having a huge problem with the auth\_basic. Despite putting in the exact same lines as what I found in many examples, the web server is still allowing access even without sending any authorization. Relevent conf bits: …

---

## [Diff to nginx.8](https://www.ruby-forum.com/t/diff-to-nginx-8/208938)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [June 30, 2011, 9:45pm UTC](https://www.ruby-forum.com/t/diff-to-nginx-8/208938 "2011-06-30T21:45:16Z")

</div>

Hello, in nginx.8 manpage there’s ‘SEE ALSO’ but there does not exist any nginx.conf.5. Diff below not to confuse users. jirib Index: nginx.8 — nginx.8 (revision 3941) +++ nginx.8 (working copy) @@ -176,8 +176,6 …

---

## [1.0.2+ wont build](https://www.ruby-forum.com/t/1-0-2-wont-build/208897)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [June 30, 2011, 4:44pm UTC](https://www.ruby-forum.com/t/1-0-2-wont-build/208897 "2011-06-30T16:44:11Z")

</div>

In auto/cc/gcc, you have: CFLAGS="$CFLAGS -Werror" and CFLAGS="$CFLAGS -Wunused-variable" so when building 1.0.2+ you receive this error: gcc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Wunused-fun…

---

## [Expires and if](https://www.ruby-forum.com/t/expires-and-if/208923)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [June 30, 2011, 2:37pm UTC](https://www.ruby-forum.com/t/expires-and-if/208923 "2011-06-30T14:37:25Z")

</div>

Hello, I have a complex server configuration and I need to set up “Expires” header by mime/types like apache can do (mod\_expires - Apache HTTP Server Version 2.4). I can’t use locations because I already have a lots …

---

## [Connections per VH](https://www.ruby-forum.com/t/connections-per-vh/208765)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [June 29, 2011, 9:47pm UTC](https://www.ruby-forum.com/t/connections-per-vh/208765 "2011-06-29T21:47:26Z")

</div>

Hi all I undestand that there aren’t any “server-satus” module like apache, BTW I have hundreds virtualhosts server by single nginx. How can I do to know which VH make more traffic/connection (in real time) ? Kind …

---

## [HttpUserId Module](https://www.ruby-forum.com/t/httpuserid-module/208813)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [June 27, 2011, 9:01pm UTC](https://www.ruby-forum.com/t/httpuserid-module/208813 "2011-06-27T21:01:11Z")

</div>

Hi all, which algorithm uses the HttpUserId module ? I’ve a strange behavior in my nginx installation: it seems that different client (behind a proxy server) got the same userid cookie, so i’d like to investigate i…

---

## [Permission denied: in nginx](https://www.ruby-forum.com/t/permission-denied-in-nginx/208801)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [June 27, 2011, 2:46pm UTC](https://www.ruby-forum.com/t/permission-denied-in-nginx/208801 "2011-06-27T14:46:30Z")

</div>

HI I am working on nginx, i am developed an small module to read data from an external device. when i call module from the browser i am getting an error “Error connecting XXXXX : permission denied” i tried to change…

---

## ["buffers" RAM use under Linux while running nginx](https://www.ruby-forum.com/t/buffers-ram-use-under-linux-while-running-nginx/208787)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [June 27, 2011, 7:47am UTC](https://www.ruby-forum.com/t/buffers-ram-use-under-linux-while-running-nginx/208787 "2011-06-27T07:47:12Z")

</div>

Hi all, I have a couple of web servers running nginx 1.0.4 on Ubuntu 10.04 AMD64, serving several hundred GB of static images. Each machine has 4GB of RAM, but less than 1GB is used by the Linux page cache, because t…

---

## [Adding an static library to a module](https://www.ruby-forum.com/t/adding-an-static-library-to-a-module/208689)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [June 27, 2011, 6:47am UTC](https://www.ruby-forum.com/t/adding-an-static-library-to-a-module/208689 "2011-06-27T06:47:21Z")

</div>

HI, my name pavan, presently working on nginx, i want to add an static library to an thirdparty module at compile time to module. or to config file. if any know the solution plz reply . or i am getting “undefined re…

---

## [The meaning of two proxy\_pass directives](https://www.ruby-forum.com/t/the-meaning-of-two-proxy-pass-directives/208720)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [June 26, 2011, 3:55am UTC](https://www.ruby-forum.com/t/the-meaning-of-two-proxy-pass-directives/208720 "2011-06-26T03:55:14Z")

</div>

I saw some nginx configs written like this: location ~ { … proxy\_pass http://upstream1; proxy\_pass http://upstream2; … } What this config meaning? proxy\_pass to upstream2 if proxy\_pass to upstream fails? Thanks. …

---

## [IPV6 problems](https://www.ruby-forum.com/t/ipv6-problems/208716)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [June 26, 2011, 12:37am UTC](https://www.ruby-forum.com/t/ipv6-problems/208716 "2011-06-26T00:37:52Z")

</div>

Normally how I setup nginx is to proxy php/perl to apache sitting on port 81, for ipv6 its also a proxy pass for perl/php to some upstream local ipv4 address. For ipv6 when typing in a domain in browser utilizing a ip…

---

## [Setting variable and using HttpSubModule](https://www.ruby-forum.com/t/setting-variable-and-using-httpsubmodule/208730)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [June 26, 2011, 12:12am UTC](https://www.ruby-forum.com/t/setting-variable-and-using-httpsubmodule/208730 "2011-06-26T00:12:38Z")

</div>

I’m trying to insert google analytics code into an app by using the directions at Module ngx\_http\_sub\_module. In so doing, I first tried to set a variable as follows: set $analytics = “var \_gaq = \_gaq || \[\]; \_gaq.pus…

---

## [Nginx cache exceeded, cache manager busy](https://www.ruby-forum.com/t/nginx-cache-exceeded-cache-manager-busy/204540)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [June 25, 2011, 4:58pm UTC](https://www.ruby-forum.com/t/nginx-cache-exceeded-cache-manager-busy/204540 "2011-06-25T16:58:18Z")

</div>

Hi, We are using nginx/0.8.15 on our front web server, mainly for caching and reverse proxy. Our cache is located in /dev/shm disk in order to obtain a better performance. Recently, we’ve found that sometimes the tot…

---

## [Potential Bug: Gzipping preventing HTTP range requests](https://www.ruby-forum.com/t/potential-bug-gzipping-preventing-http-range-requests/208701)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [June 25, 2011, 6:44am UTC](https://www.ruby-forum.com/t/potential-bug-gzipping-preventing-http-range-requests/208701 "2011-06-25T06:44:11Z")

</div>

Hi! A question was posed in IRC yesterday about Range requests not being honoured when using gzipping. After testing it I’ve confirmed that there appears to be a problem. I’ve put a test file online you can test agai…

---

## [Try\_files and location blocks](https://www.ruby-forum.com/t/try-files-and-location-blocks/208674)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 9\
**Last updated:** [June 25, 2011, 1:03am UTC](https://www.ruby-forum.com/t/try-files-and-location-blocks/208674 "2011-06-25T01:03:20Z")

</div>

Hello. :slight\_smile: Could someone please correct my understanding of location blocks and try files? I’m trying to get http errors to be very graceful, normally being handled by php but in extreme cases returning the …

---

## [Broser cache expires when reverse proxy use](https://www.ruby-forum.com/t/broser-cache-expires-when-reverse-proxy-use/208700)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [June 24, 2011, 7:19pm UTC](https://www.ruby-forum.com/t/broser-cache-expires-when-reverse-proxy-use/208700 "2011-06-24T19:19:59Z")

</div>

Hi, We need to cache images while reverse proxy with the following settings. location /foo { proxy\_pass http://www.example.com/foo; proxy\_set\_header X-Real-IP $remote\_addr; if ($request\_uri ~\* \\.(jp…

---

## [Problem with upstream server](https://www.ruby-forum.com/t/problem-with-upstream-server/208662)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [June 23, 2011, 5:52pm UTC](https://www.ruby-forum.com/t/problem-with-upstream-server/208662 "2011-06-23T17:52:53Z")

</div>

Hi, I am having some problems with a reverse proxy setup against a somewhat problematic commercial upstream server. The problem is that the server does not close the session after delivering the http object, and typi…

---

## [Proxy\_cache not working](https://www.ruby-forum.com/t/proxy-cache-not-working/208649)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [June 23, 2011, 3:21pm UTC](https://www.ruby-forum.com/t/proxy-cache-not-working/208649 "2011-06-23T15:21:57Z")

</div>

Greetings I’m trying to setup reverse proxy cache but the cache path is always empty and tcpdump tells me there is no caching. Here is my configuration (all non-mentioned files are default): $ cat /etc/nginx/conf.d/c…

---

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

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [June 23, 2011, 1:56am UTC](https://www.ruby-forum.com/t/rewrite/208630 "2011-06-23T01:56:25Z")

</div>

Hello, i want rewrite my website Blog Sites. At moment the Sites are blog.html?id=. I try to rewrite from article-.html to the site blog.html?id=. Im not sure i understand the rewrite docu correct, i has the follow …

---

## [Nginx and google analytics](https://www.ruby-forum.com/t/nginx-and-google-analytics/208626)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [June 23, 2011, 12:48am UTC](https://www.ruby-forum.com/t/nginx-and-google-analytics/208626 "2011-06-23T00:48:14Z")

</div>

I am trying to find the right sub\_filter settings to make nginx place my google analytics code on all my pages. Here is the google code: If anyone has a suggestion, I would really appreciate it. Thanks! Brent

---

## [Large .htaccess conversion](https://www.ruby-forum.com/t/large-htaccess-conversion/208572)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [June 22, 2011, 7:30pm UTC](https://www.ruby-forum.com/t/large-htaccess-conversion/208572 "2011-06-22T19:30:36Z")

</div>

i can pay someone $5 - $10 USD to convert a 30 line .htaccess file to nginx for me. let me know if you’re interested and i’ll email it to you.

---

## [Using map module variable being unset with if](https://www.ruby-forum.com/t/using-map-module-variable-being-unset-with-if/208593)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [June 22, 2011, 4:56pm UTC](https://www.ruby-forum.com/t/using-map-module-variable-being-unset-with-if/208593 "2011-06-22T16:56:47Z")

</div>

Hey guys, I have been trying to use the nginx map module to do some rewrites in bulk, basically my map looks something like this: map $request\_body $var { default no; ~.+.string1 dorw; ~.+.string2 dorw; … } in …

---

## [Nginx-1.0.4](https://www.ruby-forum.com/t/nginx-1-0-4/207719)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 9\
**Last updated:** [June 22, 2011, 4:25pm UTC](https://www.ruby-forum.com/t/nginx-1-0-4/207719 "2011-06-22T16:25:14Z")

</div>

Changes with nginx 1.0.4 01 Jun 2011 \*) Change: now regular expressions case sensitivity in the "map" directive is given by prefixes "~" or "~\*". \*) Feature: now shared zones…

---

## [Is there anyway to customize the error msg for a error code?](https://www.ruby-forum.com/t/is-there-anyway-to-customize-the-error-msg-for-a-error-code/208588)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [June 22, 2011, 3:24pm UTC](https://www.ruby-forum.com/t/is-there-anyway-to-customize-the-error-msg-for-a-error-code/208588 "2011-06-22T15:24:00Z")

</div>

For example, 403’s msg is “Forbidden”. If there is someway to append some customized msg to this HTTP response status line like: HTTP/1.1 403 Forbiden, no id provided Date: xxxx Content-Type: text/html … Thanks. P…

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

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