Nothing in "000-default.conf" file...

Posted May 13, 2015 14.7k views
UbuntuApacheConfiguration Management


The first time I tried to edit “000-default.conf” to use my certificate with Apache I got the usual <VirtualHost *:80> content.

But I made a mistake with my keys and closed the console. Now the only thing I have is some “ ~ ” and nothing else. I already tried recover option but it didn’t work. It seems like I have accidentally deleted what was inside it…

How bad I screwed up? Is there a solution?

Thank you very much…

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Not badly. The 000default.conf file is a standard configuration file before you edit it. You can find an example to copy and paste in step 4 of this tutorial.

by Justin Ellingwood
The Apache web server is the most popular way to serve web content on the internet. Apache has the ability to serve multiple domains from a single server by using a mechanism called "virtual hosts". If a virtual host is configured correctly for each domain, the web server can correctly route traffic to the appropriate files based on the domain name requested. In this guide, we'll demonstrate how to configure Apache virtual hosts on an Ubuntu 14.04 VPS.