Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Oct 2002
    Posts
    131

    Default ~user works but domain does not

    http://IP/~user works just fine, but http://domain.com does not.
    I have tried:
    1. editing httpd.conf making sure the virtual domain is set up right. It is set up like others that are working.
    2. making sure /etc/hosts is right.
    3. removing and recreating the user under a different user name.
    4. restarting apache
    5. rebooting
    6. Changing permissions, chmod 755
    7. Changing ownership chown user:group

    My dns points to the right server, and has for about a week.

    When I try domain.com, I get the default cPanel index page...there is content in the public_html dir.
    Totally at a lost.

    I know it is something simple, but it escapes me.

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    Quote Originally Posted by fuzzie
    http://IP/~user works just fine, but http://domain.com does not.
    I have tried:
    1. editing httpd.conf making sure the virtual domain is set up right. It is set up like others that are working.
    2. making sure /etc/hosts is right.
    3. removing and recreating the user under a different user name.
    4. restarting apache
    5. rebooting
    6. Changing permissions, chmod 755
    7. Changing ownership chown user:group

    My dns points to the right server, and has for about a week.

    When I try domain.com, I get the default cPanel index page...there is content in the public_html dir.
    Totally at a lost.
    Make sure the NSs are updated with your registrar, and set in the DNS zone of that site. Take a look at the DNS zone of this domain and make sure the entries are correct. Get detailed information about this domain at: www.dnsreport.com
    Andy Reed
    RHCE and CCNA
    ServerTune.com

  3. #3
    Member
    Join Date
    Oct 2002
    Posts
    131

    Default

    http://www.dnsreport.com/tools/dnsre...orsoutpost.com

    That all seems to be fine.

    I think in trying to fix the permissions, I screwed up httpd.conf.

  4. #4
    Registered User
    Join Date
    Oct 2003
    Posts
    38

    Default

    Can you post the domain entry from httpd.conf over here.

  5. #5
    Member
    Join Date
    Oct 2002
    Posts
    131

    Default

    sure....

    <VirtualHost 68.54.178.42>
    ServerAlias taylorsoutpost.com
    ServerAdmin webmaster@taylorsoutpost.com
    DocumentRoot /home/taylors/public_html
    BytesLog domlogs/taylorsoutpost.com-bytes_log
    ServerName www.taylorsoutpost.com

    <IfModule mod_userdir.c>
    Userdir disabled
    Userdir enabled taylors
    </IfModule>

    <IfModule mod_php4.c>
    php_admin_value open_basedir "/home/taylorso:/usr/lib/php:/usr/local/lib/php:/tmp"
    </IfModule>
    <IfModule mod_php5.c>
    php_admin_value open_basedir "/home/taylorso:/usr/lib/php:/usr/local/lib/php:/tmp"
    </IfModule>

    User taylors
    Group taylors
    CustomLog /usr/local/apache/domlogs/taylorsoutpost.com combined
    ScriptAlias /cgi-bin/ /home/taylors/public_html/cgi-bin/
    </VirtualHost>

  6. #6
    Member
    Join Date
    Jan 2005
    Location
    Earth
    Posts
    1,050

    Default

    VirtualHost entry seems to be all correct as well as the domain is pointing to the correct IP. This is not a DNS propagation problem. It has to be in the configuration file. Have you added the NameVirtualHost entry for the IP 68.54.178.42 in httpd.conf ?

  7. #7
    Member
    Join Date
    Oct 2002
    Posts
    131

    Default

    It's in there...

    NameVirtualHost 68.54.178.42:80

  8. #8
    Member
    Join Date
    Jan 2005
    Location
    Earth
    Posts
    1,050

    Default

    As you havent received any error its difficult for people here to give you the exact solution. I suggest you to ask someone to look into your server and check all the entries once again.

  9. #9
    Member
    Join Date
    Oct 2002
    Posts
    131

    Default Fixed

    Thanks for the insight. I fixed this. I moved the server inside a firewall, and port forwarded to the private IP. WHM was still set at the public IP, which broke the httpd.conf file.

    Changed httpd.cong to the private IP and works like a charm.

Similar Threads & Tags
Similar threads

  1. /scripts/ensure_vhost_includes --user=name - No longer works.
    By jols in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 03-30-2011, 07:24 PM
  2. www.domain.com not working, domain.com works
    By Bucanero in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-25-2007, 05:29 PM
  3. Adding mysql db user to db works in X, not elsewhere
    By Charlottezweb in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 10-11-2007, 12:28 AM
  4. PHP ftp_put() multiple files works with root but not with user. Weird.
    By infocom in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 07-09-2007, 01:50 PM
  5. user account disappear in whm, site works
    By Envision5000 in forum New User Questions
    Replies: 2
    Last Post: 12-01-2005, 12:38 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube