Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: KDB9000 on September 27, 2006, 08:56:25 PM
-
I would like to change the webmail address to something like webmail.domain.com or something. Is there anyways I can do this? I figure it is in the httpd.conf file but I am not sure how to set this up. Can someone point me in the right direction?
-
[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.conf
cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
pico -w 90Webmail
Copy 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 restart
You should now be able to access webmail at https://webmail.yourcompany.com
-
Ok. I will give that a try and I think there might be a command to use that will adapte to the domain name. Anywaysthings for the reply.