Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruo91/2765224ff4e73948ea1772779aaaf075 to your computer and use it in GitHub Desktop.
Save ruo91/2765224ff4e73948ea1772779aaaf075 to your computer and use it in GitHub Desktop.
Apache2 - Apply HTTP Status Code 444
# usage: patch -p0 < apache2_add_http_status_code_444_http_protocol.patch
# vi httpd.conf
# ErrorDocument 444 "No Response"
# apachectl graceful
--- httpd-2.4.57/modules/http/http_protocol.c.orig 2023-05-24 22:50:23.905088004 +0900
+++ httpd-2.4.57/modules/http/http_protocol.c 2023-05-24 22:51:10.275677091 +0900
@@ -158,7 +158,7 @@
NULL, /* 441 */
NULL, /* 442 */
NULL, /* 443 */
- NULL, /* 444 */
+ "444 No Response",
NULL, /* 445 */
NULL, /* 446 */
NULL, /* 447 */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment