-1

The Apache2 Debian Default Page is displayed when I navigate my browser to a domain name pointing to my web server even though I have disabled all the sites/VirtualHosts on my web server. What I expect to see is a "Cannot connect to the server" message.

In other words: Why is Apache displaying the default page when no VirtualHosts are enabled.

The browser is not loading the page from the cache.

I'm using Apache 2.4.33

Edit (when closed as duplicate):

This question is not a duplicate because their VirtualHost files are not disabled.

This answer does answer my question but the answer is to a broader question. I suggest it would be useful to have a similar answer here since my question is more direct and would help others who are wondering the same thing.

1 Answers1

1

Apache always has a default server that will answer and you can't turn that off (if you try to remove the relevant directives, Apache will fail to start because it's not a valid config file then). If you don't want it to serve requests, you must disable the service (aka stop Apache).

It wouldn't make any sense at all to have a service running that can't do anything.

Sven
  • 100,763