SYSTEM INFORMATION | |
---|---|
OS type and version | Rocky 8.7 |
Webmin version | 2.001 |
Virtualmin version | 7.3 Pro |
Related packages | None |
This is a continuation of this topic; but I’m making a new topic because it’s a new problem, and I want to keep Joe happy.
Once again, my general mistrust of computers paid off.
I decided to convert the unused “m” migrated cPanel subdomain to a subserver to see what happened, and it worked fine. So I did the same with a live subdomain, and it disappeared. The whole sub went 404. The directory where it used to live was gone. Nada. No mas.
More precisely, the files got moved from
domain.tld
public_html
subdirectory
to
domain.tld
domains
sub.domain.tld
public_html
But apparently, no one told Apache about it because https://sub.domain.tld
still points to
domain.tld
public_html
subdirectory
which, of course, was nonexistent, having been deleted and its contents moved.
In the best tradition of kludges and quick-fixes, I re-created the subdirectory and copied all the files into it, and now the sub is back online.
But it’s first aid, not a fix.
On the bright side, converting the migrated subdomain to a subserver does in fact restore the option to enable Awstats. It just wipes out the site in the process. Hey, nothing’s perfect.
So… How do I fix this?
I left the files in
domain.tld
public_html
sub.domain.tld
in place and made a minor edit to the 404 page that will enable me to know when Apache is pointing to the right directory. (I changed “file or resource you requested” to “file or resource that you requested,” adding a grammatical improvement that will make my grade school English teachers proud, wherever they are.)
I’m guessing that I have to manually edit httpd.conf
; but because my guesses seem to suck more than usual today, I’m calling on the Wise Ones for advice before doing so.
Thanks,
Richard