SiteAccess - Virtual Hosting
Evan is to be applauded for the wonderful docs he provided with SiteAccess; however, I still have a problem. The DTML Method he listed under Example 1: <dtml-call "REQUEST.path.append('mysite')"> which is to be placed in the root folder with the id set as AccessRule works great. : ) Although everything within the mysite folder is working correctly, I am immediately placed into the mysite folder when I access Zope. This means I cannot see my Zope root at all. Did I miss something somewhere? If my zope is sitting at www.mysite.com:8080 but I want to also have www.mysite.com:8080/my2ndsite and www.mysite.com:8080/my3rdsite - how do I do this? Root Folder Control Panel ZCatalog MySite Folder index_html neatstuff index_html My2ndsite Folder index_html neatstuff index_html My3rdsite Folder index_html neatstuff index_html How can I set it up so that if I just enter www.mysite.com:8080/manage I get into the Root Folder, but if I enter anything else, I'm directed to the correct folder? I tried the DTML Method mentioned in Evan's example 2, but that didn't work - in fact I was blocked out of everything then... <dtml-in "[('mysite', 'mysite'), ('my2ndsite', 'my2ndsite'), ('my3rdsite', 'my3rdsite')]"> <dtml-if "HTTP_HOST[-_.len(_['sequence-key']):]==_['sequence-key']"> <dtml-call "REQUEST.path.append(_['sequence-item'])"> <dtml-return "0"> </dtml-if> </dtml-in> Can anybody understand my ramblings? Thanks in advance! Liz Pelletier
On Wed, Oct 27, 1999 at 09:48:26PM -0700, Liz wrote:
Evan is to be applauded for the wonderful docs he provided with SiteAccess; however, I still have a problem. The DTML Method he listed under Example 1: <dtml-call "REQUEST.path.append('mysite')"> which is to be placed in the root folder with the id set as AccessRule works great. : ) Although everything within the mysite folder is working correctly, I am immediately placed into the mysite folder when I access Zope. This means I cannot see my Zope root at all. Did I miss something somewhere?
I had trouble with this too and talked to Evan about it. (No, not myself, the other Evan!) <dtml-unless "REQUEST.path[0][:6]=='manage' or REQUEST.path[0][:3]=='add'"> <dtml-call "REQUEST.path.append('mysite')"> </dtml-unless>
Can anybody understand my ramblings?
I think so. Grin. Hope this helps...
Thanks in advance! Liz Pelletier
Evan "The other Evan" Gibson. -- Evan ~ThunderFoot~ Gibson ~ nihil mutatem, omni deletum ~ May the machines watch over you with loving grace.
Evan Gibson wrote:
On Wed, Oct 27, 1999 at 09:48:26PM -0700, Liz wrote:
Evan is to be applauded for the wonderful docs he provided with SiteAccess;
<bow> Early adopters of SiteAccess may raise an eyebrow at this, though; Before v0.1.2 there were essentially no docs and everyone had to contact me to do anything :-)
Although
everything within the mysite folder is working correctly, I am immediately placed into the mysite folder when I access Zope. This means I cannot see my Zope root at all. Did I miss something somewhere?
You've told SiteAccess to host your entire site out of that folder, and that's what it will do. You need some way to spell 'this is a raw access URI'.
<dtml-unless "REQUEST.path[0][:6]=='manage' or REQUEST.path[0][:3]=='add'"> <dtml-call "REQUEST.path.append('mysite')"> </dtml-unless>
This is one way, making any management method a raw URI (although it really should have "REQUEST.path and (... or ...)" to handle empty paths correctly, I think). Another would be to define an alternate subdomain name for raw access, and test for that, or add a prefix such as 'Zope'. Both of these methods are mentioned at the bottom of http://zope.org/Members/4am/SiteAccess/vhosting Evan Simpson
participants (3)
-
Evan Gibson -
Evan Simpson -
Liz