This is an automated email from the ASF dual-hosted git repository.
pkarwasz pushed a commit to branch release/2.22.1
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
The following commit(s) were added to refs/heads/release/2.22.1 by this push:
new 34a38fd640 Add license to `.htaccess` files
34a38fd640 is described below
commit 34a38fd6401218f7337308097b06b78743bb8a18
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Fri Dec 22 15:39:06 2023 +0100
Add license to `.htaccess` files
---
src/site/resources/log4j-api/.htaccess | 18 ++++++++++++++++++
src/site/resources/log4j-core/.htaccess | 18 ++++++++++++++++++
2 files changed, 36 insertions(+)
diff --git a/src/site/resources/log4j-api/.htaccess
b/src/site/resources/log4j-api/.htaccess
index dfb7b4c7b7..e62be9eaf7 100644
--- a/src/site/resources/log4j-api/.htaccess
+++ b/src/site/resources/log4j-api/.htaccess
@@ -1,3 +1,21 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
RewriteEngine On
RewriteCond "%{REQUEST_URI}" "^(/log4j/[^/]+)"
RewriteRule "^apidocs(.*)$" "%1/javadoc/log4j-api$1" [R=permanent]
diff --git a/src/site/resources/log4j-core/.htaccess
b/src/site/resources/log4j-core/.htaccess
index cedce8f929..f0401b6179 100644
--- a/src/site/resources/log4j-core/.htaccess
+++ b/src/site/resources/log4j-core/.htaccess
@@ -1,3 +1,21 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
RewriteEngine On
RewriteCond "%{REQUEST_URI}" "^(/log4j/[^/]+)"
RewriteRule "^apidocs(.*)$" "%1/javadoc/log4j-core$1" [R=permanent]