Ignore:
Timestamp:
Dec 20, 2009, 9:48:06 PM (15 years ago)
Author:
broder
Message:

Use separate fcgi files for the authed and unauthed site.

This allows both of them to be mounted on / in their respective
CherryPy? apps, which in turn eliminates any discrepancy between
"internal URLs" and "external URLs".

File:
1 moved

Legend:

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

    r2728 r2729  
    11#!/usr/bin/python
    2 """Main FastCGI entry point for web interface"""
     2"""Main FastCGI entry point for authenticated web interface"""
    33
    44import cherrypy
    55import os
    66import sys
    7 from main import InvirtWeb, InvirtUnauthWeb
     7from main import InvirtWeb
    88
    99dev = False
     
    4343        }
    4444                   
    45     authApp = cherrypy.tree.mount(InvirtWeb(),
    46                                   '/auth',
    47                                   app_config)
    48     authApp.merge(conf_file)
    49     unauthApp = cherrypy.tree.mount(InvirtUnauthWeb(),
    50                                     '/unauth',
    51                                     app_config)
    52     unauthApp.merge(conf_file)
     45    app = cherrypy.tree.mount(InvirtWeb(),
     46                              '/',
     47                              app_config)
     48    app.merge(conf_file)
    5349    cherrypy.config.update(conf_file)
    5450
Note: See TracChangeset for help on using the changeset viewer.