Bug 58984

Summary: mod_rewrite documentation for R flag should include note about supported status codes
Product: Apache httpd-2 Reporter: Yehuda Katz <yehuda>
Component: DocumentationAssignee: HTTP Server Documentation List <docs>
Status: NEW ---    
Severity: normal CC: yehuda
Priority: P2 Keywords: PatchAvailable
Version: 2.5-HEAD   
Target Milestone: ---   
Hardware: PC   
OS: All   
Attachments: trunk patch
2.4 patch

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