best method - change defaul domain location

vancocom

Verified User
Joined
Jul 12, 2007
Messages
30
I am new to DirectAdmin, and I am still learning some of the advanced features. There is a more basic item that has somewhat eluded me.

I was wondering what the best method for changing the default domain's root directory is. I've done some reasearch, and I'm not sure what I need to do to cause the least waves. I've done several searches and haven't found any solid answers.

I want admin's domain to come out of /var/www/html so as to avoid any potential problems with squirrelmail, webmail, roundcube or any future software I install.

Should I change the root, cgi-bin, etc directories in admin's httpd.conf file, or is there a more elegant method? I would prefer a tool in the DirectAdmin interface, but I can't find one.

Thank you ahead of time for your help.
 
Of course if you change the default to something else besides /var/www/html, then squirrelmail, etc., will no longer work.

There's a reason why DirectAdmin says you should NOT use a domain name as a hostname.

That's so you can have your domain name where it belongs. In a virtual host.

Jeff
 
Perhaps I was unclear, or I am misunderstanding your response.

My hostname is (for example) ns3.domain.net, where the default domain is domain.net.

When I set up the default domain in DirectAdmin (log in as admin, click Domain Setup, Add a Domain), it automatically put the documentroot at /home/admin instead of /var/www/html. I was wondering if I did something wrong and if there was a better way to make sure that domain.net properly uses /var/www/html.

Thank you for your time.
 
Last edited:
Since www.domain.net points to host.domain.net, and not to ns3.domain.net, and since ns3.domain.net doesn't exist, I think you're obfuscating.

So I don't know if this answer is going to be helpful to you or not...

The domain should properly be housed in /home/admin.

/var/www/html should be reserved for serverwide stuff.

Jeff
 
Actually, that did answer my question. I now know that I did not understand how AD handled the default domain.

With my previous servers, including the one I'm about to replace, the default domain was in /var/www/html, and I had assumed that the same concept would apply to AD. Obviously not.

Thank you for clarifying this for me.
 
Back
Top