Skip to content

Instantly share code, notes, and snippets.

@Nimrodda
Created March 28, 2014 13:13
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 Nimrodda/9832397 to your computer and use it in GitHub Desktop.
Save Nimrodda/9832397 to your computer and use it in GitHub Desktop.
lighttpd.conf
#Lighttpd configured as a https proxy server
server.modules = (
"mod_access",
"mod_alias",
"mod_compress",
"mod_redirect",
#"mod_rewrite",
"mod_proxy",
)
#The following folders need to be created
#before running Lighttpd
server.document-root = "/ffp/var/www"
server.upload-dirs = ( "/ffp/var/cache/lighttpd/uploads" )
server.errorlog = "/ffp/var/log/lighttpd/error.log"
server.pid-file = "/ffp/var/run/lighttpd.pid"
server.port = 8443
index-file.names = ( "index.php", "index.html" )
url.access-deny = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
compress.cache-dir = "/var/cache/lighttpd/compress/"
compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
ssl.engine = "enable"
#Path to SSL certificate
ssl.pemfile = "/ffp/etc/lighttpd/certificate.pem"
#Forward /transmission to transmission web server on localhost:9091
$HTTP["url"] =~ "^/transmission*" {
proxy.server = ( "" =>
( (
"host" => "127.0.0.1",
"port" => 9091
) )
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment