I've been having this problem off and on for close to a year now, but just now realized that cPanel was likely the cause.
I have three domains. When I moved from shared hosting to VPS, I decided to split each of the two addon domains to their own separate accounts just to make things easier to manage. However, I forgot to delete a subdomain from the original domain before doing this.
Original domain: Oldiesmann's ApologetiX Site
Subdomain in question: wiki.archiefans.com
This leads to wiki.archiefans.com basically being an alias for oldiesmann.us. My solution to this is to just edit httpd.conf to remove any references to wiki.archiefans.com, then re-add the subdomain from cPanel under the "archie" account.
However, I can't get it to stay this way, no matter how many httpd.conf and httpd.conf.bak files I edit. Every few months or so, the changes revert, and I have to spend 5-10 minutes editing httpd.conf again, then re-adding the subdomain.
I really don't want to go to the trouble of moving things back to an addon domain, then deleting the original subdomain, moving things back to a regular account and adding the subdomain again. Is there a way I can prevent cPanel from reverting these changes?
I have three domains. When I moved from shared hosting to VPS, I decided to split each of the two addon domains to their own separate accounts just to make things easier to manage. However, I forgot to delete a subdomain from the original domain before doing this.
Original domain: Oldiesmann's ApologetiX Site
Subdomain in question: wiki.archiefans.com
This leads to wiki.archiefans.com basically being an alias for oldiesmann.us. My solution to this is to just edit httpd.conf to remove any references to wiki.archiefans.com, then re-add the subdomain from cPanel under the "archie" account.
However, I can't get it to stay this way, no matter how many httpd.conf and httpd.conf.bak files I edit. Every few months or so, the changes revert, and I have to spend 5-10 minutes editing httpd.conf again, then re-adding the subdomain.
I really don't want to go to the trouble of moving things back to an addon domain, then deleting the original subdomain, moving things back to a regular account and adding the subdomain again. Is there a way I can prevent cPanel from reverting these changes?