I have various WS-12-250A in operation. Every so often (1-3 weeks), the configuration of the built-in web server gets corrupted, resulting in either an empty /etc/lighttpd.conf or one with badly formatted content - wrong settings, many tabs, etc.
Has anyone seen this happen?
Example corrupt config (tabs not shown but each line increments by one tab) - there is a missing section after the server.pid-file line:
- Code: Select all
admin@SW0002:/www# cat /etc/lighttpd.conf
server.port = 80
server.max-worker = 2
$SERVER["socket"] == ":35443" {
ssl.engine = "enable"
ssl.pemfile = "/etc/config/lighttpd.pem"
}
# bounce all HTTP requests to HTTPS
$HTTP["scheme"] == "nomatch" {
$HTTP["host"] =~ "(.*)" {
url.redirect = ("^/(.*)" => "https://%1:35443/$1")
}
}
server.modules = (
"mod_rewrite",
"mod_redirect",
# "mod_alias",
# "mod_auth",
# "mod_status",
# "mod_setenv",
"mod_fastcgi",
"mod_proxy",
# "mod_simple_vhost",
"mod_cgi",
# "mod_ssi",
# "mod_usertrack",
# "mod_expire"
)
server.network-backend = "write"
server.document-root = "/www/"
index-file.names = ( "index.html", "default.html", "index.htm", "default.htm", "index.php" )
mimetype.assign = (
".pdf" => "application/pdf",
".class" => "application/octet-stream",
".pac" => "application/x-ns-proxy-autoconfig",
".swf" => "application/x-shockwave-flash",
".wav" => "audio/x-wav",
".gif" => "image/gif",
".jpg" => "image/jpeg",
".jpeg" => "image/jpeg",
".png" => "image/png",
".ico" => "image/x-icon",
".css" => "text/css",
".html" => "text/html",
".htm" => "text/html",
".js" => "text/javascript",
".woff" => "application/font-woff",
".txt" => "text/plain",
".dtd" => "text/xml",
".xml" => "text/xml"
)
$HTTP["url"] =~ "\.pdf$" {
server.range-requests = "disable"
}
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ".lua", ".cgi", ".json" )
server.pid-file = "/var/run/lighttpd.pid"
admin@SW0002:/www#