Browse Source

Create dir.conf on CentOS

Ernesto Nicolás Carrea 5 years ago
parent
commit
40e78eb05b
1 changed files with 5 additions and 0 deletions
  1. 5 0
      bin/module/apache/install.inc

+ 5 - 0
bin/module/apache/install.inc

@@ -62,6 +62,11 @@ EOL
         echo "# Powered by Hestia" > $OSAL_PATH_APACHE_CONF_D/ssl.conf
         echo "# Powered by Hestia" > $OSAL_PATH_APACHE_CONF_D/welcome.conf
         echo "# Powered by Hestia" > $OSAL_PATH_APACHE_CONF_D/userdir.conf
+        echo > $OSAL_PATH_APACHE_CONF_D/dir.conf <<EOL "# This file was added by Hestia Control Panel.
+        <IfModule mod_dir.c>
+                DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm
+        </IfModule>
+EOL
 
         # Copy configuration files
         cp -f $HESTIA_INSTALL_DIR/$OSAL_PKG_APACHE/status.conf $OSAL_PATH_APACHE_CONF_D/