Can Lighttpd set "connection.kbytes-per-second" depends on the hour of the day? Such as peak and offpeak -
is possible set "connection.kbytes-per-second" depends on hour of day in lighttpd? such between 7pm-11pm limit 250kb/s, 1am-5am limit 500kb/s etc? thanks! sorry delay, answer - lua script: -- if don't find our "supersecretstring" in request uri, if string.find(lighty.env["request.uri"], "supersecretstring") == nil local hour = os.date("%h") -- account whether or not there query variables if string.find(lighty.env["request.uri"], "?") == nil lighty.env["request.uri"] = lighty.env["request.uri"] .. "?supersecretstring=" .. hour else lighty.env["request.uri"] = lighty.env["request.uri"] .. "&supersecretstring=" .. hour end -- restart request, script run again, return nil. return lighty.restart_request end -- continue request, above if have ran. return nil and configuration file: server