adding custom alias in apache for webmail

nostech

Verified User
Joined
Jun 5, 2009
Messages
37
Hello,

I tried to search the forum for an answer, but didn't find a proper solution.

I want to add an alias (/webmail) for my webmail (/roundcube).
I found a solution described at https://forum.directadmin.com/showthread.php?t=35233 :
Add Alias /webmail "/var/www/html/webmail/" in the file /etc/httpd/conf/extra/httpd-alias.conf

This works just fine until custombuild is executed (./build rewrite_confs), then the alias is gone.

In another doc (https://help.directadmin.com/item.php?id=351) I noticed the claim '/etc/httpd/conf/extra/httpd-includes.conf will not be touched by CustomBuild or DirectAdmin.', but I've tried it and after executing ./build rewrite_confs the file httpd-includes.conf is empty again.

Does anyone know the proper way to do this?

Additionally I would like to force https also because now /roundcube (webmail) can be accessed via http as well as https (both are working correctly, but I would like to redirect http to https for additional security). I guess this should be done the same way (in the proper file) as adding the alias?
 
Hi,

Thank you very much for your reply. This was exactly what I was looking for! The options.conf settings were correct, but I was missing the info on https://help.directadmin.com/item.php?id=599

Perhaps any idea on forcing https for these webapps? As redirect_host_https=yes only seems to be working for forcing the DA interface only but not the webapps?
 
Back
Top