Improved script to first copy the apache config file before editing it. Added a config variable for the apache restart command.