Skip to content

Instantly share code, notes, and snippets.

@mattwilliamson
Created August 8, 2010 21:36
Show Gist options
  • Save mattwilliamson/514578 to your computer and use it in GitHub Desktop.
Save mattwilliamson/514578 to your computer and use it in GitHub Desktop.
$HTTP["host"] =~ "myproject\.myhost\.com" {
fastcgi.server = (
".fcgi" => (
"localhost" => (
"bin-path" => "/var/www/myproject/myproject.fcgi",
"socket" => "/tmp/myproject.sock",
"check-local" => "disable",
"min-procs" => 2,
"max-procs" => 4,
)
),
)
alias.url = (
"/media" => "/usr/local/lib/python1.6/dist-packages/Django-1.2.1-py2.6.egg/django/contrib/admin/media/",
)
url.rewrite-once = (
"^(/media.*)$" => "$1",
"^/favicon\.ico$" => "/media/favicon.ico",
"^(/.*)$" => "/myproject.fcgi$1",
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment