support subdir in baseurl, and use that for the local server too