You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by wu...@apache.org on 2022/10/29 16:12:35 UTC

[ambari] branch trunk updated: AMBARI-25252: Disable directory Indexing at /resources (#3449)

This is an automated email from the ASF dual-hosted git repository.

wuzhiguo pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 9c8c40740e AMBARI-25252: Disable directory Indexing at /resources (#3449)
9c8c40740e is described below

commit 9c8c40740e870046aeb13b1ced0263f2db0a9d60
Author: Zhiguo Wu <wu...@apache.org>
AuthorDate: Sun Oct 30 00:12:26 2022 +0800

    AMBARI-25252: Disable directory Indexing at /resources (#3449)
---
 ambari-server/src/main/assemblies/server.xml |  5 +++++
 ambari-server/src/main/resources/index.html  | 17 +++++++++++++++++
 2 files changed, 22 insertions(+)

diff --git a/ambari-server/src/main/assemblies/server.xml b/ambari-server/src/main/assemblies/server.xml
index 9f5c1aa163..33912d3b29 100644
--- a/ambari-server/src/main/assemblies/server.xml
+++ b/ambari-server/src/main/assemblies/server.xml
@@ -407,6 +407,11 @@
       <source>src/main/resources/APACHE-AMBARI-MIB.txt</source>
       <outputDirectory>/var/lib/ambari-server/resources</outputDirectory>
     </file>
+    <file>
+      <fileMode>755</fileMode>
+      <source>src/main/resources/index.html</source>
+      <outputDirectory>/var/lib/ambari-server/resources</outputDirectory>
+    </file>
     <file>
       <fileMode>755</fileMode>
       <source>src/main/resources/kerberos.json</source>
diff --git a/ambari-server/src/main/resources/index.html b/ambari-server/src/main/resources/index.html
new file mode 100644
index 0000000000..734b09496f
--- /dev/null
+++ b/ambari-server/src/main/resources/index.html
@@ -0,0 +1,17 @@
+<!--
+* 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.
+-->


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ambari.apache.org
For additional commands, e-mail: commits-help@ambari.apache.org