This is an automated email from the ASF dual-hosted git repository.
amagyar pushed a commit to branch branch-2.7
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/branch-2.7 by this push:
new 18f895c AMBARI-25252. Disable directory Indexing at /resources
(amagyar) (#2936)
18f895c is described below
commit 18f895ca0130ab3d0058eae8d3b262d9d47b6909
Author: Attila Magyar <[email protected]>
AuthorDate: Tue Apr 16 17:52:52 2019 +0200
AMBARI-25252. Disable directory Indexing at /resources (amagyar) (#2936)
AMBARI-25252. Disable directory Indexing at /resources (amagyar)
---
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 67858e7..6293dd4 100644
--- a/ambari-server/src/main/assemblies/server.xml
+++ b/ambari-server/src/main/assemblies/server.xml
@@ -393,6 +393,11 @@
</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>
<outputDirectory>/var/lib/ambari-server/resources</outputDirectory>
</file>
diff --git a/ambari-server/src/main/resources/index.html
b/ambari-server/src/main/resources/index.html
new file mode 100644
index 0000000..734b094
--- /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.
+-->