The problem with Main Wiki descriptor has very interesting behaviour.
in xwiki.cfg gives following:
- XWiki runs with IP based URL fine
- XWiki gives "wiki does not exist" on domain based URL
Creation Wiki.XWikiServerXwiki page + adding object of XWiki.XWikiServerClass to it solves the problem if alias is set up.
Main Wiki started to run on domain based URLs correctly.
The proposal is to bundle Wiki.XWikiServerXwiki page by default with XE (or Wiki manager) not to confuse users.