Apache: sd.example.com and sd.example.com/sd both work - how to disable?

by kraligor   Last Updated August 26, 2019 10:04 AM - source

Sorry for the confusing title, I'll explain:

I've got a vhost set up for sd.example.com. DocumentRoot is htdocs/sd. Browsing to sd.example.com works as expected. But if I browse to sd.example.com/sd, I get the same result.

Is this expected behavior, and if so, how to disable it? I would have thought sd.example.com/sd would try to load htdocs/sd/sd, which should result in 404.

Happy to post my vhost confs if it isn't expected.

Cheers

Oli



Related Questions



Apache vhost using wrong DocumentRoot

Updated July 25, 2019 23:04 PM


Enabling 000-default.conf breaks namebased vhost

Updated September 09, 2016 09:01 AM

Apache Vhosts - subdomaining

Updated June 06, 2015 22:01 PM