# Multiple sites with 1 installation

**URL:** <https://forum.getkirby.com/t/multiple-sites-with-1-installation/17674>\
**Category:** Questions\
**Tags:** v3\
**Created:** [March 23, 2020, 11:45pm UTC](https://forum.getkirby.com/t/multiple-sites-with-1-installation/17674 "2020-03-23T23:45:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![hvsrmusic](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/hvsrmusic/32/2722_2.png) [@hvsrmusic](https://forum.getkirby.com/u/hvsrmusic)\
**Post date:** [March 23, 2020, 11:45pm UTC](https://forum.getkirby.com/t/multiple-sites-with-1-installation/17674/1 "2020-03-23T23:45:37Z")

</div>

Hi, I’ve read how to run different sites with 1 kirby installation and within a couple of hours I’ve made a prototype. Questions:

- I’m going to use one asset folder for all the sites (so ‘asset’ folder will be on the same lavel of ‘kirby’ folder): I’m aware that the question might sound a bit weird but - is this a safe/wise solution?
- Is there a way to do the same with a few plugins?
- if I want to have some basic functions (php functions) available for all the sites, shoul I put them in the index file?

Thank you  
Francesco

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [March 24, 2020, 12:20am UTC](https://forum.getkirby.com/t/multiple-sites-with-1-installation/17674/2 "2020-03-24T00:20:38Z")

</div>

> [@hvsrmusic](#):
>
> I’m going to use one asset folder for all the sites

The `/assets` folder must be publicly available. So if your `/kirby` folder is above the web root for security reasons, you can’t put the as`/assets` folder there. If all folders are in the web root anyway, it doesn’t make a difference.

> [@hvsrmusic](#):
>
> Is there a way to do the same with a few plugins?

Do you mean, if you don’t share the plugins folder, but only some plugins?

---

<div class="post-metadata">

**Author:** ![hvsrmusic](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/hvsrmusic/32/2722_2.png) [@hvsrmusic](https://forum.getkirby.com/u/hvsrmusic)\
**Post date:** [March 24, 2020, 8:18am UTC](https://forum.getkirby.com/t/multiple-sites-with-1-installation/17674/3 "2020-03-24T08:18:38Z")

</div>

Hi @texnixe  
this is my folder structure. “es” and “rs” are a couple of sites. As you may see, assets and kirby are on the same level. This is what i meant.

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/6/698db15c9849dc6412d52e56459c6a17ea54886d.png)

The code:  
 ![image](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/8/886a2cdf2fa1390205ce6b9a95959d02dda3d196.png)

About the plugins: it’s ok to share all the plugins. I’m wondering what can I decide to share, it’s a very powerful feature.

Thanks

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [March 24, 2020, 9:12am UTC](https://forum.getkirby.com/t/multiple-sites-with-1-installation/17674/4 "2020-03-24T09:12:42Z")

</div>

> [@hvsrmusic](#):
>
> I’m wondering what can I decide to share,

From what perspective?

Are you on shared hosting or your own server/VPS?

---

<div class="post-metadata">

**Author:** ![hvsrmusic](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/hvsrmusic/32/2722_2.png) [@hvsrmusic](https://forum.getkirby.com/u/hvsrmusic)\
**Post date:** [March 24, 2020, 3:41pm UTC](https://forum.getkirby.com/t/multiple-sites-with-1-installation/17674/5 "2020-03-24T15:41:23Z")

</div>

I’m working for a Foundation that have different web properties (sites). Every site has its own domain, but I’m trying to understand how to share a certain amout of code among the sites. No shared hosting.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [March 24, 2020, 3:49pm UTC](https://forum.getkirby.com/t/multiple-sites-with-1-installation/17674/6 "2020-03-24T15:49:29Z")

</div>

Then consider moving everything that doesn’t have to be publicly accessible out of the web root for more security.

> **[Configuration](https://getkirby.com/docs/guide/configuration#custom-folder-setup__public-folder-setup)**
>
> Almost every aspect of Kirby can be controlled and configured to do exactly what you need it to do.

---

<div class="post-metadata">

**Author:** ![hvsrmusic](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/hvsrmusic/32/2722_2.png) [@hvsrmusic](https://forum.getkirby.com/u/hvsrmusic)\
**Post date:** [March 24, 2020, 4:27pm UTC](https://forum.getkirby.com/t/multiple-sites-with-1-installation/17674/7 "2020-03-24T16:27:59Z")

</div>

I’m touched.  
Soooooo powerful!
