Few Questions...

glowingedges

Verified User
Joined
Nov 28, 2005
Messages
19
Location
Enschede, NL
Hello,

I've some few questions.

Is it possible to make a subdomain outside the public_html of the main domain ?
Current : /home/virtual/domains/[domainname]/public_html/[subdomain]

I want :

/home/virtual/domains/[domainname]/[subdomain]/

Another question :

When I create a new subdomain I get this in my DNS :

subdomain A 123.123.123.123
www.subdomain A 123.123.123.123

How to get rid of the extra www.subdomain ?

I've found the templates directory, but nothing in there to change the extra www.subdomain record.

Any help appreciated thank you.
 
If you want to store the subdomains of all accounts outside of the public_html directory, you can modify the virtual host template that DirectAdmin uses.

Here is more information:
http://help.directadmin.com/item.php?id=2

Modification of the dns zone data files that DA uses is similar to modifying the virtual host templates, although existing zones will not be affected.
 
ok the file is done... but httpd.conf in user directory updates well.. Still DA makes the directory in public_html/ not in my desired domain/subdomains/

I really need help with this. I've DA just only for a day now and want to set it up to my need before transfering sites.

Here's my virtual_host_sub.conf file

|?DOCROOT=`HOME`/domains/`DOMAIN`/subdomains|
<VirtualHost |IP|:80>
|CUSTOM|
|?CGI=ScriptAlias /cgi-bin/ `DOCROOT`/`SUB`/cgi-bin/|
ServerName |SUB|.|DOMAIN|
ServerAlias |SUB|.|DOMAIN|
ServerAdmin |ADMIN|
DocumentRoot |DOCROOT|/|SUB|
|CGI|

|USECANONICALNAME|

User |USER|
Group |GROUP|
CustomLog /var/log/httpd/domains/|DOMAIN|.|SUB|.bytes bytes
CustomLog /var/log/httpd/domains/|DOMAIN|.|SUB|.log combined
ErrorLog /var/log/httpd/domains/|DOMAIN|.|SUB|.error.log
<Directory |DOCROOT|>
Options +Includes -Indexes
php_admin_flag engine |PHP|
php_admin_flag safe_mode |SAFE_MODE|
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f |USER|@|DOMAIN|'
</Directory>
|HANDLERS|
|MIMETYPES|

#php_admin_value open_basedir |HOME|/:/tmp/:/var/www/:/usr/local/lib/php/:/etc/virtual/

</VirtualHost>
 
Anyone ?

httpd updates fine... it makes its .conf files to the new path. DA still posting in public_html/

Where can I edit DA's files. I've searched everywhere.
 
Back
Top