Recommended project structure

Hi all. I’m new to Kirby and try to figure out the recommended directory structure for my project. Both starterkit as well as the getkirby website itself place /kirby and /site within the web root, and use .htaccess to make sure it’s not accessible. This certainly requires Apache and mod_rewrite.

Is there a recommended way to have only publicly visible assets under the webroot?

Would somebody care to share an example project, eg on github or else? Bonus points :slight_smile: for webpack integration or an elegant Docker approach (thinking about using PHP-FPM for Kirby and Nginx as a frontend to that).

Regards

Christian

Welcome!

You could start here: Configuration | Kirby CMS

There are also Kirby projects on GitHub with such a setup somewhere.

1 Like