76
Os kernel การปรับแต่ง เพิ่มเติม ลงโปรแกรม บน OS และ ControlPanel Directadmin,Cloud server / สร้าง sub-domain hosting in directadmin
« on: เมษายน 01, 2020, 04:40:02 PM »
เช่นถ้ามีโจทย์ว่าต้องการให้สร้าง list domain : *.hosting.pkl.com
ต้องทำการเพิ่ม โดเมนนี้ใน allowed_sub_domains.list ก่อน
/usr/local/directadmin/data/admin/allowed_sub_domains.list
vi allowed_sub_domains.list
ทำการเพิ่ม hosting.pkl.com ลงในไฟล์
chown diradmin:diradmin /usr/local/directadmin/data/admin/allowed_sub_domains.list
แล้วทำการเพิ่ม ลงไปใน directadmin.conf
check_subdomain_owner=1
for this domain, in case you want to use this domain for subdomain hosting (as full domains)
Ensure you chown the file to diradmin:diradmin.
If there is a match (starting from the top domain.com down, to sub.domain.com), then DA will check the subdomain.list file for domain.com (under the true owner, if that's on the box) and if a subdomain already matches that name, the creation will abort.
The true domain's subdomains have priority if they already exists.
ต้องทำการเพิ่ม โดเมนนี้ใน allowed_sub_domains.list ก่อน
/usr/local/directadmin/data/admin/allowed_sub_domains.list
vi allowed_sub_domains.list
ทำการเพิ่ม hosting.pkl.com ลงในไฟล์
chown diradmin:diradmin /usr/local/directadmin/data/admin/allowed_sub_domains.list
แล้วทำการเพิ่ม ลงไปใน directadmin.conf
check_subdomain_owner=1
for this domain, in case you want to use this domain for subdomain hosting (as full domains)
Ensure you chown the file to diradmin:diradmin.
If there is a match (starting from the top domain.com down, to sub.domain.com), then DA will check the subdomain.list file for domain.com (under the true owner, if that's on the box) and if a subdomain already matches that name, the creation will abort.
The true domain's subdomains have priority if they already exists.