Project

General

Profile

Actions

Bug #2952

closed

url.rewrite-if-not-file in a condition

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

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

Description

I experience the following behavior:

$HTTP["useragent"] =~ "Safari" {
url.rewrite-if-not-file = ("A" => "B")
}
does not work / rewrite.

But working is

url.rewrite-if-not-file = ("A"  => "B"")

as well as

$HTTP["useragent"] =~ "Safari" {
url.rewrite = ("A" => "B")
}

(of course "A" (and "B") are other / longer / more complex expressions in my use case)

Actions #1

Updated by gstrauss almost 5 years ago

  • Category deleted (mod_rewrite)
  • Status changed from New to Invalid
  • Priority changed from Normal to Low
  • Target version deleted (1.4.x)

lighttpd mod_rewrite works just fine.

The "sample" that you provided is not an accurate description of the problem. Please stop wasting your time and mine.

If you have a question, please use the Forums. There is a strong likelihood that your problem is a mistake that you have made. See also #2487.

Actions #2

Updated by doerner almost 5 years ago

Sorry if I wasted your time.
But please be advised, that it took me also some time, to nail the problem so far down, to state the exact problem above.

In this particular case, I checked before posting that my former "alias" problem is not an issue here. The problem persists in the exact same way, nevertheless if mod_alias is loaded or not.
(In the former problem url.rewrite-if-not-file = ("A" => "B") outside of the condition would fail as well, but it does not! )
Furthermore, I checked this time, that it is not another "simple loading-order-problem" as last time.

Actions #3

Updated by gstrauss almost 5 years ago

Your "problem report" continues to be fairly useless.

Has it occurred to you to provide the version of lighttpd you are running, and on what platform? Information like that should be part of any request for assistance and should be posted on the Forums, not as a bug report. The current version of lighttpd is lighttpd 1.4.53.

The test case you provided describes a core feature of lighttpd (conditional processing of directives) and works as designed. I wasted some time to verify (using latest lighttpd build) before I posted.

But please be advised, that it took me also some time, to nail the problem so far down, to state the exact problem above.

You described that the conditional is not working. Have you tried testing a different condition? You probably got the condition wrong.

Actions

Also available in: Atom