Showing "This is a shared IP" ??

Discussion in 'Installation/Configuration' started by bahadircolak, Jun 7, 2007.

  1. bahadircolak

    bahadircolak New Member

    I've created a new site, then created ns1.mysitecom and 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. :eek:

    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.... :confused:

    Anybody has an idea? :confused:

    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...

    Last edited: Jun 7, 2007
  2. bahadircolak

    bahadircolak New Member

    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?

  3. Tommahawk

    Tommahawk New Member

    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

    ServerName localhost
    ServerAdmin [email protected]
    DocumentRoot /var/www/sharedip
  4. mlz

    mlz New Member

    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.
  5. falko

    falko Super Moderator ISPConfig Developer

    You must alter the function make_vhost() in /root/ispconfig/scripts/lib/config.lib.php.
  6. Tommahawk

    Tommahawk New Member

    What I actually had to do is in config.lib.php is change the lines to

    // $mod->tpl->assign( array(SERVERIP => "NameVirtualHost ".$ip["server_ip"].$web_port."
    $mod->tpl->assign( array(SERVERIP => "NameVirtualHost *".$web_port."
    and I commended out this
    #<VirtualHost ".$ip["server_ip"].$web_port.">
    # ServerName localhost
    # ServerAdmin [email protected]
    # DocumentRoot /var/www/sharedip

    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>

    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
    Last edited: Jun 9, 2007
  7. mindlab

    mindlab New Member

    Shared Ip

    Just created a new site with the server's domain name. ;)
    Last edited: Jun 15, 2007

Share This Page