M7350v7_en_gpl
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user