multiple static sites on one app
-
I understand GitHub Pages and Surfer can only point domains at the root, so they host one 'site' at a time. Is there a best practice for hosting multiple static sites on a single Cloudron app? Is it possible to map multiple domains to separate directories in Surfer?
In the topics Best App to Set up Static websites? and Best Choice for Static Website I didn't see something similar.
-
@girish said in multiple static sites on one app:
A "hack" if you really really really want a single app would be to use the LAMP app. You can add any number of alias domains. After that , yu have to then configure apache there to serve up different folders based on the request domain.
Indeed, though you need to have a bit of Apache server knowledge and you can configure all your virtual hosts inside the Apache configuration file, which is named app.conf on Cloudron.
As a matter of fact DO offers a pretty decent Apache configuration tutorial. It's relatively easy, you don't need to know everything, just how to host multiple static pages on once instance.
Have fun.