Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
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?

share|improve this question

marked as duplicate by Alvin Row, Lekensteyn, andrewsomething, htorque, Takkat Feb 3 '12 at 21:36

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.

Related question:… – Bruno Pereira Feb 3 '12 at 15:04
up vote 2 down vote accepted

Alternately you can download the appropriate .deb and extract the file.

Download the .deb and extract it with

ar p apache.deb data.tar.gz | tar zx

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 ;)

share|improve this answer
I'd recommend to download the deb file through apt-get download <package> – Severo Raz Jul 16 '13 at 16:47

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.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.