Subdomains and vhosts in UCS 5

I had no luck with my last help request here so I’m starting over. I have a fresh install of UCS 5 with Nextcloud. Nextcloud is currently reachable at ipaddress/nextcloud. We all know this is the default behavior. I want to access Nextcloud at nextcloud.ipaddress instead. I have followed instructions posted on this forum that did not work.

How do I access Nextcloud at nextcloud.ipaddress instead of ipaddress/nextcloud? Thanks.

Mastodon