Forwarding to nextcloud subdirectory

I have a domain registered on GoDaddy and my NextCloud installation running on an EC2 instance on AWS. I’ve set up an A record from GoDaddy that creates a subdomain and points to an Elastic IP that’s associated with my EC2 instance. This works but it directs to the root directory, and not to where the web app is. To solve this I set up a forwarder that forwards to I get an error saying there are too many forwarding requests.

Is there an easy way to redirect a domain to the /nextcloud directory that hosts the web app?

Nevermind, this is not a DNS problem. I fixed this with a simple 301 redirect that I put in my www/html folder.