Dynamic subdomains based on folders


I have a HestiaCP installation with nginx+php-fpm (without apache) and I spent many hours trying to configure dynamic subdomains.

So I have some domain example.ltd and in public_html I have many folders, so I want to have each folder being available under folder1.example.ltd, folder2.example.ltd etc… not redirect, but the complete availability under subdomain (with GET-parameters ex.).

For those subdomain I don’t really care about SSL, so it doesn’t matter.

Is it generally possible? Tried many nginx-configurations from stackoverflow and google - nothing.

I would be really happy if the solution really exists :slight_smile: