Shared IP

Discussion in 'General' started by 40esp, Nov 18, 2007.

  1. 40esp

    40esp New Member

    Whenever I create a subdomain "or simply setting the hostname" I get a shared ip error.

    This is my setup

    I register my domains through 1and1

    I set them all to the same IP address my server uses

    I created two subdomains on 1and1

    The main domain site in ispconfig works which is
    When I go to create new site -- i set the hostname to the subdomain part I want then the main domain name, and I have it create the records for me in dns.

    I am behind a router. but I am using different local IP addresses -- local -- local -- local

    And my WAN address (which I used for my domains) id

    so in retrospect I have this setup:

    1and1 Domains Registered:

    Router - WAN - LAN
    3 static LAN addresses

    my linux server box had virtual network interfaces with the local static IP's configured into it.

    ISPConfig see's the IP addresses
    When I make a new site in ispconfig I use one of the 3 local IP's for each domain i have. I never use 1 IP for more than 1 domain.
    When I want to make a subdomained host I make a new site, and change the hostname to the first part of the subdomain.

    then i fill out everything else.

    my main DNS record for is set for
    the A record - www is set to
    in DNS the A records are set for the hostname of the subdomain, but they are a different IP address then the main record.

    why is it giving me a shared IP error, when indeed its not a shared IP?
    Last edited: Nov 18, 2007
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Websites in ISPConfig can only be accessed by domain and not by IP. You can have as many domains on one IP as you like. You will have to select the IP in ISPConfig for the website where you forwarded port 80 on your router to and no other IP. If you select any other IP, you will get the shared IP message.
  3. 40esp

    40esp New Member

    this is the problem.

    when i enter my domain name

    i get my website

    but when i access i get a shared IP error

    domain name is using and it is in the A record(www).
    this works

    subdomain doesnt work

    it is under the dns entry, and has an A Record of (hostname bpa)

    i need to have two sites with a different IP so that i can get ssl on both of them

    i made sure my router forwards by setting a costom firewall rule allowing all of my ip addresses configured with my server, to access all ports.

    idk whats wrong, and ive searched this forums for help, but find none.

    configured in my router is one static ip
    my server uses the internal ip as eth0 and the hostname is
    eth0:x is set to retrieve the local ips i need for each site.
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    create a co-domain in the website where you set

    hostname: bpa

    If this shall be a independant website, create a website with the same IP address then you used for with:

    hostname: bpa
  5. 40esp

    40esp New Member

    I need ssl support on both sites though that is the problem
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, in this case you need 2 external IP addresses and a router that supports 2 external IP addresses. Or yoiu need a wlidcard SSL certificate and then add as co-domain to the site and redirect it to a subdirectory with apache rewrite rules.

Share This Page