View Full Version : Few Questions...
glowingedges
12-02-2005, 01:50 PM
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.
jmstacey
12-02-2005, 02:20 PM
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.
glowingedges
12-02-2005, 02:22 PM
So if I change this ... DNS records will be automaticly updated ?
glowingedges
12-02-2005, 02:46 PM
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>
glowingedges
12-04-2005, 08:34 AM
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.
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.