2013/Jun/08

cd /usr/local/directadmin/data/templates
cp virtual_host2.conf custom
cd custom
nano virtual_host2.conf


### Now you can edit the new virtual_host2.conf (apache 2) file in custom folder and just add the codes to the end. 
<VirtualHost |IP|:80> หรือ <VirtualHost |IP|:|PORT_80| |MULTI_IP|>

ServerName webmail.|DOMAIN|
ServerAdmin |ADMIN|
DocumentRoot /var/www/html/roundcube
CustomLog /var/log/httpd/domains/|DOMAIN|.bytes bytes
CustomLog /var/log/httpd/domains/|DOMAIN|.log combined
ErrorLog /var/log/httpd/domains/|DOMAIN|.error.log

</VirtualHost>

### Simply save and exit. Then run below to rewrite the httpd.conf files.

echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue /usr/local/directadmin/dataskq d


### Finally you need to setup dns part.

 
cd /usr/local/directadmin/data/templates
cp dns_a.conf custom
cd custom
nano dns_a.conf
 

### add this line

webmail=|IP|

###Finish!!!

edit @ 22 Jul 2016 12:02:04 by roweb

Comment

Comment:

Tweet