我似乎无法在同一个 url 上同时获得身份验证和重写。如果我禁用一个,另一个工作。这在lighttpd中可行吗?
$HTTP["host"] =~ "www\.example\.com$" {
auth.require = (
"/prettyurl" =>
(
"method" => "basic",
"realm" => "Password reqired",
"require" => "valid-user"
)
)
url.rewrite = (
"/prettyurl" => "/index.php?foo=bar&goo=car"
)
}