enable apache site code example
Example 1: apache enable site
sudo a2ensite domain1.com
Example 2: a2ensite example
a2ensite /etc/apache2/sites-available/new-domain.conf
//-----------------
a2dissite /etc/apache2/sites-available/new-domain.conf
Example 3: enable apache2 site
a2ensite example.com
Example 4: a2ensite example.
a2ensite /etc/apache2/sites-available/new-domain.conf
//-----------------
a2dissite /etc/apache2/sites-available/new-domain.conf