Keep getting "Shared IP" Page

Discussion in 'General' started by runbuck, Jan 3, 2008.

  1. runbuck

    runbuck New Member

    Any ideas on how to troubleshoot this issue would be appreciated. In short, I added 2 sites (was just running 1) to my ISPconfig. Now those two sites are both getting the shared IP page. Here is what I have done to troubleshoot:

    1. Checked my DNS provider (DNS2GO) and looked at the custom A records for those sites. They were pointing to the current external IP of my router.
    2. Checked my router. It is forwarding 80 and such ports to the internal IP that ISPconfig runs on.
    3. Checked settings in ISPConfig. DNS check boxes are off.
    4. Checked ISPconfig_vhosts file on ubuntu ... looks fine.
    5. Checked ISPconfig log no issues with the '-t' command so the vhost file is building
    6. Names are the same on the websites between all the above

    Thoughts?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please make sure that you selceted the internal IP for your sites and not the external IP.
     
  3. runbuck

    runbuck New Member

    Thanks

    Till 1st off thanks for your tireless support of this product. I like it quite a bit and have been using it for about 4 months.

    That said, to your question.

    When I go into the admin for ISPconfig and pull up the site in question the IP shown on the "ISP Site" page is the internal ip (192.168.0.188 actually) so I believe that is correct. The router redirects inbound 80 requests to that IP.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Have a look in the Vhost_ispconfig.conf file (in /etc/apache2/vhosts/ or a similar directory). Does it contain the same internal IP in the vhost definition for this domain?
     
  5. runbuck

    runbuck New Member

    Same IP (internal)

    Till, seems to be the same IP. Here is the VHOSTs segment from the Vhosts_ispconfig.conf file for that website:

    <VirtualHost 192.168.0.188:80>
    ServerName www.sitename.com:80
    ServerAdmin [email protected]
    DocumentRoot /var/www/web10/web
    ServerAlias sitename.comDirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
    ErrorLog /var/www/web10/log/error.log
    Alias /error/ "/var/www/web10/web/error/"
    ErrorDocument 400 /error/invalidSyntax.html
    ErrorDocument 401 /error/authorizationRequired.html
    ErrorDocument 403 /error/forbidden.html
    ErrorDocument 404 /error/fileNotFound.html
    ErrorDocument 405 /error/methodNotAllowed.html
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /var/www/web10/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web10/user/$1/web/$3
    </VirtualHost>
     
    Last edited: Jan 5, 2008
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Is this really in one line?

    ServerAlias leveragency.comDirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm

    The DirectoryIndex must be in the next row.
     
  7. runbuck

    runbuck New Member

    One line.

    Not sure what happened there. Yes its one line:

    <VirtualHost 192.168.0.188:80>
    ServerName www.sitename.com:80
    ServerAdmin [email protected]
    DocumentRoot /var/www/web10/web
    ServerAlias sitename.com
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
    ErrorLog /var/www/web10/log/error.log
    Alias /error/ "/var/www/web10/web/error/"
    ErrorDocument 400 /error/invalidSyntax.html
    ErrorDocument 401 /error/authorizationRequired.html
    ErrorDocument 403 /error/forbidden.html
    ErrorDocument 404 /error/fileNotFound.html
    ErrorDocument 405 /error/methodNotAllowed.html
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /var/www/web10/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web10/user/$1/web/$3
    </VirtualHost>
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    The vhostr definition in the last post is fine.
     

Share This Page