Beginners question: point Domain to directory?
-
Hello all,
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?
best
David -
-
@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".
For example:
static.domain1.com/dir1 for the Surfer App with any number of /dir2, 3, 4, 5...domain1.com for the App-Proxy App(s) pointing to static.domain.com/dir1, 2, 3, 4, 5
use docs.cloudron.io to see how to configure both surfer and the app-proxy
-
@girish said in Beginners question: point Domain to directory?:
@David-0 Is your use case to have many directories named say static1, static2, static3 etc and have websites name
static1.domain.com
,static2.domain.com
,static3.domain.com
?Currently, I have several directories on my webspace and a few domains with different TLDs pointing to each of them:
namedomain.de
,namedomain.org
,namedomain.info
etc.@robi What you're suggesting sounds interesting. I would definitely have a look into that. Thanks!
-
-