Support path mapping and automatically serve index.html on root