Vhosts and shared ip

Discussion in 'Installation/Configuration' started by sefokuma, Oct 6, 2007.

  1. sefokuma

    sefokuma New Member

    Hi, i´m using ispconfig 2.2.17 my poblem is the next:

    When i add a new site for a client i dont know how to redirect this to a url. I am using a 1 ip address for all vhosts. For example, i create a web site for a client and it is saved in /var/www/webx, ispconfig write vhosts apache file and when i try to enter in the site always appear error: shared ip.

    How can i change this? I tried to use a subdomains example webn.domain.com but dont run...

    Any idea?

    Thanks, and sorry for my english.
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Can you post the contents of your Vhosts_ispconfig.conf and the output of
    Code:
    ifconfig
    ?
     
  3. sefokuma

    sefokuma New Member

    Yep falko.

    Code:
    eth0      Link encap:Ethernet  HWaddr 00:30:48:78:66:68
              inet addr:89.140.48.30  Bcast:89.140.48.255  Mask:255.255.255.0
              inet6 addr: fe80::230:48ff:fe78:6668/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:8007144 errors:0 dropped:0 overruns:0 frame:0
              TX packets:821391 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:654117205 (623.8 MiB)  TX bytes:128986614 (123.0 MiB)
              Interrupt:19 Base address:0x4000
    89.140.48.30 is the internet address too.

    Code:
    ###################################
    #
    # ISPConfig vHost Configuration File
    #         Version 1.0
    #
    ###################################
    #
    NameVirtualHost 89.140.48.30:80
    <VirtualHost 89.140.48.30:80>
      ServerName localhost
      ServerAdmin [email protected]
      DocumentRoot /var/www/sharedip
    </VirtualHost>
    NameVirtualHost 89.140.48.31:80
    <VirtualHost 89.140.48.31:80>
      ServerName localhost
      ServerAdmin [email protected]
      DocumentRoot /var/www/sharedip
    </VirtualHost>
    #
    #
    ######################################
    # Vhost: asoc1.linux-malaga.org:80
    ######################################
    #
    #
    <VirtualHost 89.140.48.30:80>
    ServerName asoc1.linux-malaga.org:80
    ServerAdmin [email protected]
    DocumentRoot /var/www/web6/web
    ServerAlias linux-malaga.org
    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/web6/log/error.log
    Alias /error/ "/var/www/web6/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/web6/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web6/user/$1/web/$3
    </VirtualHost>
    #
    #
    
    Any idea, i dont know why write the first vhost to shareip....:S

    Thanks.
     
  4. falko

    falko Super Moderator ISPConfig Developer

  5. sefokuma

    sefokuma New Member

    Nop, if you see prweb.linux-malaga.org and asoc1.linux-malaga.org are the same pages....The shared ip dont appear because i have comment the share ip line config in vhosts.conf

    ?
     
  6. falko

    falko Super Moderator ISPConfig Developer

    What exactly is the problem now? That prweb.linux-malaga.org points to the same web site as asoc1.linux-malaga.org?
     

Share This Page