read this http://webpy.org/quick_vhosting_hack
On Dec 8, 11:42 am, TuxPirate <[EMAIL PROTECTED]> wrote:
> Does this looks like a reasonable solution for handling different
> sites?
>
> urls = (
> '/.*', 'LoadSite'
> )
>
> class LoadSite:
> def GET(self):
> env = web.ctx.env
> site = env['SERVER_NAME']
> root = os.path.join('/opt/webpy/main', site)
> if not os.path.isdir(root):
> return
> sys.path.insert(0, root)
> from siteconf import *
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---