Handle subdir prefixed servers correctly