Yellow, After testing SiteAccess for about 100 times... i still can't get zope to serve multiple virtual hosts and domains... I would like very much that someone with a successful siteaccess instalation in a real production site could get in touch with me and try to get this working. please don't tell me to read the siteaccess how-to because that didn't work. thanks ppl --- Hugo Ramos - hramos@zopers.org ZopersORG - http://www.zopers.org
Not sure what your problem is, since you didn't mention anything you did. If you have a IRC client got to irc.openprojects.net #zope and I might be able to help you there. I have it running (no production yet) behind apache's proxypass -Th On 18 Jun, Hugo Ramos wrote:
Yellow,
After testing SiteAccess for about 100 times... i still can't get zope to serve multiple virtual hosts and domains... I would like very much that someone with a successful siteaccess instalation in a real production site could get in touch with me and try to get this working.
please don't tell me to read the siteaccess how-to because that didn't work.
thanks ppl
--- Hugo Ramos - hramos@zopers.org ZopersORG - http://www.zopers.org
Hugo Ramos wrote:
After testing SiteAccess for about 100 times... i still can't get zope to serve multiple virtual hosts and domains... I would like very much that someone with a successful siteaccess instalation in a real production site could get in touch with me and try to get this working.
I just recently asked this question and got it to work. This setup works if you have several subdomains 'sitea.domain.tld' and 'siteb.domain.tld' etc. It may have to be modified to work with other setups - don't ask me how! - create folders sitea, siteb, and so on in your root zodb directory - put a siteroot in each folder, leaving all fields except name blank - make a dtml method in the root directory called virtual_hosts or something, consisting of the following script: <dtml-comment> Get subdomain: </dtml-comment> <dtml-let hostname="_.string.join(_.string.split(_.string.split(HTTP_HOST,':')[0], '.')[0], '')"> <dtml-comment> Is there a folder named as this subdomain? </dtml-comment> <dtml-try> <dtml-if "[hostname]"> <dtml-comment> Set logical root: </dtml-comment> <dtml-call "REQUEST.set('SiteRootPATH', '/')"> <dtml-comment> Add physical root: </dtml-comment> <dtml-call "REQUEST.path.append(hostname)"> </dtml-if> <dtml-except KeyError> <dtml-call "RESPONSE.redirect('http://www.domain.tld/site_not_found')"> </dtml-try> </dtml-let> - Create a Site Access Rule in the root folder and have it call this method. This should work, but don't ask me how (credit goes to Ethan Mindlace Freeman, who gave me these instructions). Good luck! -------------- Building highways to reduce traffic is like loosening your belt to reduce obesity.
Alex Gould wrote:
Hugo Ramos wrote:
After testing SiteAccess for about 100 times... i still can't get zope to serve multiple virtual hosts and domains...
[...]
I just recently asked this question and got it to work. This setup works if you have several subdomains 'sitea.domain.tld' and 'siteb.domain.tld' etc. It may have to be modified to work with other setups - don't ask me how!
but please do look at Evan's excellent documentation, where he does cover several examples. http://www.zope.org/Members/4am/SiteAccess/info
- create folders sitea, siteb, and so on in your root zodb directory - put a siteroot in each folder, leaving all fields except name blank - make a dtml method in the root directory called virtual_hosts or something, consisting of the following script: <dtml-comment> Get subdomain: </dtml-comment>
[snip] quick note: Access rules don't care if you leave out the dtml-comment tags.
This should work, but don't ask me how (credit goes to Ethan Mindlace Freeman, who gave me these instructions). Good luck!
it's Fremen, as in spice, giant worms, arrakis ... :-) ~ethan
participants (4)
-
Alex Gould -
ethan mindlace fremen -
Hugo Ramos -
thomas@hentschel.net