[caveat]
I have no idea if this is a good way to do this, but I tried it and it worked. I was unable to figure out how to use a RewriteRule to send
http://webmail... to
https://webmail...
I suspect that you could achieve the same thing with a single "RewriteRule" directive.
[/caveat]
mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.confcd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.confpico -w 90WebmailCopy and paste the contents below into "90Webmail" and save.
Be sure to change "yourdomain.com" to match your configuration in the "ServerName" directive!<VirtualHost 0.0.0.0:443>
ServerName webmail.yourdomain.com
ServerAlias
DocumentRoot /home/httpd/html/horde/imp
ScriptAlias /cgi-bin /home/e-smith/files/ibays/egroupware/cgi-bin
Alias /files /home/e-smith/files/ibays/egroupware/files
# SSL Directives
SSLEngine on
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
Alias /webmail /home/httpd/html/horde/imp
Alias /horde /home/httpd/html/horde
# alias for Apache icons
Alias /icons/ /var/www/icons/
# Alias for server resources
Alias /server-resources/ /home/e-smith/files/server-resources/
</VirtualHost>
expand-template /etc/httpd/conf/httpd.conf/etc/init.d/httpd-e-smith restartYou should now be able to access webmail at
https://webmail.yourcompany.com