Answers.Body: <p>You can set the <a href="https://craftcms.com/docs/php-constants#craft-config-path" rel="nofollow noreferrer">CRAFT_CONFIG_PATH</a> PHP constant on a per site basis so each of the sites will get their own <code>craft/config</code> folder (and therefore their own <code>license.key</code> files).</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-06-11T19:13:31.370Z
Answers.Text: Update for Craft 3: There's now a dedicated PHP constant you can set for this: [CRAFT_LICENSE_KEY_PATH](https://docs.craftcms.com/v3/config/php-constants.html#craft-license-key-path)
Answers.UserDisplayName: Mike Pierce
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-26T23:21:08.843Z
Answers.LastActivityDate: 2017-10-26T23:21:08.843Z
Answers.UserDisplayName: Brad Bell
Body: <p>I have two different domains that are both being deployed from the same Github repo. Domain A has a Craft license. Domain B needs a Craft license. I don’t want to transfer from Domain A to Domain B but they are both reading from the same <code>craft/config/license.key</code> file. </p>
  
Tags: <license>
Title: Two Domains. One Repo. Need Second License
ThreadText: # Two Domains. One Repo. Need Second License
  
  (Asked by: username_0 on 2017-10-26)
  
  I have two different domains that are both being deployed from the same Github repo. Domain A has a Craft license. Domain B needs a Craft license. I don’t want to transfer from Domain A to Domain B but they are both reading from the same `craft/config/license.key` file.
  
  **Tags:** license
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-10-26. Score: 1 | Accepted answer
  
  You can set the [CRAFT\_CONFIG\_PATH](https://craftcms.com/docs/php-constants#craft-config-path) PHP constant on a per site basis so each of the sites will get their own `craft/config` folder (and therefore their own `license.key` files).
  
  > **Comments:**
  > **username_2**: Update for Craft 3: There's now a dedicated PHP constant you can set for this: [CRAFT_LICENSE_KEY_PATH](https://docs.craftcms.com/v3/config/php-constants.html#craft-license-key-path)  
  
  ---
  
  