a2ensite 'Site: ___ does not exist' error, even with .conf file a2ensite 'Site: ___ does not exist' error, even with .conf file apache apache

a2ensite 'Site: ___ does not exist' error, even with .conf file


The answer, in short, is that a2ensite just wants the name of the site.conf and not the whole path to the file.

So sudo a2ensite example-com-80.conf

I found this in an earlier answer by @raina77ow.