Bug 58984 - mod_rewrite documentation for R flag should include note about supported status codes
Summary: mod_rewrite documentation for R flag should include note about supported stat...
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Documentation (show other bugs)
Version: 2.5-HEAD
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: HTTP Server Documentation List
URL:
Keywords: PatchAvailable
Depends on:
Blocks:
 
Reported: 2016-02-09 17:00 UTC by Yehuda Katz
Modified: 2016-02-09 19:22 UTC (History)
1 user (show)



Attachments
trunk patch (493 bytes, patch)
2016-02-09 17:00 UTC, Yehuda Katz
Details | Diff
2.4 patch (505 bytes, patch)
2016-02-09 17:01 UTC, Yehuda Katz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yehuda Katz 2016-02-09 17:00:46 UTC
Created attachment 33536 [details]
trunk patch

The R flag only supports sending headers that are otherwise listed in the module as supported, but the documentation implies that any header can be sent. This leads to 500 errors (when the RewriteRule is in htaccess) or compile errors (when the RewriteRule is in config).

The attached patches (trunk and 2.4) add a note about supported codes only.

It might be nice to put the list of codes somewhere in the documentation (currently in include/httpd.h), but I don't know if there is an automatic way to do this.
Comment 1 Yehuda Katz 2016-02-09 17:01:02 UTC
Created attachment 33537 [details]
2.4 patch