The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

If you browse http://Ip-Address, what should you see?

Discussion in 'General Discussion' started by severian37, Nov 21, 2006.

  1. severian37

    severian37 Registered

    Joined:
    Nov 7, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    If you browse http://Ip-Address/~virthost, what should you see?

    If you have a CPanel server with all VirtualHosts set up in httpd.conf as:

    <VirtualHost xx.xx.xx.xx>
    ServerAlias myclientsite.com
    ServerAdmin webmaster@myclientsite.com
    DocumentRoot /home/myclientsite/public_html
    BytesLog domlogs/myclientsite.com-bytes_log
    ServerName www.myclientsite.com
    User myclientsite
    Group myclientsite
    CustomLog /usr/local/apache/domlogs/myclientsite.com combined
    ScriptAlias /cgi-bin/ /home/myclientsite/public_html/cgi-bin/
    </VirtualHost>

    The global ServerName in httpd.conf is not set. Hostname is defined as severian.mycpanel.com.

    Now, if I browse from a computer to http://my.ip.add.ress/~myscliensite, it takes me to the first entry in Virtual Hosts (whose account is actually suspended) as follows:
    http://www.myfirstvirtualhostsite.com/~myclientsite/ while it displays the correct client site in the browser.

    My question is ..what makes the ServerName resolve to the first VirtualHost site ?


    The reason this is even coming up is because I tweaked security for open_base and saw while developing the site and going through http://my.ip.add.ress/~myscliensite I was getting open_base dir errors because it was pointing to /myfirstvirtualhostsite/public_html.

    :confused:
     
    #1 severian37, Nov 21, 2006
    Last edited: Nov 21, 2006
  2. severian37

    severian37 Registered

    Joined:
    Nov 7, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
Loading...

Share This Page