Skip to content

Instantly share code, notes, and snippets.

@mikejs
Created September 9, 2010 05:22
Show Gist options
  • Save mikejs/571427 to your computer and use it in GitHub Desktop.
Save mikejs/571427 to your computer and use it in GitHub Desktop.
from mongrel2.config import *
main = Server(
uuid="cb69cc4f-59d0-4cdb-aefe-4dcbe83f4682",
access_log="/logs/access.log",
error_log="/logs/error.log",
chroot="./",
default_host="mikej.st",
name="main",
pid_file="/run/mongrel2.pid",
port=6767,
hosts=[
Host(name="localhost", routes={
r'/': Handler(send_spec="ipc:///tmp/localhost_req",
recv_spec="ipc:///tmp/localhost_resp",
send_ident="57bb905e-746c-41f8-ae2d-bb650ff32f52",
recv_ident=""),
}),
Host(name="mikej.st", routes={
r'/': Dir(base='blah/')
}),
]
)
commit([main])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment