I have removed the folder
/etc/apache2 to reset its configuration, but when I reinstall Apache2 it is not coming back. Could anybody please explain this to me?
apache2.2-common packages contain config. Reinstall apache2.2-common:
or use autoremove(remove satisfy dependencies):
This will reinstall all configuration files from apache2.2-common that are missing.
Just reinstalling the package will not reinstall the configuration files.