M7350v7_en_gpl

This commit is contained in:
T
2024-09-09 08:59:52 +00:00
parent f75098198c
commit 46ba6f09ec
1372 changed files with 1231198 additions and 1184 deletions

View File

@ -12,6 +12,7 @@
# - saves some time
# - saves memory
server.modules = (
"mod_expire",
# "mod_rewrite",
"mod_redirect",
# "mod_alias",
@ -20,7 +21,7 @@ server.modules = (
# "mod_trigger_b4_dl",
# "mod_auth",
# "mod_status",
# "mod_setenv",
"mod_setenv",
# "mod_fastcgi",
# "mod_proxy",
# "mod_simple_vhost",
@ -30,7 +31,6 @@ server.modules = (
# "mod_compress",
# "mod_ssi",
# "mod_usertrack",
# "mod_expire",
# "mod_secdownload",
# "mod_rrdtool",
# "mod_webdav",
@ -119,6 +119,9 @@ mimetype.assign = (
#accesslog.filename = "/www/access.log"
#debug.log-request-handling = "enable"
###[pudongfang] add ipv6 support
$SERVER["socket"] == "[::]:80" {}
$HTTP["url"] =~ "/" {
server.document-root = "/WEBSERVER/www/"
#server.errorlog = "/www/lighttpd.error.log"
@ -154,6 +157,16 @@ $HTTP["url"] == "/" {
}
}
}
$HTTP["url"] =~ "/*.html" {
setenv.add-response-header = ( "Cache-Control" => "no-cache" )
}
$HTTP["url"] =~ "/*.css" {
expire.url = ( "" => "access 1 hours")
}
$HTTP["url"] =~ "/*.js" {
setenv.add-response-header = ( "Cache-Control" => "no-cache" )
}
expire.url = ( "/images/" => "access 1 hours")
##
# which extensions should not be handle via static-file transfer

View File

@ -15,6 +15,8 @@ RDEPENDS_${PN} += " \
lighttpd-module-auth \
lighttpd-module-redirect \
lighttpd-module-evasive \
lighttpd-module-expire \
lighttpd-module-setenv \
"
EXTRA_OECONF += " \
--with-openssl \