IP address is shared problem.

Discussion in 'Installation/Configuration' started by Al1937, Sep 13, 2009.

  1. Al1937

    Al1937 New Member

    At first http://myserverdomain.com returned IT WORKS!

    I created a client (ME) and setup a domain I want to host on my server.

    Once I setup the new web site I began getting the " IP Is Shared address" message
    when I browsed to http://myserverdomain.com.

    I then deleted the website I want to host on my server, and http://myserverdomain.com returned IT WORKS!

    Where am I going wrong?

    root@www:/home/albert# ifconfig
    eth0 Link encap:Ethernet HWaddr 00:12:17:55:d8:bf
    inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
    inet6 addr: fe80::212:17ff:fe55:d8bf/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:6657 errors:0 dropped:0 overruns:0 frame:0
    TX packets:8639 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:1254254 (1.2 MB) TX bytes:6460179 (6.4 MB)
    Interrupt:18 Base address:0xe800

    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:1442 errors:0 dropped:0 overruns:0 frame:0
    TX packets:1442 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:121899 (121.8 KB) TX bytes:121899 (121.8 KB)

    root@www:/home/albert#


    Nameservers for my server domain is with dyndns.org

    Nameservers for the domian I wish to host is with zoneedit.
     
    Last edited: Sep 14, 2009
  2. falko

    falko Super Moderator Howtoforge Staff

    What's in Vhosts_ispconfig.conf?
     
  3. Al1937

    Al1937 New Member

    I should have posted that I am running Ubuntu 9.04. ISPConfig2
    Where is the ispconfig_conf file on my system?
     
    Last edited: Sep 14, 2009
  4. TeslaZap

    TeslaZap New Member

    Al1937: I run debian (basically same structure) and my vhost_ispconfig.conf is in /etc/apache2/vhosts
    try to have a look there.
     
  5. Al1937

    Al1937 New Member

    /etc/apache2/vhosts

    ../
    Vhosts_ispconfig.conf
    Vhosts_ispconfig.conf~

    Inside ../ is:

    ../
    conf.d/
    mods-available/
    mods-enabled/
    sites-available/
    sites-enabled/
    vhosts/
    apache2.conf
    apache2.conf.12-09-09_17-12-54
    apache2.conf.orig
    envvars
    httpd.conf
    ports.conf
    ports.conf.12-09-09_17-12-54

    Willthis help?
     
  6. TeslaZap

    TeslaZap New Member

    Al1937: please paste the output of:
    Code:
    cat /etc/apache2/vhosts/Vhosts_ispconfig.conf
     
    Last edited: Sep 15, 2009
  7. Al1937

    Al1937 New Member

    root@www:/home/albert# cat /etc/apache2/vhosts/Vhosts_ispconfig.conf
    ###################################
    #
    # ISPConfig vHost Configuration File
    # Version 1.0
    #
    ###################################
    #
    NameVirtualHost 192.168.1.100:80
    <VirtualHost 192.168.1.100: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 192.168.1.100:80
    <VirtualHost 192.168.1.100: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.albertbrinson.com:80
    ######################################
    #
    #
    <VirtualHost 192.168.1.100:80>
    ServerName www.albertbrinson.com:80
    ServerAdmin [email protected]
    DocumentRoot /var/www/web11/web
    ServerAlias albertbrinson.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
    Alias /cgi-bin/ /var/www/web11/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    ErrorLog /var/www/web11/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    php_admin_flag safe_mode On
    php_admin_value open_basedir /var/www/web11/
    php_admin_value file_uploads 1
    php_admin_value upload_tmp_dir /var/www/web11/phptmp/
    php_admin_value session.save_path /var/www/web11/phptmp/
    <IfModule mod_ruby.c>
    <Directory /var/www/web11/web>
    Options +ExecCGI
    </Directory>
    RubyRequire apache/ruby-run
    #RubySafeLevel 0
    <Files *.rb>
    SetHandler ruby-object
    RubyHandler Apache::RubyRun.instance
    </Files>
    <Files *.rbx>
    SetHandler ruby-object
    RubyHandler Apache::RubyRun.instance
    </Files>
    </IfModule>
    <IfModule mod_python.c>
    <Directory /var/www/web11/web>
    #Options +Indexes +FollowSymLinks +MultiViews
    #AllowOverride Indexes AuthConfig Limit FileInfo
    #Order allow,deny
    #allow from all
    AddHandler mod_python .py
    PythonHandler mod_python.publisher
    PythonDebug On
    </Directory>
    </IfModule>
    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 /stats "/var/www/web11/web/webalizer"
    Alias /error/ "/var/www/web11/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/web11/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web11/user/$1/web/$3
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
    </IfModule>
    <IfModule mod_dav.c>
    Alias /webdav /var/www/web11/web
    <Location /webdav>
    DAV On
    AuthType Basic
    AuthName "webdav"
    AuthUserFile /var/www/web11/passwd.dav
    Require valid-user
    </Location>
    </IfModule>
    </VirtualHost>
    #
    <IfModule mod_ssl.c>
    <VirtualHost 192.168.1.100:443>
    ServerName www.albertbrinson.com:443
    ServerAdmin [email protected]
    DocumentRoot /var/www/web11/web
    ServerAlias albertbrinson.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
    Alias /cgi-bin/ /var/www/web11/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    ErrorLog /var/www/web11/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    php_admin_flag safe_mode On
    php_admin_value open_basedir /var/www/web11/
    php_admin_value file_uploads 1
    php_admin_value upload_tmp_dir /var/www/web11/phptmp/
    php_admin_value session.save_path /var/www/web11/phptmp/
    <IfModule mod_ruby.c>
    <Directory /var/www/web11/web>
    Options +ExecCGI
    </Directory>
    RubyRequire apache/ruby-run
    #RubySafeLevel 0
    <Files *.rb>
    SetHandler ruby-object
    RubyHandler Apache::RubyRun.instance
    </Files>
    <Files *.rbx>
    SetHandler ruby-object
    RubyHandler Apache::RubyRun.instance
    </Files>
    </IfModule>
    <IfModule mod_python.c>
    <Directory /var/www/web11/web>
    #Options +Indexes +FollowSymLinks +MultiViews
    #AllowOverride Indexes AuthConfig Limit FileInfo
    #Order allow,deny
    #allow from all
    AddHandler mod_python .py
    PythonHandler mod_python.publisher
    PythonDebug On
    </Directory>
    </IfModule>
    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
    SSLEngine on
    SSLCertificateFile /var/www/web11/ssl/www.albertbrinson.com.crt
    SSLCertificateKeyFile /var/www/web11/ssl/www.albertbrinson.com.key
    Alias /stats "/var/www/web11/web/webalizer"
    Alias /error/ "/var/www/web11/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/web11/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web11/user/$1/web/$3
    SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
    </IfModule>
    <IfModule mod_dav.c>
    Alias /webdav /var/www/web11/web
    <Location /webdav>
    DAV On
    AuthType Basic
    AuthName "webdav"
    AuthUserFile /var/www/web11/passwd.dav
    Require valid-user
    </Location>
    </IfModule>
    </VirtualHost>
    </IfModule>
    #
    #root@www:/home/albert#


    I am befuddled!
    If my bingftp.com server has a designated address 0f 192.168.1.100 and any domain I wish to host on that server was also assigned automatically 192.168.1.100 when I setup the web in Admin are they not shareing the same IP address?

    When I do a dig on bingftp.com it comes up with 192.168.1.1 ( the address of my router) as the server address. Nothing seems to make sense to me.


    root@www:/home/albert# dig www.bingftp.com

    ; <<>> DiG 9.5.1-P2 <<>> www.bingftp.com
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34127
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;www.bingftp.com. IN A

    ;; ANSWER SECTION:
    www.bingftp.com. 43200 IN CNAME bingftp.com.
    bingftp.com. 60 IN A 76.29.158.151

    ;; Query time: 210 msec
    ;; SERVER: 192.168.1.1#53(192.168.1.1)
    ;; WHEN: Tue Sep 15 22:57:16 2009
    ;; MSG SIZE rcvd: 63

    root@www:/home/albert#
     
  8. falko

    falko Super Moderator Howtoforge Staff

  9. Al1937

    Al1937 New Member

    I have the same problem with http://www.albertbrinson.com BUT I am able to bring up
    http://albertbrinson.com with a "Welcome to www.albertbrinson.com"
    Can you?

    I still get "Shared IP" wit http://192.168.1.100
    and http://www.bingftp.com and http://bingftp.com


    I just created a CNAME www.albertbrinson.com

    This is strange. I did a dig www.albertbrinson.com and it came up with the CNAME.

    I just tried it again to copy and post it here, now -- THERE IS NO CNAME?

    The ip address assigned to www.albertbrinson.com was 208.68.139.38 It got hacked within 2 minutes.

    208.68.139.38 is from United States(US) in region North America
    Whois query for 208.68.139.38...

    Results returned from whois.arin.net:

    OrgName: FAST Search & Transfer Inc
    OrgID: FST-20
    Address: 117 Kendrick Street
    City: Needham
    StateProv: MA
    PostalCode: 02494
    Country: US

    NetRange: 208.68.136.0 - 208.68.143.255
    CIDR: 208.68.136.0/21
    OriginAS: AS40066
    NetName: FAST-HOSTED-SERVICES
    NetHandle: NET-208-68-136-0-1
    Parent: NET-208-0-0-0-0
    NetType: Direct Assignment
    NameServer: DNSBOSEXT.FASTSEARCH.NET
    NameServer: DNSDENEXT.FASTSEARCH.NET
    Comment:
    RegDate: 2006-06-28
    Updated: 2008-04-11

    RTechHandle: JHH10-ARIN
    RTechName: Hutchinson, James Henry
    RTechPhone: +1-781-433-8999
    RTechEmail: [email protected]

    OrgTechHandle: JHH10-ARIN
    OrgTechName: Hutchinson, James Henry
    OrgTechPhone: +1-781-433-8999
    OrgTechEmail: [email protected]

    # ARIN WHOIS database, last updated 2009-09-15 20:00
    # Enter ? for additional hints on searching ARIN's WHOIS database.



    My albertbrinson.com domain was unlocked.
    Once I locked my albertbrinson.com domain www.albertbrinson now works for me.

    I still get "Shared IP" wit http://192.168.1.100
    and http://www.bingftp.com and http://bingftp.com


    Ain't this FUN!!
     
    Last edited: Sep 16, 2009
  10. falko

    falko Super Moderator Howtoforge Staff

    No, doesn't work for me. Do you host the server in your LAN? If so, did you configure your router to forward port 80 to the server?

    You will always get a "Sahred IP" page if you use an IP because ISPConfig configures name-based vhosts.

    Please check your domains here: www.intodns.com
     
  11. Al1937

    Al1937 New Member

    Yes.
    Port Forwarding / Port Triggering


    # Service Name Start Port End Port Server IP Address
    1 FTP 20 21 192.168.1.100
    2 HTTP 80 80 192.168.1.100
    3 ISPConfig2 81 81 192.168.1.100

    ---------------------------------------------------------------------------------
    http://www.intodns.com/albertbrinson.com

    The following had a blue icon with i inside of it.
    All the rest had a green icon with a check inside of it.

    I had a friend try to bring up http://albertbrinson.com -It did not find it.





    Info Domain NS records Nameserver records returned by the parent servers are:

    ns57.domaincontrol.com. ['216.69.185.29'] [TTL=172800]
    ns58.domaincontrol.com. ['208.109.255.29'] [TTL=172800]

    l.gtld-servers.net was kind enough to give us that information.


    NS records from your nameservers NS records got from your nameservers listed at the parent NS are:

    ns57.domaincontrol.com ['216.69.185.29'] [TTL=3600]
    ns58.domaincontrol.com ['208.109.255.29'] [TTL=3600]



    Glue for NS records INFO: GLUE was not sent when I asked your nameservers for your NS records.This is ok but you should know that in this case an extra A record lookup is required in order to get the IPs of your NS records. The nameservers without glue are:
    208.109.255.29
    216.69.185.29
    You can fix this for example by adding A records to your nameservers for the zones listed above.


    SOA record The SOA record is:
    Primary nameserver: ns57.domaincontrol.com
    Hostmaster E-mail address: dns.jomax.net
    Serial #: 2009091500
    Refresh: 28800
    Retry: 7200
    Expire: 604800 1 weeks
    Default TTL: 86400



    Info WWW A Record Your www.albertbrinson.com A record is:
    www.albertbrinson.com -> albertbrinson.com -> [ 192.168.1.100 ]

    [Looks like you have CNAME's]
     
  12. falko

    falko Super Moderator Howtoforge Staff

    You must use a public IP address because otherwise nobody from outside your LAN can access the site.
     
  13. Al1937

    Al1937 New Member

    What is a "Public IP address" and how do I get one?

    -------------------------------------------
    When I dig bingftp.com

    root@www:/home/albert# dig bingftp.com

    ; <<>> DiG 9.5.1-P2 <<>> bingftp.com
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33451
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;bingftp.com. IN A

    ;; ANSWER SECTION:
    bingftp.com. 60 IN A 76.29.158.151

    ;; Query time: 65 msec
    ;; SERVER: 192.168.1.1#53(192.168.1.1)
    ;; WHEN: Fri Sep 18 13:37:18 2009
    ;; MSG SIZE rcvd: 45

    root@www:/home/albert#
    ------------------------------------------------
    It shows my server as 192.168.1.1 which is the address of my router.
    ----------------------------------------------------------------------------------
    Is this correct?
     
    Last edited: Sep 18, 2009
  14. Al1937

    Al1937 New Member

    Excuse my dunbness!!
    I found out what my public ip address is
    and in DNS Manager changed the default 192.162.1.100
    to my public IP address from dyndns.org.

    I thank you very much for your patience and help in this .

    Back to the thread subject.
    You told me "You will always get a "Shared IP" page if you use an IP because ISPConfig configures name-based vhosts."
    Is there anyway around this?


    I have read other post about "Shared IP" they have answers I do not understand, but I have never seen your above answer to me in any of them. Are they running a different version of Ubuntu?

    What would be the best version of Ubuntu to run as a hosting service?
     
    Last edited: Sep 19, 2009

Share This Page