is path isDirectory, serve directory/index.html