You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by pk...@apache.org on 2024/09/07 11:03:22 UTC
(logging-log4j2) branch 2.x updated: Test custom 404 page
This is an automated email from the ASF dual-hosted git repository.
pkarwasz pushed a commit to branch 2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
The following commit(s) were added to refs/heads/2.x by this push:
new 1b9621439b Test custom 404 page
1b9621439b is described below
commit 1b9621439bf075683321ce294dd5454ef8e541e2
Author: Piotr P. Karwasz <pi...@karwasz.org>
AuthorDate: Sat Sep 7 13:00:34 2024 +0200
Test custom 404 page
---
src/site/resources/.htaccess | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/site/resources/.htaccess b/src/site/resources/.htaccess
index e181ccd394..c95fd8adc9 100644
--- a/src/site/resources/.htaccess
+++ b/src/site/resources/.htaccess
@@ -16,6 +16,11 @@
# specific language governing permissions and limitations
# under the License.
#
+##
+# Custom 404 page
+ErrorDocument 404 "/log4j/2.x/404.html"
+
+# Rewrite rules
RewriteEngine On
RewriteBase "/log4j/2.x/"