Hmmm it was actually quite easy to fix. You don't even need a custom setting for it. I have now a jforum version that works in the root, in one subdirectory below and any other number of subdirectories below. The changes I made are below (it's the output of a diff between my version and the 2.1.6 version.. I assume you'll be able to parse it).
I also added the pattern
string to the 404 error. This changes the "The requested resource () is not available." message to "The requested resource (forums.error) is not available", which is a little bit more comprehendable and easier to debug.
Below are the changes to ActionServletRequest.java :
Changes to JForum.java:
(edit: little changes that make it somewhat more robust and gives a better description in case of 404)
PS: As you can see, the code even got a bit simpler ;)
[originally posted on jforum.net by anoko]