Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jan 2006
    Posts
    654

    Default Server IP shows customer's site ?

    If I go to the server Ip in a broswer, it is displaying the website for the first domain alphabetically on the server.

    Any idea what would cause that ?

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jan 2006
    Posts
    654

    Default

    I tried to run easyapache from whm to recompile and I got a popup saying

    Internet explorer cannot open the internet site (URL) opertion aborted.

    Then I get this page about a segmentation fault..

    http://www.cpanel.net/support/docs/e...n_ssl_bug.html

    But all I want to do is use the apache updater. I'm not having any problems with apache 2 seg faulting at startup. Very confusing!

  3. #3
    Member
    Join Date
    Aug 2002
    Posts
    1,120

    Default

    What version of Apache are you running?

    Have you recompiled Apache with EasyApache3?

    To my knowledge (and this only extends to Apache 1.3) Apache will show the website that is listed as the first VirtualHost in the Apache configuration file.

    Generally, the first VirtualHost for that particular IP would be something like:

    NameVirtualHost aa.bb.cc.dd:80
    <VirtualHost aa.bb.cc.dd>
    BytesLog domlogs/host.hostname.com-bytes_log
    ServerName host.hostname.com
    DocumentRoot /usr/local/apache/htdocs
    </VirtualHost>


    This means whenever someone goes to the IP address aa.bb.cc.dd in a web browser they will get the the directory structure that is in /usr/local/apache/htdocs

    This is assuming that aa.bb.cc.dd is the main server IP.

    With EasyApache3 you're not really suppose to edit the main Apache configuration file. In the one server that I have set up since using EasyApache3 (again Apache 1.3) I just added this content into the file:

    /usr/local/apache/conf/includes/pre_virtualhost_global.conf

    Now, whether or not this is a good solution, I don't know.

    But to answer your question, the reason your client's website is coming up via IP is because it is likely the first VirtualHost listed for that IP address.

  4. #4
    Member
    Join Date
    Sep 2007
    Posts
    10

    Default

    Apologies, I've had the same problem before and I just couldnt remember what the cause was. Thanks for reminding me.

    In this case, the first entry with the server info just said <VirtualHost *> instead of containing the servers IP - so it defaulted to the next one.

    The other problem with easyapache is something to do with this openssl bug when used with apache2 - the notification pops up when you try and use easyapache from WHM and it prevents you from going any further. Another thread suggests to install the latest version of openssl in /opt/openssl then rebuild apache - but of course that doesnt work if WHM prevents you from using it. I've not tried the command line version yet though.

  5. #5
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by 4UHChris View Post
    Apologies, I've had the same problem before and I just couldnt remember what the cause was. Thanks for reminding me.

    In this case, the first entry with the server info just said <VirtualHost *> instead of containing the servers IP - so it defaulted to the next one.

    The other problem with easyapache is something to do with this openssl bug when used with apache2 - the notification pops up when you try and use easyapache from WHM and it prevents you from going any further. Another thread suggests to install the latest version of openssl in /opt/openssl then rebuild apache - but of course that doesnt work if WHM prevents you from using it. I've not tried the command line version yet though.
    When the dialog box with the OpenSSL warning is displayed, click the faint X in the upper-rigjht corner of the dialog box (it should be in a white box). This will close the dialog box so you can continue using EasyApache.

  6. #6
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jan 2006
    Posts
    654

    Default

    Just to note: that doesnt work in IE - theres some kind of problem. Switching to firefox has done the trick for me.

  7. #7
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by 4u123 View Post
    Just to note: that doesnt work in IE - theres some kind of problem. Switching to firefox has done the trick for me.
    Yeah, I stated that before noting there was a bug that afflicts IE users of Apache Update.

Similar Threads & Tags
Similar threads

  1. Replies: 0
    Last Post: 12-03-2010, 02:05 PM
  2. Customer cPanel login, shows wrong domain
    By dmzus in forum New User Questions
    Replies: 15
    Last Post: 09-27-2010, 05:32 PM
  3. Replies: 3
    Last Post: 08-13-2007, 10:04 AM
  4. "Great Success" shows for domain.com, IP shows site?
    By partsace in forum New User Questions
    Replies: 6
    Last Post: 03-23-2007, 01:26 PM
  5. server.mydomain.com shows another site?
    By Secret Agent in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 11-13-2004, 07:01 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube