How can I restore configuration files?
Is there an easy way to get default configuration files of a given Ubuntu version? For example where to get the default
apache2.conf for Ubuntu 9.10?
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
Alternately you can download the appropriate .deb and extract the file.
Download the .deb and extract it with
Then find the configuration file you need in the extracted directory.
I only mention this in the event you are running a server without X ;)
Start from a live-CD, install apache2, and there you have them. Save them to an USB-stick, for instance, or to the cloud, attach them to an email for yourself.
Or save the current files, uninstall (purge) apache2, and reinstall it.