New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(blocking) multiple domains per site #45
Comments
Multiple sites could be implemented with the notion of site alias where the "site_id" (used to secure finding nodes in shared hosting) parameter would be shared. Things to redefine in the site alias:
Things that could go wrong:
First steps:
|
In your comment, I have trouble following what is meant by each instance of the word "site". Maybe call one domain_id? root node: Hm, I haven't thought about different anonymous user groups. That would be to optionally make nodes available only on some domains? Do we need to force a skin? |
I think we must move on with this by changing the minimum amount of things at a time. Let's first create an alias that with just a different host and root node and see how it goes. |
That would be great. Maybe we don't even need to mess with the root node to begin. More important may be to make the requested domain available for if clauses in zafu templates. Then these can be used to render the same nodes differently when it is required. |
Page caching would have to be separate for each domain, maybe that was the reason you refered to this as alias "site" from the zena perspective? |
The first implementation supports root node setting and some custom authorization options. Blog post on the new feature: http://zenadmin.org/888. |
Wow, thanks!!! perfect, trying this out is the next thing on the my zena list then! I may miss this later: the post mentions “orphan node”, but not how/where it gets configured. |
The 'orphan' node cannot be defined: it is the true root of the data (what "root" used to be). |
Ok, I may then only ask where is the root node configured, if I don't find it in the the opened edit form for host and alias.host (not shown in the screenshot). ;-) Thanks again. |
The wording keeps confusing me ;-) Still to overcome: As far as I know, it is not be possible to rename or delete an existing domain/site, which prevents to recreate it as an alias to another site. |
"Owner" instead of user is fine. I agree, I will rename the "root" node "home" in 1.2.5 and add necessary scoping in querybuilder and such so that |
That is great. When you are renaming maybe also consider to rename the "Sites" configuration in the admin panel (within a site) into "Domain" and "alias-domain" configuration, to differenciate it from creating the "Sites" (different node spaces) with rake or possibly the admin interface for superuser accounts. |
Two remaining issues:
My suggestion would be to introduce new scopes like "in home_site", to fetch from everything below the home node, and "in root_site", to fetch from everything below the root node. And make the "in site" scope return the same as "in home_site", i.e. return nodes from anywhere below the current site's home. For a master site where the home node equals the root node, "in site" then continues to equal "everything below the root node". Whereas for alias sites with different home node "in site" is confined to the alias's home. |
solved in 1.2.9 |
Alias domains have been implemented and are now working well.
The remaining usage issues have been reported in this comment:
#45 (comment)
Multiple domains per site are rather common, and usefull for different things. One example is a security relevant use case: A 1:1 mapping (simple alias, same skins etc.) of a ssl domain like https://mywebaccount.ssl-hoster-domain.tld -> to one's regular www.example.org site, together with allowing logins only on the not-advertised SSL domain.
But more generally, multi-domains should allow that different frontend websites (URLs) that may have distinct appearance and functionallity, can share common node data.
Ideally, this could be as simple as alowing to add additional "sites" (more precisely domains) to the "Sites" table in the admin pages. (There is currently no "add" button under the "Sites" table.)
Zena would have perfect support for multiple domains per site with two fields in the "Sites" table (rather Domains table) that allow to assign a default skin and root node for each domain, and making the domain that the visitor requested available for "if" clause tests in zafu emplates.
The text was updated successfully, but these errors were encountered: