Adding ability to host the application in a subdirectory of the hostname.

Can you please check this?