we are working on packaging of GNU social software https://github.com/gustavomrfz/gnusocial_ynh
We want to know if it is possible to install an app on a subdomain, we want to install GNU social on social.domain.tld
We read this Creating subdomains in Yunohost? but it not clear if that is possible.
Thanks for your support!
A yunohost administrator can create a subdomain via the web admin. Next this operation he could be able to set up a yunohost app on this subdomain.
So generally the administrator makes a choice about the subdomain name. If you really want force the subdomain to be named “social”. You could create directly the subdomain with the install script of the yunohost app. But this way is not the standard way, all the other apps let the administrator determine the subdomain name.
Thanks for your reply! where in the web admin can I create a subdomain? I don’t find it
- Login the webadmin https://YOURSERVER/yunohost/admin/
- Click on “Domain”
- Click on “Add a domain”
- Click on “I already have a domain”
- Write “social.YOURDOMAIN.TLD”
- Click on add to validate the creation
You need to configure your DNS server properly to redirect the subdomain to your SERVER. You can use a wildcard to redirect all subdomain to your yunohost server.
Here how we finally did the installation of our app on a sub-domain https://github.com/gustavomrfz/gnusocial_ynh/blob/master/scripts/install All your comments are welcome!