M HYPE SPLASH
// news

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 apache2

My 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 0

When I type the IP address of my server, the Apache page appears. Pouting the default site is disabled:

Apache page screenshot

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.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy