The existing note about implicit disabling of Options was difficult
to parse. Rewrite as a type="warning" note with:
- Clear statement that the restriction controls enabling, not disabling
- Explanation of absolute vs relative (+/-) Options syntax
- Concrete example showing how inherited options get implicitly disabled
BZ#70099
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934980 13f79535-47bb-0310-9956-ffa450edef68
core: Add millisecond support to ErrorLogFormat time specifiers
%{m} prints the timestamp in millisecond-resolution.
* include/util_time.h:
Define new AP_CTIME_OPTION_MSEC option for printing time in milliseconds
format.
* server/util_time.c (ap_recent_ctime_ex):
Handle AP_CTIME_OPTION_MSEC to print time in a millisecond format.
* server/log.c (log_ctime):
Recognize the m time option in both fast-path and composite %{...}t formats.
Submitted by: Luboš Uhliarik <luhliari redhat.com>
* server/log.c (log_ctime): Fix syntax error in r1931452
(added by me when tweaking whitespace, not from the PR author).
Reviewed by: jorton, covener, jim
Github: closes#599
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934884 13f79535-47bb-0310-9956-ffa450edef68
The negative lookahead (?!...) is zero-width and non-capturing, so
the original pattern matched only the leading slash and \$1 was
undefined. Add a capturing group (.*)$ after the lookahead so that
\$1 contains the remainder of the URL-path.
Same as trunk r1934878.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934879 13f79535-47bb-0310-9956-ffa450edef68
Sync reorganized and expanded mod_rewrite documentation from trunk:
- Rewritten index with structured navigation
- Expanded flags reference with new examples (chain, cookie, DPI)
- Renamed htaccess doc to 'Per-directory Rewrites' with new sections
on path stripping, RewriteBase, and loop behavior
- Expanded tech.xml with detailed per-directory processing explanation
- New recipes in remapping.xml: HTTPS behind load balancer, ACME
exemption, trailing-slash handling, front-controller patterns
- Added prg: map Python example in rewritemap.xml
- Cross-reference links and glossary terms throughout
- Fixed incorrect <since> tags: SameSite is 2.4.47, UnsafePrefixStat
is 2.4.60, UNC is 2.4.63 (were erroneously marked 2.5.1)
- Removed N flag iteration-limit paragraph (trunk-only feature)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934664 13f79535-47bb-0310-9956-ffa450edef68
- Remove mirrors reference and binary releases (both retired)
- Update all external links to https
- Update version examples to current 2.4.66/2.4.67
- Replace two-step gzip/tar with single tar xzf
- Reword download section for source builds
- Consolidate verification link to verification.html
- Remove minimizing language (easy, simple, simply)
- Add language="sh" to all highlight blocks
- Update disk space: 200 MB build (was 50), 50 MB installed (was 10)
- Replace deprecated ntpdate/xntpd with systemd-timesyncd/chrony
- Remove outdated Perl 5.003 version floor
- Update release examples from dead 2.0/2.2 to 2.4/2.6
- Update 'Mac OS X, Solaris' to 'macOS'
- Requirements intro: 'building' → 'building and running'
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934638 13f79535-47bb-0310-9956-ffa450edef68
Recreate syntax_rewritecond as editable SVG with color-coded callouts
for TestString, CondPattern, and [Flags]. Matches style of RewriteRule
syntax diagram.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934623 13f79535-47bb-0310-9956-ffa450edef68
Recreate the ruleset processing flowchart as editable SVG. Adds
explicit 'no more rules' exit path and names RewriteCond in the
conditions diamond for clarity. Regenerate PNG from SVG source.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934615 13f79535-47bb-0310-9956-ffa450edef68
Add SVG source and regenerated PNG for mod_rewrite_fig2 showing how
backreferences flow: $N from RewriteRule Pattern (matched first) to
all RewriteCond TestStrings and Substitution; %N from last matched
CondPattern to Substitution. Insert as Figure 3 in tech.html. Add
crosslink from intro.html backreferences section to the new diagram.
Remove obsolete GIF.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934613 13f79535-47bb-0310-9956-ffa450edef68
Add new per-request rewrite process diagram (Figure 1) showing both
per-server and per-directory phases with RewriteCond evaluation.
Renumber existing ruleset diagram to Figure 2.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934611 13f79535-47bb-0310-9956-ffa450edef68
Add editable SVG source for mod_rewrite_fig1. Regenerate PNG from SVG.
Insert as Figure 1 in rewrite/tech.html showing the full per-request
rewrite process (per-server rules, redirect check, per-directory rules,
including RewriteCond evaluation). Remove obsolete GIF. Renumber existing
diagram to Figure 2.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934609 13f79535-47bb-0310-9956-ffa450edef68
Remove hyphenation from "Server-Variables"/"server-variables" in
mod/mod_rewrite.xml and rewrite/flags.xml — no RFC precedent exists
for the hyphenated form (RFC 3875 uses "meta-variables"). Rework the
module summary to clarify that HTTP headers and timestamps are a
subset of server variables, not separate categories. Link the term
to its definition in RewriteCond.
Addresses: https://bz.apache.org/bugzilla/show_bug.cgi?id=70059
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934606 13f79535-47bb-0310-9956-ffa450edef68
The opening sentence of the DPI|discardpath section implied PATH_INFO
was a "portion of" the URL-path/URI, while the next sentence described
it as a separate value concatenated to the URL-path/URI. Reword to
make clear that PATH_INFO is appended, not an inherent component.
Also add glossary links for URL-path (trunk only).
bz#70052
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934604 13f79535-47bb-0310-9956-ffa450edef68
env.html now references expr.html for the modern expression-based
approach to conditional headers, access control, and logging.
The CGI variables section links to the complete variable reference
on expr.html (including REQUEST_URI, REMOTE_ADDR, etc.).
expr.html now links back to env.html for how environment variables
are set (SetEnv, SetEnvIf, [E=...]) and for the special-purpose
variable list.
Addresses: https://bz.apache.org/bugzilla/show_bug.cgi?id=70066
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934600 13f79535-47bb-0310-9956-ffa450edef68