Upgrade Ubuntu 12.04 14.04 : Apache default virtual server not working

3 posts / 0 new
Last post
#1 Thu, 08/03/2017 - 04:08
jvieille

Upgrade Ubuntu 12.04 14.04 : Apache default virtual server not working

When hitting the IP of the server, I used to get the reassuring "It Works"

Now, I get "Website disabled" if I hit an existing file, "Forbidden You don't have permission to access xxx on this server." if I try a non existing target

Everything looks fine, other web sites work.

The default server 000-default.conf file contents the following:

DocumentRoot /var/www/html
<Directory /var/www/html>
  AllowOverride All
Require all granted
</Directory>

I setup an apache.conf for Munin like this:

Alias /munin /var/www/html/munin
DirectoryIndex index.html index.htm
<Directory /var/www/html/munin>
        AllowOverride All
        Require all granted
</Directory>

Thanks for help

Thu, 08/03/2017 - 23:53
Joe
Joe's picture

We disable the default site when Virtualmin is installed. It is prone to causing name-based hosts to fail in mysterious ways.

I'd recommend you setup whatever you wanted to be the "Default" site in its own virtual server. You could re-enable it with a2ensite 000-default, but it's likely to break other sites in confusing ways. Be sure to test your other sites thoroughly if you do turn it back on.

--

Check out the forum guidelines!

Tue, 08/22/2017 - 12:25
jvieille

Thanks!

Topic locked