I have a newly setup vps at mydomain.com:
$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.5 LTS Release: 20.04 Codename: focal $ and the administrators installed nextcloud for me. I point my nextcloud clients to work.mydomain.com and it works great. I also want to set up a webserver for www.mydomain.com. Currently, when I point a webbrowser to www.mydomain.com, I get a nextcloud-styled page that says "Access through untrusted domain, Please contact your administrator." This suggests that a webserver is running. Indeed:
$ sudo netstat -tnlp | grep 80 tcp6 0 0 :::80 :::* LISTEN 844835/httpd $ and apache2 is not installed. If I install it, I get:
$ service apache2 status ● apache2.service - The Apache HTTP Server Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor prese> Active: failed (Result: exit-code) since Tue 2023-01-31 17:08:54 CET; 1 we> Docs: https://httpd.apache.org/docs/2.4/ :/$ So, it looks to me like nextcloud's webserver is handling www.mydomain.com. There are only 2 references to the domain in nextcloud's config.php:
... 'trusted_domains' => array ( 0 => 'work.mydomain.com', ), 'datadirectory' => '/var/snap/nextcloud/common/nextcloud/data', 'dbtype' => 'mysql', 'version' => '25.0.2.3', 'overwrite.cli.url' => 'https://work.mydomain.com', ... So I don't see how calls to www.mydomain.com are being served. How do I serve my own pages to www.mydomain.com?