Skip to content

Instantly share code, notes, and snippets.

@k1000
Created March 14, 2015 09:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save k1000/42ec53ec57fa56b10a73 to your computer and use it in GitHub Desktop.
Save k1000/42ec53ec57fa56b10a73 to your computer and use it in GitHub Desktop.
Lighttpd configuration for reverse proxy and static media
$HTTP["host"] =~ "www.domain.org" {
server.name = "www.domain.org"
server.document-root = "/path/to/media/"
$HTTP["url"] !~ "^/(static|media)" {
proxy.server = ( "" =>
(( "host" => "127.0.0.1", "port" => 8008 ))
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment