I am currently experimenting with Cloudron and am considering switching from my managed hosting to a server with Cloudron.
Is there any way to have a domain point directly to a directory (e.g. in the surfer app)? On my current webspace I have static HTML files in some folders, which are a very simple web page. The domain simply points to the corresponding directory on my webspace. Is there something like that in Cloudron too?
On Cloudron you would probably install one app per such folder.
Alternatively I guess you could add apache settings in the lamp app to deliver specific folders based on domain https://docs.cloudron.io/apps/lamp/#apache-settings
@David-0 yes, if you cleverly configure things.
Cloudron is based on individual apps tied to domains or subdomains, not directories, however, what you're looking to do can be configured with a single Surfer app to host your HTML files in various directories, and then you can install the Proxy App on a bare domain to proxy to the Surfer App address/dir or "Upstream URI".
static.domain1.com/dir1 for the Surfer App with any number of /dir2, 3, 4, 5...
use docs.cloudron.io to see how to configure both surfer and the app-proxy
@David-0 Is your use case to have many directories named say static1, static2, static3 etc and have websites name
Currently, I have several directories on my webspace and a few domains with different TLDs pointing to each of them:
@robi What you're suggesting sounds interesting. I would definitely have a look into that. Thanks!