iago

Member
Aug 26, 2002
16
0
151
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!
 

iago

Member
Aug 26, 2002
16
0
151
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
 

iago

Member
Aug 26, 2002
16
0
151
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
 

mbarb

Member
Aug 14, 2001
23
0
301
Just put the .htaccess in the top directory and it will protect all the directories below it ( I think)