VirtualHostMonster and FTP
I'm able to add mappings in VirtualHostMonster to point *.mysite.com to /Sites/MySite successfully as far as HTTP goes. I'm wondering if there's any way to get it working with FTP. I still have to ftp to mysite.com and change the dir to /Sites/MySite. My mappings are like this: *.mysite.com/Sites/MySite I'm not running zope behind Apache or IIS, just the straight zope server. Thanks, Luke Duff
I saw this from the folks at FreeZope, though I've not tried it: The trick is to rewrite appropriately in an access rule based on the supplied username. The relevant code that we use for this is: if not REQUEST.environ.has_key('HTTP_HOST'): if len(stack) > 0 and stack[-1] == 'ZopeHosting': return if REQUEST.other.has_key('__ac_name'): user = string.lower(REQUEST.other['__ac_name']) virtual_dir = "%s.freezope.org" % user if hasattr(container.ZopeHosting.freezope, virtual_dir): stack.extend([virtual_dir, 'freezope', 'ZopeHosting']) return
I'm able to add mappings in VirtualHostMonster to point *.mysite.com to /Sites/MySite successfully as far as HTTP goes. I'm wondering if there's any way to get it working with FTP. I still have to ftp to mysite.com and change the dir to /Sites/MySite.
My mappings are like this: *.mysite.com/Sites/MySite
I'm not running zope behind Apache or IIS, just the straight zope server.
Thanks, Luke Duff
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (2)
-
Chris Muldrow -
Luke Duff