# Server

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

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

---

## [Using X-Accel-Redirect for protected pictures?](https://www.ruby-forum.com/t/using-x-accel-redirect-for-protected-pictures/129072)

<div class="topic-metadata">

**Author:** [@bbqplate](https://www.ruby-forum.com/u/bbqplate)\
**Replies:** 0\
**Last updated:** [February 14, 2008, 12:14am UTC](https://www.ruby-forum.com/t/using-x-accel-redirect-for-protected-pictures/129072 "2008-02-14T00:14:36Z")

</div>

hi, i would like to only let friends of a user view a users private photo album. can i use x-accel for this purpose? could something like this work? def photos @photos = UserPhotos.get\_all end photos.rhtml for pi…

---

## [Consolidated log file?](https://www.ruby-forum.com/t/consolidated-log-file/128217)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 15\
**Last updated:** [February 13, 2008, 11:32pm UTC](https://www.ruby-forum.com/t/consolidated-log-file/128217 "2008-02-13T23:32:24Z")

</div>

Hey folks. Using mongrel\_rails, Is it possible to have multiple mongrel instances write to the same log file? I suppose that implementing this might incur a performance hit since each mongrel would need to lock and u…

---

## [Richer status module](https://www.ruby-forum.com/t/richer-status-module/129055)

<div class="topic-metadata">

**Author:** [@Joaquin\_Cuenca\_Abel](https://www.ruby-forum.com/u/Joaquin_Cuenca_Abel)\
**Replies:** 1\
**Last updated:** [February 13, 2008, 11:05pm UTC](https://www.ruby-forum.com/t/richer-status-module/129055 "2008-02-13T23:05:50Z")

</div>

Hi, I’m interested in adding more stats to the stub\_status module, like number of 20x, 30x, 40x, 50x answers. The current statistics are quite low level, and I don’t see how to add the kind of statistics that I’m int…

---

## [Http\_proxy using HTTP/1.1?](https://www.ruby-forum.com/t/http-proxy-using-http-1-1/128933)

<div class="topic-metadata">

**Author:** [@ianneub](https://www.ruby-forum.com/u/ianneub)\
**Replies:** 9\
**Last updated:** [February 13, 2008, 7:41pm UTC](https://www.ruby-forum.com/t/http-proxy-using-http-1-1/128933 "2008-02-13T19:41:50Z")

</div>

Hello all, Is it possible to have the proxy module communicate with back-end servers using HTTP/1.1? The back-end servers that I am proxying, in this case, require the Host header as part of the HTTP/1.1 protocol. Th…

---

## [Nginx compareable to lighttpd's mod\_secdownload](https://www.ruby-forum.com/t/nginx-compareable-to-lighttpds-mod-secdownload/129033)

<div class="topic-metadata">

**Author:** [@Armin\_R](https://www.ruby-forum.com/u/Armin_R)\
**Replies:** 2\
**Last updated:** [February 13, 2008, 6:25pm UTC](https://www.ruby-forum.com/t/nginx-compareable-to-lighttpds-mod-secdownload/129033 "2008-02-13T18:25:18Z")

</div>

Hi all, Is there something like mod\_secdownload for nginx? Basically I am streaming flash-videos, but first need todo a check whether the user is allowed to see this video. I could do this authentication using anothe…

---

## [Timestamping in log file?](https://www.ruby-forum.com/t/timestamping-in-log-file/120814)

<div class="topic-metadata">

**Author:** [@sjmadsen](https://www.ruby-forum.com/u/sjmadsen)\
**Replies:** 9\
**Last updated:** [February 13, 2008, 4:50pm UTC](https://www.ruby-forum.com/t/timestamping-in-log-file/120814 "2008-02-13T16:50:18Z")

</div>

Hi, I’m wondering if it’s easy to add timestamps to the mongrel log? I am having a problem where an externally spawned application by Rails is failing. Mongrel kindly logs the error message returned by this applicati…

---

## [Specifying filesystem destination for uploaded files](https://www.ruby-forum.com/t/specifying-filesystem-destination-for-uploaded-files/129013)

<div class="topic-metadata">

**Author:** [@bikle](https://www.ruby-forum.com/u/bikle)\
**Replies:** 0\
**Last updated:** [February 13, 2008, 3:23pm UTC](https://www.ruby-forum.com/t/specifying-filesystem-destination-for-uploaded-files/129013 "2008-02-13T15:23:27Z")

</div>

Posted on the RoR users list several days ago, no responses, so asking here. Currently, mongrel stores files uploaded via HTTP forms in temp files in the system’s tmp dir. Logical, works well, etc. However, I have …

---

## [Help with my config](https://www.ruby-forum.com/t/help-with-my-config/128981)

<div class="topic-metadata">

**Author:** [@equinox86](https://www.ruby-forum.com/u/equinox86)\
**Replies:** 4\
**Last updated:** [February 13, 2008, 10:42am UTC](https://www.ruby-forum.com/t/help-with-my-config/128981 "2008-02-13T10:42:28Z")

</div>

As soon as I add the expires section (at the bottom) accel-redirect for images stops working. Is it apparent why? My config: http://pastie.caboo.se/151398 Thanks, Alex

---

## [Automatic startup in leopard](https://www.ruby-forum.com/t/automatic-startup-in-leopard/128974)

<div class="topic-metadata">

**Author:** [@Kevin\_Davis](https://www.ruby-forum.com/u/Kevin_Davis)\
**Replies:** 0\
**Last updated:** [February 13, 2008, 5:01am UTC](https://www.ruby-forum.com/t/automatic-startup-in-leopard/128974 "2008-02-13T05:01:46Z")

</div>

I’ve been having quite a bit of trouble since upgrading to leopard. I had a launchctl plist file that seemed to work (attached). It essentially ran mongrel\_rails bunch of times with different arguments. In leopard it…

---

## [Determine when request is fully sent](https://www.ruby-forum.com/t/determine-when-request-is-fully-sent/128880)

<div class="topic-metadata">

**Author:** [@Marcin\_Gajda](https://www.ruby-forum.com/u/Marcin_Gajda)\
**Replies:** 3\
**Last updated:** [February 12, 2008, 4:25pm UTC](https://www.ruby-forum.com/t/determine-when-request-is-fully-sent/128880 "2008-02-12T16:25:01Z")

</div>

Hi all! I need to write a module which will make an action when all request body is sent to the client (or after breaking the connection by the client). It is very important to me to do it when data are really sent, n…

---

## [Nginx proxy to swiftiply problems](https://www.ruby-forum.com/t/nginx-proxy-to-swiftiply-problems/128901)

<div class="topic-metadata">

**Author:** [@pochartrand](https://www.ruby-forum.com/u/pochartrand)\
**Replies:** 0\
**Last updated:** [February 12, 2008, 3:19pm UTC](https://www.ruby-forum.com/t/nginx-proxy-to-swiftiply-problems/128901 "2008-02-12T15:19:33Z")

</div>

Hi, I’m trying to setup nginx to proxy requests to a swiftiply server. I am having some issues with the sub domains. Let me explain my setup : I have 2 servers (physical) : NginxServer : runs nginx; gets incoming r…

---

## [Static Files not serving](https://www.ruby-forum.com/t/static-files-not-serving/128864)

<div class="topic-metadata">

**Author:** [@Dave\_Dash](https://www.ruby-forum.com/u/Dave_Dash)\
**Replies:** 1\
**Last updated:** [February 12, 2008, 8:57am UTC](https://www.ruby-forum.com/t/static-files-not-serving/128864 "2008-02-12T08:57:42Z")

</div>

I have an nginx conf as such: server { listen 80; server\_name onyxfoundation.org; access\_log /var/log/nginx/onyx.access.log; error\_log /var/log/nginx/onyx.error.log; location /static { root /…

---

## [Issue w/ nginx in hybrid static/php load balancer scenario](https://www.ruby-forum.com/t/issue-w-nginx-in-hybrid-static-php-load-balancer-scenario/128670)

<div class="topic-metadata">

**Author:** [@Mike\_Javorski](https://www.ruby-forum.com/u/Mike_Javorski)\
**Replies:** 12\
**Last updated:** [February 11, 2008, 11:29pm UTC](https://www.ruby-forum.com/t/issue-w-nginx-in-hybrid-static-php-load-balancer-scenario/128670 "2008-02-11T23:29:08Z")

</div>

I have nginx set up as a load balancer in front of two machines running fastcgi/php, and nginx for static content. The desired goal is to have all php pages (including the site index pages of .\*/index.php) processed b…

---

## [Dynamic default\_type](https://www.ruby-forum.com/t/dynamic-default-type/128121)

<div class="topic-metadata">

**Author:** [@igrigorik](https://www.ruby-forum.com/u/igrigorik)\
**Replies:** 2\
**Last updated:** [February 11, 2008, 10:05pm UTC](https://www.ruby-forum.com/t/dynamic-default-type/128121 "2008-02-11T22:05:47Z")

</div>

I’m trying to integrate Nginx memcached module as a front-end server for serving cached requests, but the problem is, the application type is defined dynamically as part of the query string… For example: GET /test?f…

---

## [Nginx-0.6.26](https://www.ruby-forum.com/t/nginx-0-6-26/128793)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 0\
**Last updated:** [February 11, 2008, 4:29pm UTC](https://www.ruby-forum.com/t/nginx-0-6-26/128793 "2008-02-11T16:29:06Z")

</div>

Changes with nginx 0.6.26 11 Feb 2008 \*) Bugfix: the "proxy\_store" and "fastcgi\_store" directives did not check a response length. \*) Bugfix: a segmentation fault occurred in …

---

## [Static files @ 50 req a second. using nginx and 2 mongrels?](https://www.ruby-forum.com/t/static-files-50-req-a-second-using-nginx-and-2-mongrels/128750)

<div class="topic-metadata">

**Author:** [@bbqplate](https://www.ruby-forum.com/u/bbqplate)\
**Replies:** 7\
**Last updated:** [February 11, 2008, 3:40pm UTC](https://www.ruby-forum.com/t/static-files-50-req-a-second-using-nginx-and-2-mongrels/128750 "2008-02-11T15:40:34Z")

</div>

hi, i have a static page about.html in my railsapp/public folder. when running a httperf, i am only getting around 50 requests a second. shouldnt it be a few hundred per second?

---

## [Location regex issue](https://www.ruby-forum.com/t/location-regex-issue/128756)

<div class="topic-metadata">

**Author:** [@Athan\_D](https://www.ruby-forum.com/u/Athan_D)\
**Replies:** 2\
**Last updated:** [February 11, 2008, 11:38am UTC](https://www.ruby-forum.com/t/location-regex-issue/128756 "2008-02-11T11:38:18Z")

</div>

I have a problem with regex in a location used to deny access to some Drupal directories and files. location ~ .(engine|inc|info|install|module|profile|po|sh|.sql|theme|tpl(.php)?|xtmpl)$|^(code-style.pl|Entries.|Rep…

---

## [Use\_x\_forwared\_host.patch](https://www.ruby-forum.com/t/use-x-forwared-host-patch/128679)

<div class="topic-metadata">

**Author:** [@Manlio\_P](https://www.ruby-forum.com/u/Manlio_P)\
**Replies:** 0\
**Last updated:** [February 10, 2008, 11:31am UTC](https://www.ruby-forum.com/t/use-x-forwared-host-patch/128679 "2008-02-10T11:31:17Z")

</div>

Hi. I have written a small patch for nginx that allows the use of the X-Forwarded-Host instead of the Host header. The rationale is that some hosting companies that use Apache as main web server do not set the correc…

---

## [Test message](https://www.ruby-forum.com/t/test-message/128676)

<div class="topic-metadata">

**Author:** [@Hendrik\_H](https://www.ruby-forum.com/u/Hendrik_H)\
**Replies:** 0\
**Last updated:** [February 10, 2008, 9:49am UTC](https://www.ruby-forum.com/t/test-message/128676 "2008-02-10T09:49:35Z")

</div>

This is a test message. Please ignore.

---

## [Location style hostname matching?](https://www.ruby-forum.com/t/location-style-hostname-matching/128672)

<div class="topic-metadata">

**Author:** [@Allen\_Parker](https://www.ruby-forum.com/u/Allen_Parker)\
**Replies:** 1\
**Last updated:** [February 10, 2008, 8:58am UTC](https://www.ruby-forum.com/t/location-style-hostname-matching/128672 "2008-02-10T08:58:32Z")

</div>

If my configuration (sample) looks like this: http { server { server\_name \_\*; root /path/to/htdocs/$host; }} is there a way to match ‘location’ or perhaps another type of keyword to hostname for one particular…

---

## [Trouble viewing nginx rails app on LAN?](https://www.ruby-forum.com/t/trouble-viewing-nginx-rails-app-on-lan/128629)

<div class="topic-metadata">

**Author:** [@bbqplate](https://www.ruby-forum.com/u/bbqplate)\
**Replies:** 2\
**Last updated:** [February 9, 2008, 9:57pm UTC](https://www.ruby-forum.com/t/trouble-viewing-nginx-rails-app-on-lan/128629 "2008-02-09T21:57:09Z")

</div>

Hi, I cant seem to view my rails app from another computer on my LAN. I have all ports open. Is there something in the nginx conf i must set? thank you

---

## [Newbie Question: Can I setup mongrel as a proxy between a browser and the web?](https://www.ruby-forum.com/t/newbie-question-can-i-setup-mongrel-as-a-proxy-between-a-browser-and-the-web/128331)

<div class="topic-metadata">

**Author:** [@Arash\_N](https://www.ruby-forum.com/u/Arash_N)\
**Replies:** 10\
**Last updated:** [February 9, 2008, 6:55am UTC](https://www.ruby-forum.com/t/newbie-question-can-i-setup-mongrel-as-a-proxy-between-a-browser-and-the-web/128331 "2008-02-09T06:55:26Z")

</div>

I am trying to create a proxy which I can route my browser requests through in order to gather information on the web page loading. At this time I am particularly interested in the many GET requests associated with …

---

## [Problem with Mongrel and Vista (port 80)](https://www.ruby-forum.com/t/problem-with-mongrel-and-vista-port-80/128603)

<div class="topic-metadata">

**Author:** [@ilyas](https://www.ruby-forum.com/u/ilyas)\
**Replies:** 1\
**Last updated:** [February 9, 2008, 6:39am UTC](https://www.ruby-forum.com/t/problem-with-mongrel-and-vista-port-80/128603 "2008-02-09T06:39:10Z")

</div>

Hello, I have problem with Mongrel and Vista, I’m trying to launch mongrel web server on Vista platform and getting the following error: \*\* Ruby version is not up-to-date; loading cgi\_multipart\_eof\_fix \*\* Starting Mo…

---

## [Mongrel hangs](https://www.ruby-forum.com/t/mongrel-hangs/128572)

<div class="topic-metadata">

**Author:** [@gui\_weinmann](https://www.ruby-forum.com/u/gui_weinmann)\
**Replies:** 0\
**Last updated:** [February 8, 2008, 11:27pm UTC](https://www.ruby-forum.com/t/mongrel-hangs/128572 "2008-02-08T23:27:33Z")

</div>

I’ve only been on the list for a few days. I like what I’ve been reading. I thought I’d post here to learn if anyone else has experienced a similar issue? I seem to be having trouble with a production launch of Apac…

---

## [Init.d script for Mongrel?](https://www.ruby-forum.com/t/init-d-script-for-mongrel/128262)

<div class="topic-metadata">

**Author:** [@Philippe\_Laliberte](https://www.ruby-forum.com/u/Philippe_Laliberte)\
**Replies:** 4\
**Last updated:** [February 8, 2008, 5:42pm UTC](https://www.ruby-forum.com/t/init-d-script-for-mongrel/128262 "2008-02-08T17:42:21Z")

</div>

Hi, I can’t seem to find an example of startup, restart, reload, script for Mongrel. So here is my little thing I uses. http://rubyforge.org/snippet/detail.php?type=snippet&id=260 Cheers,

---

## [Linking app?](https://www.ruby-forum.com/t/linking-app/128525)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 2\
**Last updated:** [February 8, 2008, 3:44pm UTC](https://www.ruby-forum.com/t/linking-app/128525 "2008-02-08T15:44:43Z")

</div>

I have deployed an app on Windows XP with Apache and Mongrel. I can access my app with http://machinename. This is more of a Apache question: how can I make it like http://machinename/myapp ? Thanks in advance.

---

## [Wrong status code when proxying 404 errors](https://www.ruby-forum.com/t/wrong-status-code-when-proxying-404-errors/128503)

<div class="topic-metadata">

**Author:** [@Jodok\_B](https://www.ruby-forum.com/u/Jodok_B)\
**Replies:** 3\
**Last updated:** [February 8, 2008, 8:09am UTC](https://www.ruby-forum.com/t/wrong-status-code-when-proxying-404-errors/128503 "2008-02-08T08:09:48Z")

</div>

hi, i’m trying to use an upstream proxy to generate a 404 error page. my config looks like that: location ‘/error/404’ { rewrite ^/(.\*) /news/404 break; proxy\_pass http://backend\_varnish; } error\_page 404 = /er…

---

## [502 proxy error, malformed request](https://www.ruby-forum.com/t/502-proxy-error-malformed-request/128353)

<div class="topic-metadata">

**Author:** [@greenbox](https://www.ruby-forum.com/u/greenbox)\
**Replies:** 4\
**Last updated:** [February 7, 2008, 4:32pm UTC](https://www.ruby-forum.com/t/502-proxy-error-malformed-request/128353 "2008-02-07T16:32:57Z")

</div>

If there are double quotes in the url, Firefox escapes them to %22 but Internet explorer gives ", which when proxied to Mongrel results in an HTTP parse error. Is there a RewriteRule or something I can employ to fix t…

---

## [Server firewall logs](https://www.ruby-forum.com/t/server-firewall-logs/128405)

<div class="topic-metadata">

**Author:** [@neonpie](https://www.ruby-forum.com/u/neonpie)\
**Replies:** 2\
**Last updated:** [February 7, 2008, 12:25pm UTC](https://www.ruby-forum.com/t/server-firewall-logs/128405 "2008-02-07T12:25:31Z")

</div>

Hi guys, firstly let me say i know nothing about Ruby and it was a colleague that has since left the company that did and worked on a project for a client. the clients hosting company had to upgrade the server his we…

---

## [Beta testing for mod\_wsgi](https://www.ruby-forum.com/t/beta-testing-for-mod-wsgi/125170)

<div class="topic-metadata">

**Author:** [@Manlio\_P](https://www.ruby-forum.com/u/Manlio_P)\
**Replies:** 32\
**Last updated:** [February 7, 2008, 12:02pm UTC](https://www.ruby-forum.com/t/beta-testing-for-mod-wsgi/125170 "2008-02-07T12:02:26Z")

</div>

Hi. I’m releasing the 0.0.6 version of the WSGI module for nginx. I would like to have it tested (at least compilation) on all systems supported by nginx. I have tested it on my PC (Debian Etch i386), and on FreeBSD …

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

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