Skip to content

Commit 5b4ba1e

Browse files
committed
Merge r1873397 from trunk:
PR62989: DOCTYPE tags in server-generated HTML. Submitted By: Andra Farkas <deepbluemistake gmail.com>, Giovanni Bechis <giovanni paclan.it> Reviewed by: rpluem, jorton, covener Github: closes #553 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1929571 13f79535-47bb-0310-9956-ffa450edef68
1 parent a2ccdd0 commit 5b4ba1e

File tree

15 files changed

+42
-36
lines changed

15 files changed

+42
-36
lines changed

CHANGES

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,27 @@
11
-*- coding: utf-8 -*-
22
Changes with Apache 2.4.66
33

4+
*) mod_ssl: Add SSLVHostSNIPolicy directive to control the virtual
5+
host compatibility policy. PR 69743. [Joe Orton]
6+
7+
*) mod_md: update to version 2.6.2
8+
- Fix error retry delay calculation to not already doubling the wait
9+
on the first error.
10+
11+
*) mod_md: update to version 2.6.1
12+
- Increasing default `MDRetryDelay` to 30 seconds to generate less bursty
13+
traffic on errored renewals for the ACME CA. This leads to error retries
14+
of 30s, 1 minute, 2, 4, etc. up to daily attempts.
15+
- Checking that configuring `MDRetryDelay` will result in a positive
16+
duration. A delay of 0 is not accepted.
17+
- Fix a bug in checking Content-Type of responses from the ACME server.
18+
- Added ACME ARI support (rfc9773) to the module. Enabled by default. New
19+
directive "MDRenewViaARI on|off" for controlling this.
20+
- Removing tailscale support. It has not been working for a long time
21+
as the company decided to change their APIs. Away with the dead code,
22+
documentation and tests.
23+
- Fixed a compilation issue with pre-industrial versions of libcurl.
24+
425
Changes with Apache 2.4.65
526

627
*) SECURITY: CVE-2025-54090: Apache HTTP Server: 'RewriteCond expr'

STATUS

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -175,14 +175,6 @@ PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
175175
2.4.x patch: svn merge -c 1927792 ^/httpd/httpd/trunk .
176176
+1: icing, rpluem, jorton
177177

178-
*) various: Update DOCTYPE tags in server-generated HTML to 4.01
179-
Trunk version of patch:
180-
https://svn.apache.org/r1873397
181-
Backport version for 2.4.x of patch:
182-
https://patch-diff.githubusercontent.com/raw/apache/httpd/pull/553.diff
183-
Can be applied via apply_backport_pr.sh 553
184-
+1: rpluem, jorton, covener
185-
186178
*) mpm_common: Add new ListenTCPDeferAccept directive that allows to specify
187179
the value set for the TCP_DEFER_ACCEPT socket option on listen sockets.
188180
Trunk version of patch:

changes-entries/md_v2.6.1.txt

Lines changed: 0 additions & 13 deletions
This file was deleted.

changes-entries/md_v2.6.2.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

changes-entries/pr69743.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/docroot/index.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1-
<html><body><h1>It works!</h1></body></html>
1+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2+
<html>
3+
<head>
4+
<title>It works! Apache httpd</title>
5+
</head>
6+
<body>
7+
<p>It works!</p>
8+
</body>
9+
</html>

include/httpd.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,10 @@ extern "C" {
249249
#define DOCTYPE_HTML_4_0F "<!DOCTYPE HTML PUBLIC \"-//W3C//" \
250250
"DTD HTML 4.0 Frameset//EN\"\n" \
251251
"\"http://www.w3.org/TR/REC-html40/frameset.dtd\">\n"
252+
/** HTML 4.01 Doctype */
253+
#define DOCTYPE_HTML_4_01 "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\n"
254+
/** HTML 5 Doctype */
255+
#define DOCTYPE_HTML_5 "<!DOCTYPE html>\n"
252256
/** XHTML 1.0 Strict Doctype */
253257
#define DOCTYPE_XHTML_1_0S "<!DOCTYPE html PUBLIC \"-//W3C//" \
254258
"DTD XHTML 1.0 Strict//EN\"\n" \

modules/examples/mod_example_hooks.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1006,7 +1006,7 @@ static int x_handler(request_rec *r)
10061006
* Now send our actual output. Since we tagged this as being
10071007
* "text/html", we need to embed any HTML.
10081008
*/
1009-
ap_rputs(DOCTYPE_HTML_3_2, r);
1009+
ap_rputs(DOCTYPE_HTML_4_01, r);
10101010
ap_rputs("<HTML>\n", r);
10111011
ap_rputs(" <HEAD>\n", r);
10121012
ap_rputs(" <TITLE>mod_example_hooks Module Content-Handler Output\n", r);

modules/generators/mod_autoindex.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ static void emit_preamble(request_rec *r, int xhtml, const char *title)
179179
" <head>\n <title>Index of ", title,
180180
"</title>\n", NULL);
181181
} else {
182-
ap_rvputs(r, DOCTYPE_HTML_3_2,
182+
ap_rvputs(r, DOCTYPE_HTML_4_01,
183183
"<html>\n <head>\n"
184184
" <title>Index of ", title,
185185
"</title>\n", NULL);

modules/generators/mod_status.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ static int status_handler(request_rec *r)
419419
ap_get_loadavg(&t);
420420

421421
if (!short_report) {
422-
ap_rputs(DOCTYPE_HTML_3_2
422+
ap_rputs(DOCTYPE_HTML_4_01
423423
"<html><head>\n"
424424
"<title>Apache Status</title>\n"
425425
"</head><body>\n"

0 commit comments

Comments
 (0)