ISPconfig to host multiple domains in one IP with multiple DynDns addresses

Discussion in 'Installation/Configuration' started by agelospanagiotakis, Jun 20, 2006.

  1. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    ifconfig
    , and what's in Vhosts_ispconfig.conf?
     
  2. Linocks

    Linocks New Member

    Code:
    root@web:~# ifconfig
    eth0      Link encap:Ethernet  HWaddr 00:E0:4C:4E:80:00
              inet addr:10.10.0.10  Bcast:10.10.0.255  Mask:255.255.255.0
              inet6 addr: fe80::2e0:4cff:fe4e:8000/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:173913 errors:0 dropped:0 overruns:0 frame:0
              TX packets:133843 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:158764664 (151.4 MiB)  TX bytes:57708645 (55.0 MiB)
              Interrupt:12 Base address:0xaf00
    
    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:8605 errors:0 dropped:0 overruns:0 frame:0
              TX packets:8605 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:581373 (567.7 KiB)  TX bytes:581373 (567.7 KiB)
    Code:
    root@web:~# less /etc/apache2/vhosts/Vhosts_ispconfig.conf
    ###################################
    #
    # ISPConfig vHost Configuration File
    #         Version 1.0
    #
    ###################################
    #
    NameVirtualHost 10.10.0.10:80
    <VirtualHost 10.10.0.10:80>
      ServerName localhost
      ServerAdmin root@localhost
      DocumentRoot /var/www/sharedip
    </VirtualHost>
    #
    #
    ######################################
    # Vhost: www.fiwiyaad.com:80
    ######################################
    #
    #
    <VirtualHost 10.10.0.10:80>
    ServerName www.fiwiyaad.com:80
    ServerAdmin [email protected]
    <VirtualHost 10.10.0.10:80>
    ServerName www.fiwiyaad.com:80
    ServerAdmin [email protected]
    DocumentRoot /var/www/web7/web
    ServerAlias fiwiyaad.com
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 i
    ndex.shtml index.cgi index.pl index.jsp Default.htm default.htm
    ScriptAlias  /cgi-bin/ /var/www/web7/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    ErrorLog /var/www/web7/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    <Files *.php>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php3>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php4>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php5>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    php_admin_flag safe_mode Off
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
    AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
    AddType text/vnd.wap.wml .wml
    AddType text/vnd.wap.wmlscript .ws .wmlscript
    AddType image/vnd.wap.wbmp .wbmp
    Alias /error/ "/var/www/web7/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/web7/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web7/user/$1/web/$3
    </VirtualHost>
    #
    #
    #
    END
     
  3. falko

    falko Super Moderator Howtoforge Staff

    Looks ok.
    The domain is resolving correctly:
    Code:
    mh1:~# dig fiwiyaad.com
    
    ; <<>> DiG 9.2.1 <<>> fiwiyaad.com
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38364
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;fiwiyaad.com.                  IN      A
    
    ;; ANSWER SECTION:
    fiwiyaad.com.           86400   IN      CNAME   eron.hobby-site.com.
    eron.hobby-site.com.    9       IN      A       81.98.79.109
    
    ;; Query time: 79 msec
    ;; SERVER: 81.169.163.104#53(81.169.163.104)
    ;; WHEN: Fri Dec 29 17:16:24 2006
    ;; MSG SIZE  rcvd: 76
    and when I try to go to https://fiwiyaad.com:81, my browser tries to connect which means it could resolve the IP address, but then nothing. Please check that you forwarded port 81 from your router to your ISPConfig server.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

Share This Page