I've created a new site, then created ns1.mysitecom and ns2.mysite.com style name servers (A records in DNS manager). Then I've changed NS and DNS settings in GoDaddy. Redirection is ok but the site shows "This is a shared IP message". And nothing happens when I change index.html in the site's folder. In this machine I have nearly 30 domains. All of them works... Suddenly this one started to act like this... I'm suprised... I tried to recreate it... Also compared the records of a working site with this new one. Everything looks ok... But it shows shared IP message.... Anybody has an idea? BTW: I've searched the posts here and deleted www in codomains (actually there was no www?). Also increased domain limit to 100. Also IP address is right. As I said, there are nearly 30 websites but onen of them shows this page... There must be something wrong... Thanks
Ok ok solved... Very interesting thing but the error was an Apache directive. But in another domain! How can they affect each other??? There was an error in an Apache directive in a domain, and another domain starts to show Shared IP page.... Is it a bug? Thanks
How can I stop ISPConfig ( where to delete ) writing the below virtual host in the Vhost include file because it causes the shared IP page on localhost, all sites then point to the same page on localhost because I keep a host file in order to access site locally <VirtualHost 192.168.0.1:80> ServerName localhost ServerAdmin root@localhost DocumentRoot /var/www/sharedip </VirtualHost>
I would think that you could put your local virt after the include statement in httpd.conf that loads the vhosts file, then it would be after all the vhosts.
What I actually had to do is in config.lib.php is change the lines to From: // $mod->tpl->assign( array(SERVERIP => "NameVirtualHost ".$ip["server_ip"].$web_port." To: $mod->tpl->assign( array(SERVERIP => "NameVirtualHost *".$web_port." and I commended out this #<VirtualHost ".$ip["server_ip"].$web_port."> # ServerName localhost # ServerAdmin root@localhost # DocumentRoot /var/www/sharedip #</VirtualHost>")); It still prints the commented lines in the vhost file but does not break anything. This works ok except I need to get ISPConfig to create news virtual hosts as <Virtualhost *:80> rather than <virtualhost 192.168.0.1:80> I'd rather not touch it in the database as I do not want to break something else that may be relying on and IP address and not an asterisk symbol so I have to change it in the /root/ispconfig/isp/conf/vhost.conf.master to read <VirtualHost *:80> instead of {IP} I also took mlz advice and it all look fixed and working now Thanks