Humm forum.link is overwriten in jforum-custom.conf and this is not the heart of the problem but just detect the realcontext path as we can do in php with X_FORWARD_HOST.
Sure I've to read more
doc on HttpServlet interface ...
[originally posted on jforum.net by redhand]