Created
March 14, 2015 09:51
-
-
Save k1000/42ec53ec57fa56b10a73 to your computer and use it in GitHub Desktop.
Lighttpd configuration for reverse proxy and static media
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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