Directadmin can help user create sub-domain (e.g. abc.supesite.com) under DA user panel.
Now I install CMS system (www.supesite.com) to my account, it can auto create sub-doamin for every user, but need amend conf/httpd.conf as following:
ServerAdmin [email protected]
DocumentRoot /html/yourdomain/public_html/my/
ServerName my.yourdomain.com
ServerAlias *.my.yourdomain.com
I check DA, may I change this line:
ServerName www.space.hkyoursky.com
ServerAlias *.space.hkyoursky.com <------------------- change ~~
ServerAdmin [email protected]
DocumentRoot /home/hkyoursky/domains/hkyoursky.com/public_html/space
ScriptAlias /cgi-bin/ /home/hkyoursky/domains/hkyoursky.com/public_html/space/cgi-bin/
UseCanonicalName OFF
User hkyoursky
Group hkyoursky
CustomLog /var/log/httpd/domains/hkyoursky.com.space.bytes bytes
CustomLog /var/log/httpd/domains/hkyoursky.com.space.log combined
ErrorLog /var/log/httpd/domains/hkyoursky.com.space.error.log
<Directory /home/hkyoursky/domains/hkyoursky.com/public_html/space>
Options +Includes -Indexes
php_admin_flag engine ON
php_admin_flag safe_mode OFF
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'
</Directory>
Now I install CMS system (www.supesite.com) to my account, it can auto create sub-doamin for every user, but need amend conf/httpd.conf as following:
ServerAdmin [email protected]
DocumentRoot /html/yourdomain/public_html/my/
ServerName my.yourdomain.com
ServerAlias *.my.yourdomain.com
I check DA, may I change this line:
ServerName www.space.hkyoursky.com
ServerAlias *.space.hkyoursky.com <------------------- change ~~
ServerAdmin [email protected]
DocumentRoot /home/hkyoursky/domains/hkyoursky.com/public_html/space
ScriptAlias /cgi-bin/ /home/hkyoursky/domains/hkyoursky.com/public_html/space/cgi-bin/
UseCanonicalName OFF
User hkyoursky
Group hkyoursky
CustomLog /var/log/httpd/domains/hkyoursky.com.space.bytes bytes
CustomLog /var/log/httpd/domains/hkyoursky.com.space.log combined
ErrorLog /var/log/httpd/domains/hkyoursky.com.space.error.log
<Directory /home/hkyoursky/domains/hkyoursky.com/public_html/space>
Options +Includes -Indexes
php_admin_flag engine ON
php_admin_flag safe_mode OFF
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'
</Directory>