Created
March 28, 2014 13:13
-
-
Save Nimrodda/9832397 to your computer and use it in GitHub Desktop.
lighttpd.conf
This file contains 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
#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