|
@@ -488,7 +488,7 @@ instalarApache() {
|
|
|
|
|
|
configurarApache() {
|
|
|
if [ $rhelOS = true ];then
|
|
|
- apacheConfFile="./etc/apache2-rhel/conf/httpd.conf"
|
|
|
+ apacheConfFile="./etc/$webServerName-rhel/conf/httpd.conf"
|
|
|
welcomeConfFile="/etc/$webServerName/conf.d/welcome.conf"
|
|
|
if [ ! -f $apacheConfFile ];then
|
|
|
comprobarError 1 4 $apacheConfFile
|
|
@@ -533,9 +533,9 @@ configurarNginx() {
|
|
|
rm -Rf "/etc/$webServerName/*" 2>/dev/null
|
|
|
comprobarError $? 107
|
|
|
if [ $debianOS = true ];then
|
|
|
- nginxConfFile="./etc/nginx-debian"
|
|
|
+ nginxConfFile="./etc/$webServerName-debian"
|
|
|
elif [ $rhelOS = true ];then
|
|
|
- nginxConfFile="./etc/nginx-rhel"
|
|
|
+ nginxConfFile="./etc/$webServerName-rhel"
|
|
|
fi
|
|
|
if [ -d "$nginxConfFile" ];then
|
|
|
cp -Rf "$nginxConfFile/*" "/etc/$webServerName/" 2>/dev/null
|