{"id":236,"date":"2012-03-05T23:41:48","date_gmt":"2012-03-05T23:41:48","guid":{"rendered":"http:\/\/www.plugged.in\/?p=236"},"modified":"2012-03-05T23:41:48","modified_gmt":"2012-03-05T23:41:48","slug":"setting-up-roundcube-to-webmail-domain-com-as-default-for-domains-in-directadmin","status":"publish","type":"post","link":"https:\/\/www.veriteknik.net.tr\/en\/setting-up-roundcube-to-webmail-domain-com-as-default-for-domains-in-directadmin\/","title":{"rendered":"Setting up roundcube to webmail.domain.com as default for domains in DirectAdmin"},"content":{"rendered":"<p>You need to setup the virtualhost for apache2.<\/p>\n<pre>[root@ck]# cd \/usr\/local\/directadmin\/data\/templates\n[root@ck]# cp virtual_host2.conf custom\n[root@ck]# cd custom<\/pre>\n<p>&nbsp;<\/p>\n<p>Now you can edit the new virtual_host2.conf (apache 2) file in custom folder and just add the codes to the end.<!--more--><\/p>\n<pre>&lt;VirtualHost |IP|:80&gt;\nServerName webmail.|DOMAIN|\nServerAdmin |ADMIN|\nDocumentRoot \/var\/www\/html\/roundcube\nCustomLog \/var\/log\/httpd\/domains\/|DOMAIN|.bytes bytes\nCustomLog \/var\/log\/httpd\/domains\/|DOMAIN|.log combined\nErrorLog \/var\/log\/httpd\/domains\/|DOMAIN|.error.log\n&lt;\/VirtualHost&gt;<\/pre>\n<p>&nbsp;<\/p>\n<p>Simply save and exit. Then run below to rewrite the httpd.conf files.<\/p>\n<pre>echo \"action=rewrite&amp;value=httpd\" &gt;&gt; \/usr\/local\/directadmin\/data\/task.queue\n\/usr\/local\/directadmin\/dataskq d<\/pre>\n<p>&nbsp;<\/p>\n<p>Finally you need to setup dns part.<\/p>\n<pre>[root@ck]# cd \/usr\/local\/directadmin\/data\/templates\n[root@ck]# cp dns_a.conf custom\n[root@ck]# cd custom\n[root@ck]# echo \"webmail=|IP|\" &gt;&gt; dns_a.conf<\/pre>\n<p>&nbsp;<\/p>\n<p>Note: Please check custom folder if there is a file with dns_a.conf name. Also dont forget that is only setup webmail A record for new domains. For existing domains, you&#8217;ll have to add manually.<\/p>\n<p>Source: DirectAdmin<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You need to setup the virtualhost for apache2. [root@ck]# cd \/usr\/local\/directadmin\/data\/templates [root@ck]# cp virtual_host2.conf custom [root@ck]# cd custom &nbsp; Now you can edit the new virtual_host2.conf (apache 2) file in custom folder and just add the codes to the end.<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","footnotes":""},"categories":[370,372],"tags":[454,455,456,457],"yst_prominent_words":[],"class_list":["post-236","post","type-post","status-publish","format-standard","hentry","category-linux","category-linux_help","tag-default-sub-domain","tag-directadmin","tag-roundcube","tag-webmail"],"jetpack_featured_media_url":"","uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"Cevdet Kaymaz","author_link":"https:\/\/www.veriteknik.net.tr\/en\/author\/cevdet-kaymaz\/"},"uagb_comment_info":0,"uagb_excerpt":"You need to setup the virtualhost for apache2. [root@ck]# cd \/usr\/local\/directadmin\/data\/templates [root@ck]# cp virtual_host2.conf custom [root@ck]# cd custom &nbsp; Now you can edit the new virtual_host2.conf (apache 2) file in custom folder and just add the codes to the end.","_links":{"self":[{"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/posts\/236","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/comments?post=236"}],"version-history":[{"count":0,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/posts\/236\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/media?parent=236"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/categories?post=236"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/tags?post=236"},{"taxonomy":"yst_prominent_words","embeddable":true,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/yst_prominent_words?post=236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}