Tốc Độ Việt - Dịch vụ Hosting, Tên miền, Máy chủ, Thiết kế WebsiteWeb Hosting, Dịch vụ máy chủ, cho thuê máy chủ, thuê chỗ đặt máy chủ, cho thuê VPS, máy chủ ảo, Cloud hosting, Email hosting, Tên miền, Đại lý hosting
Setting up webmail.domain.com as default for new domains – DirectAdmin
Tốc Độ Việt - Dịch vụ Hosting, Tên miền, Máy chủ, Thiết kế Websitehttps://tocdoviet.com/assets/images/logo.png
Thứ tư - 24/07/2013 02:33
1) You’ll need to setup the virtualhost for apache. This can be accomplished by adding a 2nd virtualhost along side the domains main one.
cd /usr/local/directadmin/data/templates cp virtual_host.conf custom cd custom
You’ll need to edit the newly copied virtual_host.conf (or virtual_host2.conf if you’re using apache 2) file and make the file look like (just add the blue to the end of whatever you currently have)
echo “action=rewrite&value=httpd” >> /usr/local/directadmin/data/task.queue /usr/local/directadmin/dataskq d
to rewrite the httpd.conf files.
2) You’ll also need to setup the dns portition.
cd /usr/local/directadmin/data/templates cp dns_a.conf custom cd custom echo “webmail=|IP|” >> dns_a.conf
This will setup the webmail A record for new dns zones. For existing dns zones, you’ll have to manually add the webmail A record to point to the domains IP.