Yes while the httpd.conf is empty & apache2.conf is present with conf data & the "ServerRoot" is reset from "/etc/apache2" to "/var/www" folder which also contains index.html. still
returns the error as
"localhost" refused the connection
likely causes of the problem are
* some service isn't started, or
* you got the port number wrong.