New whm/cpanel server has one weird thing:
if someone points a domain at the main namebased hosting IP and there is no account setup for it, it loads the first-created namebased site (i.e. it loads /home/account1/www/)
So if you remove an account and they're doing their own dns, now that domain shows another account. It should show the default page at /usr/local/apache/htdocs/index.html
In the httpd.conf whm builds this:
<VirtualHost *>
ServerName hostname.mydomain.com
DocumentRoot /usr/local/apache/htdocs
ServerAdmin email removed
</VirtualHost>
If I change it to
<VirtualHost main.server.ip.number:80>
ServerName hostname.mydomain.com
DocumentRoot /usr/local/apache/htdocs
ServerAdmin email removed
</VirtualHost>
it works as I expect it should (if a domain is pointed at the server's namebased IP and it's not created yet or deleted, it shows the default server page not another account.)
In the old days I would edit the httpd.conf to change something like this, but now with easyapache I need some direction on how to fix this so it doesn't get unchanged the next time apache is built. Many thanks in advance.



LinkBack URL
About LinkBacks
Reply With Quote





