[Mongrel] Recommendation: Is Apache Really Serving Files?
matt at eastmedia.com
Mon Sep 11 19:16:14 EDT 2006
On Sep 11, 2006, at 6:15 PM, Zed Shaw wrote:
> Hi All,
> I've been running into quite a few people who've claimed that they
> Apache (or lighttpd) serving static files, but then they paste in
> messages from Mongrel that shows not only Mongrel not serving the
> but Rails is serving them.
> Everyone using apache should run this very simple test:
> 1) Setup your apache so that it point at one backend.
> 2) Start your application with: mongrel_rails start -e production -B
> 3) Hit a a few static files of different types that should be
> served by
> If you see messages like this:
> 127.0.0.1 - [Mon, 11 Sep 2006 22:09:31 GMT] "GET /index.html HTTP/1.1"
> 127.0.0.1 - [Mon, 11 Sep 2006 22:09:32 GMT]
> 127.0.0.1 - [Mon, 11 Sep 2006 22:09:34 GMT] "GET /images/rails.png
> In the console where Mongrel is running then your Apache setup isn't
> working and you're getting nowhere near the performance you could be
I also like running $curl -I (that's a capital I as in India)
$ curl -I http://somedomain.com/static/file/url/
HTTP/1.1 200 OK
Date: Mon, 11 Sep 2006 23:13:05 GMT
Server: Apache/2.2.3 (Unix)
Last-Modified: Sun, 10 Sep 2006 18:21:52 GMT
$ curl -I http://somedomain.com/go_to/rails/
HTTP/1.1 200 OK
Date: Mon, 11 Sep 2006 23:13:10 GMT
Server: Mongrel 0.3.13.4
Status: 200 OK
Content-Type: text/html; charset=utf-8
> If this is the case, please send me your mode_rewrite rules and any
> proxy directives **off list** and tell me where you got them.
> Zed A. Shaw
> http://www.lingr.com/room/3yXhqKbfPy8 -- Come get help.
> Mongrel-users mailing list
> Mongrel-users at rubyforge.org
t. 212-921-8413 x3#
More information about the Mongrel-users