how to enable a site in apache code example Example 1: apache enable site sudo a2ensite domain1.com Example 2: enable apache2 site a2ensite example.com