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.

documentroot of an account

Discussion in 'General Discussion' started by iago, Jan 4, 2003.

  1. iago

    iago Member

    Joined:
    Aug 26, 2002
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    I want to change the document root of an ip based account.

    Would just modifying the documentroot directive on httpd.conf file do the trick?

    Does this mess with the cpanel/whm configuration or management in some way? I dont want to screw things up.

    I want to set the home directory of this account to something like:

    /home/httpd/html/ instead of the default /home/user/www/

    Hope i was clear, regards!
     
  2. iago

    iago Member

    Joined:
    Aug 26, 2002
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    thanks for your reply! :)

    ill try that, also, what if i want to enable or deny directory indexes in a single account? would cpanel override this setting when i update the httpd.conf via whm?

    I think this should not happen, ill give it a try...

    Just wanted to know if whm would have a problem if i modify this file manually

    Regards
     
  3. iago

    iago Member

    Joined:
    Aug 26, 2002
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    But if you have hundreds of directories it would be a real problem to set an .htaccess file on each dir, dont you think?

    Or is there a way to set this in a &recursive& mode, like placing this file on the document root and protect all directories.

    Hope someone of the support staff could shed some light on this too :)

    Regards
     
  4. iain-pczap.net

    iain-pczap.net Active Member

    Joined:
    Dec 27, 2002
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    couldnt u use wildcards for the direcories in .htaccess ?
     
  5. mbarb

    mbarb Member

    Joined:
    Aug 14, 2001
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Just put the .htaccess in the top directory and it will protect all the directories below it ( I think)
     
Loading...

Share This Page