I'm having the most bizarre and random issue, and I can't get it to stay solid for me to debug it.
I'm installing Drupal through PHP Composer, and it gives me a default web root of 'public_html/web', so I edit:
vi /usr/local/apache/conf.d/vhosts/<example.com>.conf
Change the document root to:
DocumentRoot /home/<username>/public_html/web
Restart the apache service:
systemctl restart httpd
Now here's where the weirdness happens. Like about 50% of the time the website loads from /home/<user>/public_html/web, and just randomly for no reason, the site will load from /home/<user>/public_html
Does anyone have any idea why this is happening, like there's nothing in the error logs. I feel like I'm going crazy!