Topic: how can i make SOGo Webmail available under second hostname/alias?
======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: ubuntu 14.04.04 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? no
- Related log if you're reporting an issue:
====
Hello!
I have successfully installed iRedMail on a fresh Ubuntu 14.04.
Now i would like to make the SOGo Web Interface available under a different address as well.
During installation i used "hostname-a" so all services are available under "hostname-a.domain.de", but i would like to give users the possibility to reach the SOGo Web Page under "sogo.domain.de" as well.
Services should generally be available under http and https, preferably the latter.
How can i achieve this?
I have added a Virtualhost for http :80 and https :443 file with the second hostname in apache and also enabled it.
What to do with SOGo.conf in conf-available? Do i have to copy it as well? To use SSL, i had to set the ServerName and URL there:
RequestHeader set "x-webobjects-server-port" "443"
RequestHeader set "x-webobjects-server-name" "hostname-a.domain.de"
RequestHeader set "x-webobjects-server-url" "https://hostname-a.domain.de"
How to add the second Header set?
This is the VirtualHost for the second hostname: (sogo.domain.de.conf)
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
ServerName sogo.domain.de
Redirect permanent / https://sogo.domain.de/
</VirtualHost>
and for SSL: (sogo.domain.de-ssl.conf)
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCipherSuite ----- commented out ---------
SSLHonorCipherOrder on
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
BrowserMatch "MSIE [2-6]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
ServerName sogo.domain.de
</VirtualHost>
</IfModule>
Thanks a lot for your help. Alex
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.