lighttpd:如何禁用第二个站点上的身份validation
我的安装程序有当前的身份validationconfiguration。 它强制任何远程主机进行身份validation。 那很好。 但我需要例外。 auth_file="/etc/lighttpd.users" #if auth_file is not empty enable lighttpd local authentification if grep -q ".*:.*" "$auth_file" 2>/dev/null;then sed -ir '/^$/d' $auth_file cat <<EOF \$HTTP["remoteip"] != "127.0.0.1" { auth.backend = "htdigest" auth.backend.htdigest.userfile = "$auth_file" auth.require = ( "/" => ( "method" => "digest", "realm" => "MyRealm", "require" => "valid-user" ) ) } EOF […]