- app = cherrypy.tree.mount(InvirtWeb(),
- '/',
- {'/': {'tools.staticdir.root': static_dir,
- 'tools.invirtwebstate.on': True},
- '/static': {'tools.staticdir.on': True,
- 'tools.staticdir.dir': static_dir}
- })
- app.merge(conf_file)
+
+ app_config = {
+ '/': {
+ 'tools.invirtwebstate.on': True,
+ },
+ '/static': {
+ 'tools.staticdir.root': static_dir,
+ 'tools.staticdir.on': True,
+ 'tools.staticdir.dir': static_dir,
+ }
+ }
+
+ authApp = cherrypy.tree.mount(InvirtWeb(),
+ '/auth',
+ app_config)
+ authApp.merge(conf_file)
+ unauthApp = cherrypy.tree.mount(InvirtUnauthWeb(),
+ '/unauth',
+ app_config)
+ unauthApp.merge(conf_file)