Apache Disable Website Linux PMC Tactical

Welcome to Apache Disable Website Linux PMC Tactical.

If you are grateful for all the work PMC has done in the past 25 years, use Support PMC page.

Apache Disable Website

Linux Apache disable website. This takes the website domain offline, Apache server will not serve any https requests to that address anymore. No actual physical files are removed from your web root though.

sudo a2dissite example.com
sudo a2dissite example.com-le-ssl
sudo systemctl restart apache2

I did that when one of my domains was let to expire so it was not working anymore, Letsencrypt somehow did not work on it and it caused all kinds of issues like Apache getting error on its config, no idea how but hey who cares. I used that a2dissite <DOMAINNAME> and then restart for Apache itself, problem solved.