Answers.Body: <p>As long as the control panel is only accessible from one domain, I'd say you're within the license requirements. </p>
  
  <p>example.com and example.fr are different domains, and really no less different than example.com and myawesomesite.com. </p>
  
  <p>You should probably get confirmation from the Craft guys to be 100% sure though, you can contact them on support@craftcms.com if I'm not completely mistaken. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-06-19T15:59:12.167Z
Answers.LastActivityDate: 2017-06-19T15:59:12.167Z
Answers.UserDisplayName: megatrond
Answers.Body: <p>Using this technique to share the Craft <code>app</code> folder across different sites, results in each site having their own <code>config</code> folder. Since the <code>license.key</code> file that determines the licensing status of Craft lives in the <code>config</code> folder, setting up your sites like this will require a separate license for each site, as the <code>domain2</code> site won't have access to the <code>license.key</code> file in <code>domain1/config</code>.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-06-19T15:20:11.057Z
Answers.Text: I understand that but if the site is a subdomain of example.com then would duplicating the license key into the second domain that was a subdomain i.e. subdomain.example.com still work on one license? So using a duplicate of the license key for both. As they will both have the same public domain. Just one is a subdomain
Answers.UserDisplayName: mention79
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-06-19T15:30:37.217Z
Answers.Text: I'm not sure, you would need to test that to find out, but my guess is that it would report that the license was in use on another domain. I think the only 'supported' way of using one Craft license across multiple sub-sites is to use the method of creating custom locales for the sub-sites: https://craftcms.com/support/adding-additional-locales#creating-custom-locales. these can can have any URL you want, but they will all share the same control panel, database, plugins, etc.
Answers.UserDisplayName: Steve Rowling
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-06-19T15:34:27.617Z
Answers.Text: Thanks. I was trying to do it so that they don't end up with one huge shared database ideally. But might not be possible by the sounds of it. Have asked their support yesterday but haven't heard back yet.
Answers.UserDisplayName: mention79
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-06-19T15:17:17.147Z
Answers.LastActivityDate: 2017-06-19T15:17:17.147Z
Answers.UserDisplayName: Steve Rowling
Body: <p>I've setup multi domains with a single Craft 2 core folder using the <a href="https://craftcms.com/docs/php-constants" rel="nofollow noreferrer">Path Constants</a> methods in the docs. It's seems like a nice setup as I only have to update the core Craft files once when there's an update for all the domains. But under this setup all the domains have their own separate control panel and plugins but share the core Craft app folder.</p>
  
  <p><a href="https://i.sstatic.net/V0Zfg.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/V0Zfg.png" alt="enter image description here"></a></p>
  
  <p>The reason I've done this is that my client wants to be able to add micro sites in the same install as their main company site for specific marketing.</p>
  
  <p>However, the <a href="https://craftcms.com/support/license-enforcement" rel="nofollow noreferrer">licensing</a> of Craft says that: <code>You’re allowed to run a single Craft license on multiple domains (e.g. example.com and example.fr), so long as they’re all a part of the same website. In order to enforce that, Craft does have one technical limitation: you may only access Craft’s control panel from one public domain per Craft license.</code></p>
  
  <p>So am I right in assuming that my setup will be ok for example.com, example.co.uk, subdomain1.example.com, subdomain2.example.com, example.fr etc, but if the client wants to use a completely different domain name for the micro site like brilliantmarketingurl.com then the license won't be valid? As each site has it's own control panel and database with this setup.</p>
  
  <p>Is this the case and is this still applicable with Craft 3 introducing multi-sites support?</p>
  
  <p>Would appreciate some advice on this, as I need to discuss the potential implications with my client. Thanks.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-06-19T08:27:49.393Z
Comments.Text: Correct me if I'm wrong but It shouldn't be a problem aslong as the site is run under the same Control Panel.
Comments.UserDisplayName: Justin Dekkers
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-06-19T08:30:32.600Z
Comments.Text: Each site in this setup has separate control panel
Comments.UserDisplayName: mention79
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-06-19T08:39:16.330Z
Comments.Text: Well in that case I don't think its considered as multi-environment but as multiple different sites. You should check that with someone else because I'm not sure how that would work. Multi-environment is when they are all managed under the same CP as in you could log in on example.com/admin and manage anotherexample.com/ aswell
Comments.UserDisplayName: Justin Dekkers
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-06-19T08:50:58.757Z
Comments.Text: yes, multiple domains with separate control panels and databases, but shared Craft app folder is what I'm asking about, not muti-environment. Have edited question to clarify.
Comments.UserDisplayName: mention79
Tags: <multi-domain>
Title: Multi domains in Craft 2 licensing
ThreadText: # Multi domains in Craft 2 licensing
  
  (Asked by: username_0 on 2017-06-17)
  
  I've setup multi domains with a single Craft 2 core folder using the [Path Constants](https://craftcms.com/docs/php-constants) methods in the docs. It's seems like a nice setup as I only have to update the core Craft files once when there's an update for all the domains. But under this setup all the domains have their own separate control panel and plugins but share the core Craft app folder.
  
  [![enter image description here](https://i.sstatic.net/V0Zfg.png)](https://i.sstatic.net/V0Zfg.png)
  
  The reason I've done this is that my client wants to be able to add micro sites in the same install as their main company site for specific marketing.
  
  However, the [licensing](https://craftcms.com/support/license-enforcement) of Craft says that: `You’re allowed to run a single Craft license on multiple domains (e.g. example.com and example.fr), so long as they’re all a part of the same website. In order to enforce that, Craft does have one technical limitation: you may only access Craft’s control panel from one public domain per Craft license.`
  
  So am I right in assuming that my setup will be ok for example.com, example.co.uk, subdomain1.example.com, subdomain2.example.com, example.fr etc, but if the client wants to use a completely different domain name for the micro site like brilliantmarketingurl.com then the license won't be valid? As each site has it's own control panel and database with this setup.
  
  Is this the case and is this still applicable with Craft 3 introducing multi-sites support?
  
  Would appreciate some advice on this, as I need to discuss the potential implications with my client. Thanks.
  
  **Tags:** multi-domain
  
  > **Comments:**
  > **username_1**: Correct me if I'm wrong but It shouldn't be a problem aslong as the site is run under the same Control Panel.  
  > **username_0**: Each site in this setup has separate control panel  
  > **username_1**: Well in that case I don't think its considered as multi-environment but as multiple different sites. You should check that with someone else because I'm not sure how that would work. Multi-environment is when they are all managed under the same CP as in you could log in on example.com/admin and manage anotherexample.com/ aswell  
  > **username_0**: yes, multiple domains with separate control panels and databases, but shared Craft app folder is what I'm asking about, not muti-environment. Have edited question to clarify.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_3 on 2017-06-19. Score: 4 | Accepted answer
  
  Using this technique to share the Craft `app` folder across different sites, results in each site having their own `config` folder. Since the `license.key` file that determines the licensing status of Craft lives in the `config` folder, setting up your sites like this will require a separate license for each site, as the `domain2` site won't have access to the `license.key` file in `domain1/config`.
  
  > **Comments:**
  > **username_0**: I understand that but if the site is a subdomain of example.com then would duplicating the license key into the second domain that was a subdomain i.e. subdomain.example.com still work on one license? So using a duplicate of the license key for both. As they will both have the same public domain. Just one is a subdomain  
  > **username_3**: I'm not sure, you would need to test that to find out, but my guess is that it would report that the license was in use on another domain. I think the only 'supported' way of using one Craft license across multiple sub-sites is to use the method of creating custom locales for the sub-sites: https://craftcms.com/support/adding-additional-locales#creating-custom-locales. these can can have any URL you want, but they will all share the same control panel, database, plugins, etc.  
  > **username_0**: Thanks. I was trying to do it so that they don't end up with one huge shared database ideally. But might not be possible by the sounds of it. Have asked their support yesterday but haven't heard back yet.  
  
  ---
  
  ### Answer by username_2 on 2017-06-19. Score: 2
  
  As long as the control panel is only accessible from one domain, I'd say you're within the license requirements.
  
  example.com and example.fr are different domains, and really no less different than example.com and myawesomesite.com.
  
  You should probably get confirmation from the Craft guys to be 100% sure though, you can contact them on support@craftcms.com if I'm not completely mistaken.
  
  
  ---
  
  