Hey
@jp001,
We can help you with this if you open a ticket with our support department. This is, however, fairly simple.
The best way to add custom configurations for things like apache, (in this case, aliases for apache) is via the 'custom' build configurations in
/usr/local/directadmin/custombuild/custom/. You may need to create this folder, though, since it's not there by default. All of your templates for custom configurations can be found in
/usr/local/directadmin/custombuild/configure/.
In your case, given the above, you can do:
Code:
mkdir -p /usr/local/directadmin/custombuild/custom/ap2/conf/extra
cp -fp /usr/local/directadmin/custombuild/configure/ap2/conf/extra/httpd-alias.conf /usr/local/directadmin/custombuild/custom/ap2/conf/extra
Then, with your favorite editor, modify the aliases to your content. In this case, I removed the Aliases for all of the phpmyadmin links, and kept a single /pma3 there:
Code:
[root@test-server custombuild]# cat /usr/local/directadmin/custombuild/custom/ap2/conf/extra/httpd-alias.conf
Alias /config "/var/www/html/redirect.php"
Alias /pma3 "/var/www/html/phpMyAdmin/"
Alias /squirrelmail "/var/www/html/squirrelmail/"
Alias /roundcube "/var/www/html/roundcube/"
Alias /webmail "/var/www/html/roundcube/"
Alias /.well-known/acme-challenge "/var/www/html/.well-known/acme-challenge/"
Once you're done making your modifications, you'll simply need to rewrite the configuration files, like so:
Code:
cd /usr/local/directadmin/custombuild
./build rewrite_confs
After that, your new alias should work, instead of the old ones.