def check_site_config_entries_in_app_config(self):
        """Check for mounted Applications that have site-scoped config."""
        for sn, app in cherrypy.tree.apps.items():
            if not isinstance(app, cherrypy.Application):
                continue

            msg = []
            for section, entries in app.config.items():
                if section.startswith('/'):
                    for key, value in entries.items():
                        for n in ('engine.', 'server.', 'tree.', 'checker.'):
                            if key.startswith(n):
                                msg.append(
                                    '[%s] %s = %s' % (section, key, value),
                                )
            if msg:
                msg.insert(
                    0,
                    'The application mounted at %r contains the '
                    'following config entries, which are only allowed '
                    'in site-wide config. Move them to a [global] '
                    'section and pass them to cherrypy.config.update() '
                    'instead of tree.mount().' % sn,
                )
                warnings.warn(os.linesep.join(msg))
Check for mounted Applications that have site-scoped config.
cherrypy/_cpchecker.py