See this article:
I’d strongly recommend using a subdomain instead of subpath. Much simpler, avoids these problems.