Bug 57813 - Rewrite 'pre-compressed content' recipe using 2.4 metaphors
Summary: Rewrite 'pre-compressed content' recipe using 2.4 metaphors
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Documentation (show other bugs)
Version: 2.5-HEAD
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: HTTP Server Documentation List
Depends on:
Reported: 2015-04-14 17:28 UTC by Rich Bowen
Modified: 2018-03-26 18:22 UTC (History)
0 users

If statements plus supported encodings (bug 53121) (2.91 KB, patch)
2015-12-29 21:40 UTC, Luca Toscano
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rich Bowen 2015-04-14 17:28:29 UTC
See https://bz.apache.org/bugzilla/show_bug.cgi?id=51336

I'd like to rewrite the recipe for "serving pre-compressed content" in the mod_deflate docs using <If> rather than all of the mod_rewrite stuff, if possible.
Comment 1 Luca Toscano 2015-12-29 21:40:17 UTC
Created attachment 33384 [details]
If statements plus supported encodings (bug 53121)
Comment 2 Luca Toscano 2015-12-29 21:41:57 UTC
Hi Rich,

I attached a patch to this bug that should represent a solution to the pre-compressed scenario that you wanted to be changed.

I checked the syntax with httpd -t and ran the doc's validate-xhtml/xml steps.

Let me know if anything is really wrong or missing :)

Comment 3 Eric Covener 2015-12-30 19:29:33 UTC
I think you need a new (core) directive that does the rewrite-to-local-path only. The rest can become setenv/setenvif I guess.  But there's not much point in using If to just remove half of the rewrite* from the recipe.  

my 2c.
Comment 4 Luca Toscano 2016-01-02 10:07:27 UTC
Reporting some notes from a chat with Eric on #httpd-dev:

- the if blocks are not really great if we don't remove all the Rewrite stuff.
- a new directive might help to remove the RewriteRule with something more clear and less powerful (but readable).

My patch is not really applicable then, more work needs to be done :)