Shared IP problem again... :)

Discussion in 'Installation/Configuration' started by Perilla, Oct 10, 2010.

  1. Perilla

    Perilla New Member

    1 of 5 ip's work good.
    But if i add domain to another ip i see Shared IP page.

    In "hosts" (hosts file on my local computer win7) file i add x.x.x.10 www.domain.com
    In browser www.domain.com work fine, but domain.com Shared IP.

    If i ping domain.com i see another IP, one that always works. But domain bound to another ip, .10
    If i ping www.domain.com i see needed IP (hosts file).


    ------------------------------------------------------------------
    What i try?

    I edit config.inc suphp, addtype, both - did not help.

    I try to make this. No errors.

    I'm looking to Vhosts_ispconfig.conf, all ok i think. Domains with needed IP's.


    I use external DNS.
     
    Last edited: Oct 10, 2010
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You have to add a record in /etc/hosts or dns for every domain or subdomain that you want to use. as you added only a record for www.domain.tld, then it works only for www.domain.tld and not without www. So if you add a record for the domain without www, then it will work without www as well.
     
  3. Perilla

    Perilla New Member

    When i write about hosts file i mean my local computer, win7 hosts file.
     
  4. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    ifconfig
    , and what's in your Vhosts_ispconfig.conf?
     
  5. Perilla

    Perilla New Member

    Code:
    eth0      Link encap:Ethernet  HWaddr 00:16:76:BE:74:18
              inet addr:69.31.91.66  Bcast:69.31.91.79  Mask:255.255.255.240
              inet6 addr: fe80::216:76ff:febe:7418/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:22384639 errors:0 dropped:0 overruns:0 frame:0
              TX packets:36188194 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:1733082184 (1.6 GiB)  TX bytes:50172824592 (46.7 GiB)
    
    eth0:1    Link encap:Ethernet  HWaddr 00:16:76:BE:74:18
              inet addr:69.31.91.67  Bcast:69.31.91.71  Mask:255.255.255.248
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
    
    eth0:2    Link encap:Ethernet  HWaddr 00:16:76:BE:74:18
              inet addr:69.31.91.68  Bcast:69.31.91.71  Mask:255.255.255.248
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
    
    eth0:3    Link encap:Ethernet  HWaddr 00:16:76:BE:74:18
              inet addr:69.31.91.69  Bcast:69.31.91.71  Mask:255.255.255.248
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
    
    eth0:4    Link encap:Ethernet  HWaddr 00:16:76:BE:74:18
              inet addr:69.31.91.70  Bcast:69.31.91.71  Mask:255.255.255.248
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
    
    eth0:5    Link encap:Ethernet  HWaddr 00:16:76:BE:74:18
              inet addr:69.31.91.71  Bcast:69.31.91.71  Mask:255.255.255.248
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
    
    eth0:6    Link encap:Ethernet  HWaddr 00:16:76:BE:74:18
              inet addr:69.31.84.89  Bcast:69.31.84.95  Mask:255.255.255.248
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
    
    eth0:7    Link encap:Ethernet  HWaddr 00:16:76:BE:74:18
              inet addr:69.31.84.90  Bcast:69.31.84.95  Mask:255.255.255.248
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
    
    eth0:8    Link encap:Ethernet  HWaddr 00:16:76:BE:74:18
              inet addr:69.31.84.91  Bcast:69.31.84.95  Mask:255.255.255.248
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
    
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:41560 errors:0 dropped:0 overruns:0 frame:0
              TX packets:41560 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:17907578 (17.0 MiB)  TX bytes:17907578 (17.0 MiB)
    
    Code:
    ###################################
    #
    # ISPConfig vHost Configuration File
    #         Version 1.0
    #
    ###################################
    #
    NameVirtualHost 127.0.0.1:80
    <VirtualHost 127.0.0.1:80>
      ServerName localhost
      ServerAdmin root@localhost
      DocumentRoot /var/www/sharedip
      <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
        RewriteRule .* - [F]
      </IfModule>
    </VirtualHost>
    NameVirtualHost 69.31.84.89:80
    <VirtualHost 69.31.84.89:80>
      ServerName localhost
      ServerAdmin root@localhost
      DocumentRoot /var/www/sharedip
      <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
        RewriteRule .* - [F]
      </IfModule>
    </VirtualHost>
    NameVirtualHost 69.31.91.66:80
    <VirtualHost 69.31.91.66:80>
      ServerName localhost
      ServerAdmin root@localhost
      DocumentRoot /var/www/sharedip
      <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
        RewriteRule .* - [F]
      </IfModule>
    </VirtualHost>
    NameVirtualHost 69.31.91.67:80
    <VirtualHost 69.31.91.67:80>
      ServerName localhost
      ServerAdmin root@localhost
      DocumentRoot /var/www/sharedip
      <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
        RewriteRule .* - [F]
      </IfModule>
    </VirtualHost>
    NameVirtualHost 69.31.91.68:80
    <VirtualHost 69.31.91.68:80>
      ServerName localhost
      ServerAdmin root@localhost
      DocumentRoot /var/www/sharedip
      <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
        RewriteRule .* - [F]
      </IfModule>
    </VirtualHost>
    NameVirtualHost 69.31.91.70:80
    <VirtualHost 69.31.91.70:80>
      ServerName localhost
      ServerAdmin root@localhost
      DocumentRoot /var/www/sharedip
      <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
        RewriteRule .* - [F]
      </IfModule>
    </VirtualHost>
    NameVirtualHost 69.31.91.71:80
    <VirtualHost 69.31.91.71:80>
      ServerName localhost
      ServerAdmin root@localhost
      DocumentRoot /var/www/sharedip
      <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
        RewriteRule .* - [F]
      </IfModule>
    </VirtualHost>
    #
    #
    ######################################
    # Vhost: www.domain1.com:80
    ######################################
    #
    #
    <VirtualHost 69.31.91.70:80>
    SuexecUserGroup web1_domain1.com web1
    ServerName www.domain1.com:80
    ServerAdmin [email protected]
    DocumentRoot /var/www/web1/web
    ServerAlias officeshare.ru
    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
    Alias  /cgi-bin/ /var/www/web1/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    ErrorLog /var/www/web1/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    php_admin_flag safe_mode Off
    Alias /error/ "/var/www/web1/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/web1/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
    <IfModule mod_rewrite.c>
      RewriteEngine on
      RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
      RewriteRule .* - [F]
    </IfModule>
    </VirtualHost>
    #
    #
    #
    ######################################
    # Vhost: www.domain2.com:80
    ######################################
    etc. other domains on same template.
     
    Last edited: Oct 11, 2010
  6. falko

    falko Super Moderator ISPConfig Developer

    Looks ok. What's the Listen directive in your Apache configuration?
     
  7. Perilla

    Perilla New Member

    All about bind.
     

Share This Page