Staging-domains & License key & Control panel access #10831
Replies: 3 comments 3 replies
-
For the first part of your question: We run a similar setup, but everything is under the company domain, not under the client's (eg: project.staging.agency.tld) |
Beta Was this translation helpful? Give feedback.
-
Nope - we split on the "word boundary" which includes the hyphen, so https://github.com/pixelandtonic/craftnet/blob/master/src/cms/CmsLicenseManager.php#L128-L131
All Craft licensing cares about is the root domain (since subdomains are included for "free" on a single Craft installation). |
Beta Was this translation helpful? Give feedback.
-
Is this still an option? If so, where & how? Thanks! |
Beta Was this translation helpful? Give feedback.
-
I’ve built a lot of CraftCMS websites over the last years, but it’s only when new projects arrive, which were set up differently, that I realize I’m not sure I understand all the intricacies of the licensing model correctly and want to make sure I’m doing everything in a legal way.
First of all: All of the websites mentioned here that are live have a license attached to them via id.craftcms.com and their primary site url is bound to that license.
Staging sites/domains
Most of these websites have staging clones that are not hosted on the client’s IT via a subdomain, but on our own (or our partner’s) webservers, and are password-protected („non-public“). Their domains are always something like
clientproject.our-staging-server.com
.We’re seeing warning messages in the staging sites’ control panel that
The license in config/license.key belongs to primary-public-domain.com
. This is because none of Craft’s non-public domain requirements are met.I was under the impression that I could ignore these messages, as long as there is a license attached to that staging site’s public sibling. Is that the case, or do we have to change our setup to make sure that our staging sites are hosted on „non-public“ domains? For example, would adding the word „stage“ to their subdomains work? Otherwise we would have to buy a new domain for each staging site and add a
stage
subdomain to it (I would like to avoid that for obvious reasons).Restricted control panel access
Unrelated: On multi-site installations, we can log into the control panel by adding
/admin
to the site URL. In Knowledge Base articles, it is stated that you can only access the control panel on a single public domain. Is this a legal restriction? And if so, can I enforce it via the projects configuration? Because technically, I can visit the control panel from all site URLs inside of an installation.Beta Was this translation helpful? Give feedback.
All reactions