Question

I accidentally deleted "site-available" directory while trying to install Apache2 on Ubuntu. I have lost 000-default.conf . Please help!

Posted April 26, 2018 1k views
UbuntuApache

I have tried using testdisk to undo deletion but unsuccessful. I have also been looking for ways to reinstall site confused option.

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.

×
1 answer

Hello,

Your default conf should look something like this:

<VirtualHost *:80>
    ServerAdmin admin@test.com
    ServerName test.com
    ServerAlias www.test.com
    DocumentRoot /var/www/test.com/public_html
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

You can just recreate it manually and it should work fine.

Regards,
Bobby

Submit an Answer