Hi, I'm trying to sort out the relative URLs of some virtually hosted Zope sites. In a nutshell, there some sites visible to the outside world as www.site1.com, www.site2.com, etc These are in /site1, /site2, etc folders off Zope's root. The redirection is done using Apache's Proxy method, but I need to sort out BASE, URL, and absolute_url() type things, which I'm doing using the following Site Access Rule: <dtml-in virtual_hosts> <dtml-if "REQUEST.environ['HTTP_HOST']==_['sequence-item']"> <dtml-call "REQUEST.set('SiteRootPATH','/')"> </dtml-if> </dtml-in> and blank SiteRoot objects in /site1, /site2, etc. The only problem is that since I did this, I get the following whenever I try to FTP into Zope (which used to work fine and which we use quite heavily for content editing with Dreamweaver): 550 Could not list directory. Why do I get this? How do I stop it happening? (preferably without stopping using SiteAccess...) If anyone has any experience with this, I'd appreciate the help... Chris
----- Original Message ----- From: "Chris Withers" <chrisw@nipltd.com>
The only problem is that since I did this, I get the following whenever I try to FTP into Zope (which used to work fine and which we use quite heavily for content editing with Dreamweaver):
550 Could not list directory.
Why do I get this? How do I stop it happening? (preferably without stopping using SiteAccess...)
Ah. I'll check this out today. Cheers, Evan @ 4-am & digicool
Evan,
This is news to me! Prevents how? What are the symptoms, and does it matter what the Rule does?
I don't think it matters what the rule does, it's just enough to have one set. It does, however, matter where it is. I had to remove the site rule in the root folder so people could get on with their work, but I left one in one of the virtually hosted sites. FTP access now works fine except in the folder with the Access Rule in it. That said, that folder is a Squishdot site and so I don't think it was accessible from FTP anyway... Hope this information helps :-) Chris
Hi! I thought I'd forward this to the list in case it helps anyone else: If you want to use FTP with SiteAccess then you'll need to add the following to SiteRoot.py, after line 124 (at the end of the SiteRoot class), and at a similar place in AccessRule.py: def get_size(self): '''Make FTP happy''' return 0 If anyone knows WHY this makes it work, please let us all know! :-) cheers, Chris
participants (2)
-
Chris Withers -
Evan Simpson