X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/e741fd1d0affaa05859561b5a3219ee055c10c07:/code/main.fcgi..dd0fb836097b7f9cc92f8d78c45f1bf2b59c3c1e:/code/auth.fcgi?ds=sidebyside diff --git a/code/main.fcgi b/code/auth.fcgi similarity index 74% rename from code/main.fcgi rename to code/auth.fcgi index b20cfeb..e48729a 100755 --- a/code/main.fcgi +++ b/code/auth.fcgi @@ -1,10 +1,10 @@ #!/usr/bin/python -"""Main FastCGI entry point for web interface""" +"""Main FastCGI entry point for authenticated web interface""" import cherrypy import os import sys -from main import InvirtWeb, InvirtUnauthWeb +from main import InvirtWeb dev = False base_dir = os.path.dirname(__file__) @@ -42,14 +42,10 @@ if __name__ == "__main__": } } - authApp = cherrypy.tree.mount(InvirtWeb(), - '/auth', - app_config) - authApp.merge(conf_file) - unauthApp = cherrypy.tree.mount(InvirtUnauthWeb(), - '/unauth', - app_config) - unauthApp.merge(conf_file) + app = cherrypy.tree.mount(InvirtWeb(), + '/', + app_config) + app.merge(conf_file) cherrypy.config.update(conf_file) if dev: