| CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Mon, 22 Dec 2025 16:01:51 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20090826124325
location: https://web.archive.org/web/20090826124325/https://github.com/mongrel/mongrel/tree/master
server-timing: captures_list;dur=0.630643, exclusion.robots;dur=0.055722, exclusion.robots.policy;dur=0.043638, esindex;dur=0.011499, cdx.remote;dur=18.777186, LoadShardBlock;dur=204.684536, PetaboxLoader3.datanode;dur=114.171219, PetaboxLoader3.resolve;dur=38.838473
x-app-server: wwwb-app212-dc8
x-ts: 302
x-tr: 252
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app212; path=/
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Mon, 22 Dec 2025 16:01:52 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.6.31
x-archive-orig-date: Wed, 26 Aug 2009 12:43:24 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-x-runtime: 797ms
x-archive-orig-etag: "e08fefd69165e120d255a75ae70b17f5"
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-orig-content-length: 33089
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Wed, 26 Aug 2009 12:43:25 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_11_20090826105917_crawl103.gpg-c/52_11_20090826122723_crawl101.arc.gz
server-timing: captures_list;dur=1.043630, exclusion.robots;dur=0.031738, exclusion.robots.policy;dur=0.013250, esindex;dur=0.016800, cdx.remote;dur=17.245673, LoadShardBlock;dur=245.955745, PetaboxLoader3.datanode;dur=250.794066, PetaboxLoader3.resolve;dur=143.899412, load_resource;dur=228.506631
x-app-server: wwwb-app212-dc8
x-ts: 200
x-tr: 567
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
mongrel's mongrel at master - GitHub
This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| Description: | Mongrel on git edit |
| Homepage: | https://mongrel.rubyforge.org/ edit |
| Public Clone URL: |
git://github.com/mongrel/mongrel.git
Give this clone URL to anyone.
git clone git://github.com/mongrel/mongrel.git
|
| Your Clone URL: |
Use this clone URL yourself.
git clone git@github.com:mongrel/mongrel.git
|
ezmobius (author)
Mon Apr 14 23:02:03 -0700 2008
mongrel /
| name | age | message | |
|---|---|---|---|
| |
CHANGELOG | Loading commit data... |
|
| |
COPYING | ||
| |
LICENSE | Fri Oct 26 03:01:54 -0700 2007 | licensing git-svn-id: svn://rubyforge.org/var... [evanweaver] |
| |
Manifest | Sun Dec 16 12:50:51 -0800 2007 | One step in the right direction. git-svn-id: ... [wayneeseguin] |
| |
README | ||
| |
Rakefile | ||
| |
TODO | ||
| |
bin/ | ||
| |
examples/ | ||
| |
ext/ | ||
| |
lib/ | ||
| |
mongrel-public_cert.pem | ||
| |
projects/ | ||
| |
setup.rb | Mon Apr 10 11:56:16 -0700 2006 | Update setup.rb to silence errors on shebang re... [why] |
| |
test/ | Sun Mar 30 22:25:39 -0700 2008 | Remove fixed port numbers used in tests, make t... [luislavena] |
| |
tools/ |
README
= Mongrel: Simple Fast Mostly Ruby Web Server Mongrel is a small library that provides a very fast HTTP 1.1 server for Ruby web applications. It is not particular to any framework, and is intended to be just enough to get a web application running behind a more complete and robust web server. What makes Mongrel so fast is the careful use of an Ragel extension to provide fast, accurate HTTP 1.1 protocol parsing. This makes the server scream without too many portability issues. See https://mongrel.rubyforge.org for more information. == License Mongrel is copyright 2007 Zed A. Shaw and contributors. It is licensed under the Ruby license and the GPL2. See the include LICENSE file for details. == Quick Start The easiest way to get started with Mongrel is to install it via RubyGems and then run a Ruby on Rails application. You can do this easily: $ gem install mongrel Now you should have the mongrel_rails command available in your PATH, so just do the following: $ cd myrailsapp $ mongrel_rails start This will start it in the foreground so you can play with it. It runs your application in production mode. To get help do: $ mongrel_rails start -h Finally, you can then start in background mode: $ mongrel_rails start -d And you can stop it whenever you like with: $ mongrel_rails stop All of which should be done from your application's directory. It writes the PID of the process you ran into log/mongrel.pid. There are also many more new options for configuring the rails runner including changing to a different directory, adding more MIME types, and setting processor threads and timeouts. == Install It doesn't explicitly require Camping, but if you want to run the examples/camping/ examples then you'll need to install Camping 1.2 at least (and redcloth I think). These are all available from RubyGems. The library consists of a C extension so you'll need a C compiler or at least a friend who can build it for you. Finally, the source includes a setup.rb for those who hate RubyGems. == Usage The examples/simpletest.rb file has the following code as the simplest example: require 'mongrel' class SimpleHandler < Mongrel::HttpHandler def process(request, response) response.start(200) do |head,out| head["Content-Type"] = "text/plain" out.write("hello!\n") end end end h = Mongrel::HttpServer.new("0.0.0.0", "3000") h.register("/test", SimpleHandler.new) h.register("/files", Mongrel::DirHandler.new(".")) h.run.join If you run this and access port 3000 with a browser it will say "hello!". If you access it with any url other than "/test" it will give a simple 404. Check out the Mongrel::Error404Handler for a basic way to give a more complex 404 message. This also shows the DirHandler with directory listings. This is still rough but it should work for basic hosting. *File extension to mime type mapping is missing though.* == Contact E-mail the Mongrel list at https://rubyforge.org/mailman/listinfo/mongrel-users and someone will help you. Comments about the API are welcome.
This feature is coming soon. Sit tight!












