Closed Thread
Results 1 to 9 of 9

Thread: Main Shared IP Shows Customers Site?

  1. #1
    JSHosts.com [JSH]John is a glorious beacon of light[JSH]John is a glorious beacon of light[JSH]John is a glorious beacon of light[JSH]John is a glorious beacon of light[JSH]John is a glorious beacon of light[JSH]John is a glorious beacon of light [JSH]John's Avatar
    Join Date
    Aug 2005
    Location
    Newcastle, UK
    Posts
    1,957

    Main Shared IP Shows Customers Site?

    Hi guys,

    I've noticed that if a customer visits the main shared IP address on my cPanel server, it's showing another customers website. Is there a way to change this to the default cPanel page that says cPanel is installed or something? I've noticed that the site showing, is the first website that was added to the new server too.

    Basically, I don't want customers to see another customers website when they visit the main shared IP. The only way they won't see this if if they have their own dedicated IP.
    JSHosts - UK Web Hosting
    Web Hosting | Reseller Hosting | OpenVZ VPS | Xen VPS
    cPanel | Softaculous | CloudLinux | CloudFlare | R1Soft Backups

  2. #2
    Pro Member [AS]Richard has disabled reputation [AS]Richard's Avatar
    Join Date
    Jun 2008
    Location
    United States
    Posts
    260
    That's not right, because usually if it's a shared IP then when going to the IP address it would show the default cPanel page. You can only access other website if you go to http://127.0.0.1/~[username]
    What's the IP? I'll take a look.

  3. #3
    CEO BrandonTheG is just really niceBrandonTheG is just really niceBrandonTheG is just really niceBrandonTheG is just really niceBrandonTheG is just really nice BrandonTheG's Avatar
    Join Date
    Apr 2006
    Location
    Massachusetts
    Posts
    1,251
    Go into your httpd.conf and find "NameVirtualHost *".

    Under it make sure there is a VHOST for the IP.

    An example VHOST is

    Code:
    <VirtualHost IP_HERE:80>
        ServerName server.hostname.tld
        DocumentRoot /usr/local/apache/htdocs
        ServerAdmin admin@email.tld
    </VirtualHost>
    Just make sure that's the first VHost and your problem should be all set.
    Brandon Long | Wicked Free Hosting
    █ brandon[@]wfh[.]im | 1-877-927-7606
    Enterprise Free Hosting! Try us today

  4. #4
    JSHosts.com [JSH]John is a glorious beacon of light[JSH]John is a glorious beacon of light[JSH]John is a glorious beacon of light[JSH]John is a glorious beacon of light[JSH]John is a glorious beacon of light[JSH]John is a glorious beacon of light [JSH]John's Avatar
    Join Date
    Aug 2005
    Location
    Newcastle, UK
    Posts
    1,957
    Thank you Brandon, that fixed it.
    JSHosts - UK Web Hosting
    Web Hosting | Reseller Hosting | OpenVZ VPS | Xen VPS
    cPanel | Softaculous | CloudLinux | CloudFlare | R1Soft Backups

  5. #5
    CEO BrandonTheG is just really niceBrandonTheG is just really niceBrandonTheG is just really niceBrandonTheG is just really niceBrandonTheG is just really nice BrandonTheG's Avatar
    Join Date
    Apr 2006
    Location
    Massachusetts
    Posts
    1,251
    No problem, it's happened to us before, the bad part is that when people do IP/~blah/ it goes against there transfer too, so it's best to be fixed.
    Brandon Long | Wicked Free Hosting
    █ brandon[@]wfh[.]im | 1-877-927-7606
    Enterprise Free Hosting! Try us today

  6. #6
    Senior Member Hastings has a spectacular aura about Hastings's Avatar
    Join Date
    May 2008
    Posts
    235
    John,

    As a note, this normally happens when there's only one account on a cPanel server as well, once you make a second account you should be set - Might this be a new server or something? Or might this be the only new account on that IP?
    - Hunter Hastings / Check out my twitter!

    [ GeekLayer Web Services | Want a VPS that SCREAMS? ]
    [ Killer deals on Virtual Private Servers | Check out our new packages! ]

  7. #7
    CEO BrandonTheG is just really niceBrandonTheG is just really niceBrandonTheG is just really niceBrandonTheG is just really niceBrandonTheG is just really nice BrandonTheG's Avatar
    Join Date
    Apr 2006
    Location
    Massachusetts
    Posts
    1,251
    Quote Originally Posted by Hastings View Post
    John,

    As a note, this normally happens when there's only one account on a cPanel server as well, once you make a second account you should be set - Might this be a new server or something? Or might this be the only new account on that IP?
    Not sure if it's related but when it was happening to us the server had ~150 accounts or so.
    Brandon Long | Wicked Free Hosting
    █ brandon[@]wfh[.]im | 1-877-927-7606
    Enterprise Free Hosting! Try us today

  8. #8
    JSHosts.com [JSH]John is a glorious beacon of light[JSH]John is a glorious beacon of light[JSH]John is a glorious beacon of light[JSH]John is a glorious beacon of light[JSH]John is a glorious beacon of light[JSH]John is a glorious beacon of light [JSH]John's Avatar
    Join Date
    Aug 2005
    Location
    Newcastle, UK
    Posts
    1,957
    I've had the server for months now and it's happened since we moved from the old server. There's more than one account on the server but it's because the shared IP is different to the main server IP.

    Thanks to Brandon, I now know how to resolve it if it happens again.
    JSHosts - UK Web Hosting
    Web Hosting | Reseller Hosting | OpenVZ VPS | Xen VPS
    cPanel | Softaculous | CloudLinux | CloudFlare | R1Soft Backups

  9. #9
    CEO BrandonTheG is just really niceBrandonTheG is just really niceBrandonTheG is just really niceBrandonTheG is just really niceBrandonTheG is just really nice BrandonTheG's Avatar
    Join Date
    Apr 2006
    Location
    Massachusetts
    Posts
    1,251
    Yeh I dunno why it doesn't do it for each IP, then again, it's cPanel, so I would rather not ask. Loads of problems with them lately
    Brandon Long | Wicked Free Hosting
    █ brandon[@]wfh[.]im | 1-877-927-7606
    Enterprise Free Hosting! Try us today

Closed Thread

Similar Threads

  1. Main Site Problem
    By JonnyH in forum FreeWebspace.net Feedback
    Replies: 1
    Last Post: June 27th, 2007, 17:12
  2. Replies: 1
    Last Post: December 12th, 2006, 05:49
  3. Replies: 0
    Last Post: July 6th, 2003, 07:13
  4. T35 Main Site Down!?
    By Cracker in forum Free hosting requests
    Replies: 2
    Last Post: March 5th, 2002, 10:57
  5. need a script that shows visitors on site
    By dscikate in forum Programming Help
    Replies: 7
    Last Post: February 3rd, 2002, 15:30

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts