Project

General

Profile

Actions

Bug #2487

closed

url.rewrite-if-not-file with mod_alias

Added by doerner almost 11 years ago. Updated almost 11 years ago.

Status:
Invalid
Priority:
Normal
Category:
mod_rewrite
Target version:
-
ASK QUESTIONS IN Forums:

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"

Actions #1

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.

Actions #2

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).

Actions #3

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?

Actions

Also available in: Atom