Apache resolves all URLs to default

Posted by Ariel on Server Fault See other posts from Server Fault or by Ariel
Published on 2014-05-31T12:42:40Z Indexed on 2014/05/31 15:32 UTC
Read the original article Hit count: 172

Filed under:
|
|

I am using Apache 2.2 on a Debian-based distro. For some reason, all URLs are directed to the default index. No error or anything. That means: example.domain.com goes to domain.com. "example" can be just anything. In the default Vhost file (/etc/apache2/sites-available/default) I've added:

ServerName: www.domain.com

But it still keeps that odd behaviour. Please let me know how to enable the common, default behaviour. I haven't changed anything by the way, this is since installation.

Update: Following SvW's answer, I am looking for a way to force Apache not to accept any URL, only those specified as VirtualHosts.

© Server Fault or respective owner

Related posts about apache-2.2

Related posts about debian