If I was a hosting business, it wouldn’t fix it. NGINX had the right document root, Apache didn’t. One of my sub domains had a bunch of 404 errors. Not sure how certain files existed, but the others don’t. I thought it was the mime type.

I put PHP in the custom template, if the sub domain with the wrong document root, then it changes it to the right one, since it’s a custom document root, it doesn’t need the subdomain in it. Instead of “|DOCROOT|/|SUB|”, it’s “|DOCROOT|”.

I looked at the error log, to find the problem. You could possibly fix it, by duplicating the files. You need SSH to look at the log file I looked at, DirectAdmin doesn’t have it in the web control panel. That’s why it took so long to fix, I didn’t want to look at the log file.

My custom templates could be outdated. I’m too lazy to redo whatever I did.