I’m new to this OS and am rather lost trying to configure virtual hosts for Nextcloud and SOGo. I am using the cockpit interface to complete the configuration, but I am only getting a welcome page when I attempt to access the virtual host from a browser.
I just need the hosts to point to the respective resources in /usr/share/.
Can someone please give me some pointers? I can provide whatever information is required from my system.
Root folders for website are in /var/lib/nethserver/vhosts iirc correctly. You have a link in the vhost list page to copy and use it in the terminal. Any other path needs you write yourself your vhost conf manually
AFAIK, you do not need - and should NOT use vhosts for built in Applications of NethServer!
Nextcloud creates it’s own vhost, but you MUST do it from Nextclouds configuration page in Cockpit.
AFAIK, this is valid for most included applications in NethServer. I don’t use SoGo myself, but I could imagine the same is valid for SoGo too!
And why are you trying to use an instruction from NextCloud, and not the correct, specific one from NethServer? The Nextcloud docs starts from a general installed OS, like Ubuntu, Centos or Whatever - but: a common OS, not a Server-System like Nethserver.
Using the correct docs also helps, here’s the correct one from NethServer, for Nextcloud:
Are you sure? Adam’s asking about putting Nextcloud and Sogo in their own virtual hosts. There’s no reason to do anything at the CLI for this, nor to be messing around with anything in /var/lib/nethserver. Instead, for Nextcloud, go to Applications → Nextcloud → Settings → Configuration, and enter the desired virtual host name in the Virtual host name field.
For SOGo, go to Applications → SOGo → Settings → Advanced settings, and enter the desired FQDN in Make SOGo reachable only from this domain.
Please see my comment above. If you’ve set anything in Applications → Web Server → Virtual hosts that you intend to point to these services, delete it. Then configure those services as I describe above. You’d use the Virtual hosts page to add your own web applications, not ordinarily to point a virtual host to an application provided by Nethserver.
Deleting the vhosts had the intended effect. I can now access the each service via the appropriate link.
My remaining quibble is configuring https. I have the certificates registered, but they do not yet seem to be active. Are there any adjustments needed in this regard? Or just wait for the certificates to propagate?
Neither Nextcloud nor SOGo supports using a separate certificate for that service–they will each use the default system certificate and cannot be configured to use any other. Therefore, both FQDNs (among any others you may want to use) will need to be on the default system cert.