Bug #2487
closedurl.rewrite-if-not-file with mod_alias
Description
is a combination, that does not seem to work.
Meaning: The check, if the file exists is not based on the file that would be served based on alias domain root.
alias.url += ( "/newPath/" => "/var/www/some/where/else/" )
$HTTP["host"] =~ "(.*)" {
url.rewrite-if-not-file = (
"^/newPath/in/new/place/file.html$" => "/newPath/some/other/file.html"
)
}
This will never check for the file in "/var/www/some/where/else/in/new/place/file.html"
Updated by doerner almost 11 years ago
PS: It does not check, if the directory "newPath" exists in the "main" directory tree, but it does work if it does not.
Updated by stbuehler almost 11 years ago
- Status changed from New to Invalid
- Target version deleted (
1.4.33)
Load mod_alias before mod_rewrite. module load order matters due to how the hook system works (alias.url and url.rewrite-if-not-file use the same hook).
Updated by doerner almost 11 years ago
If that is it, thank you very much for this input.
May I suggest to change the module loading order in this respect in the "example" lighttpd.conf file which gets distributed?
Also available in: Atom