Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    1

    Default Put server back to ip/www/html addressing??

    Hi
    Cpanel changed my site and added the domain as to where it starts.

    example I used to go to http://123.123.123.123/info.php

    which was folder /var/www/html/info.php now I can not.

    How do I make it go back to that default and not look for a public_html folder?

    Thanks

  2. #2
    Member
    Join Date
    Jul 2010
    Posts
    5

    Default

    Place these rules within your .htaccess file as located in your ~/public_html directory.

    Remember to replace "domain.com" and "subfolder" with your own information.

    Also, remember to place the following statements at the very beginning of your .htaccess file if they haven't already been entered.

    Code:
    RewriteEngine On
    Options +FollowSymlinks
    RewriteBase /
    Source: /public_html directory change - Hostmonster Forums

  3. #3
    Member Miraenda's Avatar
    Join Date
    Jul 2004
    Location
    Coralville, Iowa USA
    Posts
    244

    Default

    The request was re-mapping to /var/www/html/info.php rather than /home/user/public_html/something

    To change a domain's document root, you'd need to edit the file in /var/cpanel/userdata/username/domain.com location where username is the cPanel username and domain.com is the domain name. In that file, there will be a documentroot line. Simply change the path.

    If this isn't what you mean, please specify precisely whether this isn't a domain but the hostname or something else (if it's the hostname, you'd change /var/cpanel/userdata/nobody/hostname.domain.com documentroot location).

    After changing the documentroot path in the file, you'd need to rebuild Apache and restart it (after making a backup):

    Code:
    cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak100709
    /scripts/rebuildhttpdconf
    /etc/init.d/httpd restart

Similar Threads & Tags
Similar threads

  1. How much ram is my cPanel server capable of addressing?
    By jols in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-16-2011, 11:11 AM
  2. cPanel on server w/ private ip addressing
    By DreamPhysix in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-20-2010, 03:20 AM
  3. Hw do i put html in web pages
    By nathancarder in forum New User Questions
    Replies: 1
    Last Post: 02-10-2008, 02:37 PM
  4. Replies: 2
    Last Post: 07-19-2006, 08:07 AM
  5. How to put delivered mail back in queue?
    By krisdv in forum cPanel and WHM Discussions
    Replies: 16
    Last Post: 01-03-2006, 09:30 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube