[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-httpd-bugs
Subject:    [Bug 58168] Would like full request evaluation support in RewriteCond
From:       bugzilla () apache ! org
Date:       2015-07-22 0:30:15
Message-ID: bug-58168-7868-4zy4Oclgjk () https ! bz ! apache ! org/bugzilla/
[Download RAW message or body]

https://bz.apache.org/bugzilla/show_bug.cgi?id=58168

--- Comment #4 from alexander <alexander@polkabrothers.com> ---
I see what you mean. I had not considered using ErrorDocument via LocatioMatch,
and that does indeed seem to be the way to do it.

However, it doesn't seem to support one crucial thing, which is to provide the
current REQUEST_URI to the ErrorDocument argument, although the docs seem to
suggest this should be possible:

ErrorDocument 404 /errors%{escape:%{HTTP_URI}}

I would expect the above to internally rewrite the would-be 404 result to
/errors/the-missing-file.txt   (if http://example.org/the-missing-file.txt was
requested).

Apache chokes out with the message:
Additionally, a 400 Bad Request error was encountered while trying to use an
ErrorDocument to handle the request.

Am I doing something wrong, or is this the one part of the puzzle that is
missing, that I should do a feature request for?

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic