ແກ້ລິ້ງ Webmail ໃນ Directadmin ທີ່ມີ nginx+apach
ເອົາມາບັນທຶກໄວ້ກັນລືມ ວິືທີ ແກ້ລິ້ງ Webmail ໃນ Directadmin ທີ່ມີ nginx+apach
All what you need is to add webmail_link=roundcube into directadmin.conf and rewrite settings:
echo "webmail_link=roundcube" >> /usr/local/directadmin/conf/directadmin.conf /etc/init.d/directadmin restart cd /usr/local/directadmin/custombuild ./build update ./build rewrite_confs
with this you will get /etc/httpd/conf/extra/httpd-alias.conf with the following content:
Alias /config /var/www/html/redirect.php Alias /roundcube /var/www/html/roundcube Alias /webmail /var/www/html/roundcube Alias /phpMyAdmin /var/www/html/phpMyAdmin Alias /phpmyadmin /var/www/html/phpMyAdmin Alias /pma /var/www/html/phpMyAdmin
and /etc/nginx/webapps.hostname.conf (if nginx is used):
location /phpmyadmin { rewrite ^/* /phpMyAdmin last; } location /pma { rewrite ^/* /phpMyAdmin last; } location /webmail { rewrite ^/* /roundcube last; } if ($request_method !~ ^(GET|HEAD|POST)$ ) { return 444; } location ~ /(\.htaccess|\.htpasswd|\.user\.ini) { deny all; }
There is no need to customize those files any longer and put them into /usr/local/directadmin/custombuild/custom/
Credit: https://help.poralix.com/articles/roundcube-as-default-webmail-client-directadmin