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

May 13, 2015 3.2k views
Apache Configuration Management Ubuntu


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...

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.
Have another answer? Share your knowledge.