1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
| server.modules = (
"mod_access",
"mod_alias",
"mod_compress",
"mod_redirect",
"mod_accesslog",
"mod_proxy",
"mod_rewrite",
"mod_fastcgi",
)
server.document-root = "/var/www/html"
server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
server.errorlog = "/var/log/lighttpd/error.log"
server.pid-file = "/var/run/lighttpd.pid"
server.username = "www-data"
server.groupname = "www-data"
server.port = 80
index-file.names = ( "index.php", "index.html", "index.lighttpd.html", "index.xml" )
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" )
# default listening port for IPv6 falls back to the IPv4 port
include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
$HTTP["host"] == "seafile.last-project.ovh" {
# url.rewrite-once += (
# "^/seafhttpd(.*)$" => "$1",
# )
# url.rewrite+= (
# "^(media.*)$" => "$1"
# )
# url.rewrite-if-not-file += (
# "^(.*)$" => "/seahub.fcgi$1"
# )
#
# alias.url += (
# "/media" => "/var/www/seafile/seahub/media",
# )
# accesslog.filename = "/var/log/lighttpd/seafile.log"
fastcgi.server += ( "/seafile" => ((
"host" => "127.0.0.1",
"port" => "8000",
"check-local" => "disable",
"allow-x-send-file" => "enable"
)))
# $HTTP["url"] =~ "(^/seafhttp)" {
# proxy.server = ( "" => (
# "webapp:80" => # name
# ( "host" => "127.0.0.1",
# "port" => 81
# )
# )
# )
# }
#
# $HTTP["url"] =~ "(^/files)" {#new block
# proxy.server = ( "" => (
# "webapp:80" => # name
# ( "host" => "127.0.0.1",
# "port" => 8082
# )
# )
# )
# }
}
#$SERVER["socket"] == ":81" {
# url.rewrite-once = ( "^/seafhttp(.*)$" => "$1" )
# proxy.server = ( "" => (
# "webapp:81" => # name
# ( "host" => "127.0.0.1",
# "port" => 8082
# )
# )
# )
#}
$SERVER["socket"] == ":443" {
ssl.engine = "enable"
ssl.use-sslv2 = "enable"
ssl.pemfile = "/etc/ssl/private/dom.pem"
#ssl.pemfile = "/etc/lighttpd/ssl/dom.ovh/server.pem"
} |