Ignore:
Timestamp:
Sep 28, 2009, 3:04:32 AM (15 years ago)
Author:
quentin
Message:

Unauthenticated front page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package_branches/invirt-web/cherrypy/code/main.fcgi

    r2415 r2484  
    55import os
    66import sys
    7 from main import InvirtWeb
     7from main import InvirtWeb, InvirtUnauthWeb
    88
    99dev = False
     
    2626         })
    2727    app.merge(conf_file)
     28    unauthApp = cherrypy.tree.mount(InvirtUnauthWeb(),
     29                                    '/unauth',
     30                                    {'/': {'tools.invirtwebstate.on': True}})
     31    unauthApp.merge(conf_file)
    2832    cherrypy.config.update(conf_file)
    2933
     
    3539        cherrypy.engine.start(blocking=False)
    3640        from flup.server.fcgi import WSGIServer
    37         server = WSGIServer(app)
     41        server = WSGIServer(cherrypy.tree)
    3842        server.run()
Note: See TracChangeset for help on using the changeset viewer.