On an installation I have a case of HostNodeMap where the address points to a subsite:
my.hostnode.address -> /app
The main application in this subsite is also mounted under a site node named "app", so that its path would be "/app/app" on the main subsite and just "/app" on the host node.
Now, due to the code we can see here, it seems this use-case is not supported on OpenACS: request-processor-procs.tcl (lines 577–604)
The original contribution was in commit f79adf7
Whenever we try to request a URL under the host node, that is the same or has the root in the prefix, this will be stripped and transformed into "/" and we will be redirected. On my installation, this results in a redirection loop, as /app is also configured as the IndexRedirectURL on the subsite.
At first look, this seems to me the kind of code we should consider cleaning up... To speculate over prefixes in the request processor is tricky enough, and if one uses the wrong URL to access something under a host node map should simply get a 404 in my opinion.
Has any of you some more context or remarks?