adjust_apache.pl: updates servername section of apache config to help when instance gets renamed

This commit is contained in:
Jed Reynolds
2021-01-11 23:08:49 -08:00
parent 985e1d9d8a
commit adbe9484db

View File

@@ -379,5 +379,12 @@ foreach my $file (@places_to_check) {
}
}
} # ~for places_to_check
if ( -d "/etc/httpd/conf.d") {
die($!) unless open(FILE, ">", "/etc/httpd/conf.d/00-ServerName.conf");
print FILE "ServerName $MgrHostname\n";
#print FILE "Listen $MgrHostname:80\n";
#print FILE "Listen $MgrHostname:443\n";
close FILE;
}
#