A couple of things I just came across; I searched the
archives to see if this was a known issue, but didn't come up with anything.
1.
If I have XEM (1.7.3) running as the ROOT application in Tomcat (webapps/ROOT), and a
wiki named "test": the "test" wiki works with xwiki.virtual.usepath=0
at
http://test.example.com:8180.
But if xwiki.virtual.usepath=1 and I use
http://example.com:8180/xwiki/wiki/test the page
layout is messed up and it looks like bits of the wrong skin are applied (I get the doves
in the header image, for example), and the login page also appears *within* the comments
tab.
http://example.com:8180/xwiki (the XEM) works fine, though.
http://example.com:8180/wiki/test does not work either, it redirects to the XEM login page
at
http://example.com:8180/bin/login/XWiki/XWikiLogin .
If I change XEM to run as non-ROOT (webapps/xwiki), everything works fine with
xwiki.virtual.usepath=1 and
http://example.com:8180/xwiki/wiki/test (no doves in the
header, grey sidebar instead of blue).
I don't know if this is a bug, or if using virtual.usepath=1 does not work with XWiki
as a ROOT Tomcat application.
It's a bug. Please open an issue on
2.
With XWiki set up as a non-ROOT application (webapps/xwiki) and virtual.usepath=1, after
restarting Tomcat, the first time I try to access
http://example.com:8180/xwiki/wiki/test
I am redirected to
http://example.com:8180/xwiki/bin/login/XWiki/XWikiLogin, the login
page for XEM not the "test" wiki! If I retype the address to the wiki again, it
works then.