# How can I use different setting value for subdomain?

**URL:** <https://meta.discourse.org/t/how-can-i-use-different-setting-value-for-subdomain/249875>\
**Category:** Development\
**Created:** [December 26, 2022, 8:22am UTC](https://meta.discourse.org/t/how-can-i-use-different-setting-value-for-subdomain/249875 "2022-12-26T08:22:33Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Lai\_Chau\_Koi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lai_chau_koi/32/262307_2.png) [@Lai\_Chau\_Koi](https://meta.discourse.org/u/Lai_Chau_Koi)\
**Post date:** [December 26, 2022, 8:22am UTC](https://meta.discourse.org/t/how-can-i-use-different-setting-value-for-subdomain/249875/1 "2022-12-26T08:22:33Z")

</div>

Hello, every one! Merry Christmas!  
I have a discourse based forum and It has a several subdomains like these:  
Main Forum: [example.com](http://example.com)  
SubDomain: [A.example.com](http://A.example.com), [B.example.com](http://B.example.com), …  
All using same user and same topics and posts.  
However, I will set the different theme setting value for each domain.  
So I will modify the site\_setting table to save domain info with the setting values, and also modify the forum to check the domain and get different setting value from the database.  
Is this possible? To implement the feature, How can I do?  
Can I use one instance for main domain and subdomains all with one database?  
Please help me to solve these issues.  
Thank you.

---

_[View the full topic](https://meta.discourse.org/t/how-can-i-use-different-setting-value-for-subdomain/249875)._
