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.

IP addess link to the default website

Discussion in 'General Discussion' started by Soheil, Sep 16, 2005.

  1. Soheil

    Soheil Active Member

    Joined:
    Jun 24, 2003
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Hello,
    When I try to go to the IP address of the server via the browser, I get a page can not be displayed, instead of my first domain listed in httd.conf

    Here is what I have in httpd.conf

    NameVirtualHost I.P.A.D.D.R.E.S.S:80


    #Added by cpanel 8.4.0-RELEASE_91 install

    <Location /whm-server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
    </Location>
    ExtendedStatus On


    <VirtualHost I.P.A.D.D.R.E.S.S>
    ServerAlias www.domainname.com domainname.com
    ServerAdmin webmaster@domainname.com
    DocumentRoot /home/sites/domain/public_html
    ErrorLog /home/sites/domain/logs/errors.log
    BytesLog domlogs/domainname.com-bytes_log
    <IfModule mod_userdir.c>
    UserDir disabled
    UserDir enabled yourhost
    </IfModule>
    ServerName www.domainname.com
    User yourhost
    Group yourhost
    CustomLog domlogs/domainname.com combined
    ScriptAlias /cgi-bin/ /home/sites/domain/public_html/cgi-bin/
    </VirtualHost>


    Can someone please tell me if I am missing something here.

    Thanks
     
  2. neutro

    neutro Well-Known Member

    Joined:
    Apr 11, 2004
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6
    Try this order instead

    NameVirtualHost I.P.A.D.D.R.E.S.S:80

    <VirtualHost I.P.A.D.D.R.E.S.S>
    ServerAlias www.domainname.com domainname.com
    ServerAdmin webmaster@domainname.com
    DocumentRoot /home/sites/domain/public_html
    ErrorLog /home/sites/domain/logs/errors.log
    BytesLog domlogs/domainname.com-bytes_log
    <IfModule mod_userdir.c>
    UserDir disabled
    UserDir enabled yourhost
    </IfModule>
    ServerName www.domainname.com
    User yourhost
    Group yourhost
    CustomLog domlogs/domainname.com combined
    ScriptAlias /cgi-bin/ /home/sites/domain/public_html/cgi-bin/
    </VirtualHost>

    <Location /whm-server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
    </Location>
    ExtendedStatus On
     
Loading...

Share This Page