<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>

CC BY-SA 4.0
2019-06-11T19:13:31.370Z
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)
Mike Pierce
CC BY-SA 3.0
2017-10-26T23:21:08.843Z
2017-10-26T23:21:08.843Z
Brad Bell
<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>

<license>
Two Domains. One Repo. Need Second License
# 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)  

---

