Added logic for default pages in document roots