Cannot disable a site
By Andrew Adams •
I installed Ubuntu 18.04 on my server with Drupal 8
The Drupal installation is accessible from
If I enter the following command:
sudo a2dissite and
sudo systemctl restart apache2My site is still accessible.
Why? Normally it should be disabled.
If I enter the IP address of my server, the apache page appears. Yet the default site is disabled.
ubuntu@www:/etc/apache2$ cd sites-enabled
ubuntu@www:/etc/apache2/sites-enabled$ ls -l
total 0When I type the IP address of my server, the Apache page appears. Pouting the default site is disabled:
1 Answer
Skip the .conf prefix.
sudo a2dissite will work if the corresponding config file in /etc/apache2/sites-available/ is .
Normally a2dissite will give you a error message, which would say that the site is not found.