apache2 enable site ubuntu from public directory code example Example: apache enable site sudo a2ensite domain1.com