This procedure will allow you to access your SME 7 webmail via the simple URL webmail.your.domain. All connections will be via SSL (encrypted) whether specifically requested or not.
Create a custom configuration file template:
mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
cp /etc/e-smith/templates/etc/httpd/conf/httpd.conf/80VirtualHosts .
Use vi or nano to edit the fragment:
vi 80VirtualHosts
Add at the very end:
<VirtualHost 0.0.0.0:80>
ServerName webmail.example.com
DocumentRoot /home/httpd/html/horde/imp
Alias /horde /home/httpd/html/horde
RewriteEngine on
RewriteCond %\{SERVER_PORT\} !^443$
RewriteRule ^.*$ https://%\{HTTP_HOST\}$1 [L,R]
</VirtualHost>
<VirtualHost 0.0.0.0:443>
SSLEngine on
ServerName webmail.example.com
DocumentRoot /home/httpd/html/horde/imp
Alias /horde /home/httpd/html/horde
</VirtualHost>
Save the file, then issue the following command to activate the changes:
signal-event email-update
| < Prev | Next > |
|---|





