Use the document root, if it's set.
Remove the ROOT webapp on installation.