EN
Linux apach2 enable site with systemctl reload
1 points
Example:
xxxxxxxxxx
1
root@server:/etc/apache2/sites-available# a2ensite my-site.com.conf
2
Enabling site my-site.com.
3
To activate the new configuration, you need to run:
4
systemctl reload apache2
Other examples:
xxxxxxxxxx
1
root@server:/etc/apache2/sites-available# a2en
2
a2enconf a2enmod a2ensite
3
4
root@server:/etc/apache2/sites-available# a2
5
a2disconf a2dismod a2dissite a2enconf a2enmod a2ensite a2query