<!--
  ++ Base configuration for eXist's URL rewriting. This file defines
  ++ all basic path mappings. A path can be mapped to a servlet or
  ++ the root of a directory or collection hierarchy.
  ++
  ++ This configuration is limited
  ++ to the XML-RPC, REST, Atom and WebDAV servlets, plus XQueryURLRewrite for the URL
  ++ handling. Use this configuration if you need a minimum setup with web content
  ++ stored in the db.
-->
<configuration xmlns="http://exist.sourceforge.net/NS/exist">
    <!-- REST interface -->
    <forward pattern="/rest" servlet="EXistServlet"/>
    <!-- XMLRPC servlet -->
	<forward pattern="/xmlrpc" servlet="org.exist.xmlrpc.RpcServlet"/>
    <!-- WebDAV interface -->
	<forward pattern="/webdav/" servlet="WebDAVServlet"/>
    <!-- Atom Publishing Protocol -->
    <forward pattern="/atom/" servlet="AtomServlet"/>
    
    <!-- RESTXQ -->
    <forward pattern="/restxq/" servlet="RestXqServlet"/>
    
    <!-- betterFORM resource-servlet -->
    <forward pattern=".*bfResources/" servlet="ResourceServlet"/>

    <!-- 
        ++ Main web application is served from the
        ++ database. URLs starting with /db are handled
        ++ by the REST servlet.
    -->
    <root pattern="/db.*" path="xmldb:exist:///db"/>
    <root pattern=".*" path="xmldb:exist:///db/www"/>
</configuration>
<!--
  ++ Base configuration for eXist's URL rewriting. This file defines
  ++ all basic path mappings. A path can be mapped to a servlet or
  ++ the root of a directory or collection hierarchy.
  ++
  ++ This configuration is limited
  ++ to the XML-RPC, REST, Atom and WebDAV servlets, plus XQueryURLRewrite for the URL
  ++ handling. Use this configuration if you need a minimum setup with web content
  ++ stored in the db.
-->
<configuration xmlns="http://exist.sourceforge.net/NS/exist">
    <!-- REST interface -->
    <forward pattern="/rest" servlet="EXistServlet"/>
    <!-- XMLRPC servlet -->
	<forward pattern="/xmlrpc" servlet="org.exist.xmlrpc.RpcServlet"/>
    <!-- WebDAV interface -->
	<forward pattern="/webdav/" servlet="WebDAVServlet"/>
    <!-- Atom Publishing Protocol -->
    <forward pattern="/atom/" servlet="AtomServlet"/>
    
    <!-- RESTXQ -->
    <forward pattern="/restxq/" servlet="RestXqServlet"/>
    
    <!-- betterFORM resource-servlet -->
    <forward pattern=".*bfResources/" servlet="ResourceServlet"/>

    <!-- 
        ++ Main web application is served from the
        ++ database. URLs starting with /db are handled
        ++ by the REST servlet.
    -->
    <root pattern="/db.*" path="xmldb:exist:///db"/>
    <root pattern=".*" path="xmldb:exist:///db/apps"/>
</configuration>
Correct path in standalone mode "xmldb:exist:///db/apps"
Correct path in standalone mode "xmldb:exist:///db/apps"

Launch ./exist-dev/bin/server.sh open http://localhost:8088/ see
"Document /db/www/ not found"
Was OK in 2.0 :
https://github.com/eXist-db/exist/blob/eXist-2.0.x/tools/jetty/etc/stand
alone/WEB-INF/controller-config.xml
