1

Topic: Default redirect to SOGo

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.0
- Linux/BSD distribution name and version: Centos 6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hello,
Who can help change setting to set default redirect to SOGo. At this moment when i put exempl.com -> forward to example.com/mail (Roundcoube). I want to redirect SOGo.

I am trying to change /var/www/html/index.html
put url=https://example.com/SOGo" and /SOGo (before set /mail) - not working
RedirectMatch ^/$ https://mail.yourdomain.com/SOGo - not working

have this config in /etc/httpd/conf/httpd.conf

        RewriteEngine on
        RewriteRule / https://%{HTTP_HOST}%{REQUEST_URI} - not work
        RewriteRule /SOGo(.*) https://%{HTTP_HOST}%{REQUEST_URI}
        RewriteRule /sogo(.*) https://%{HTTP_HOST}%{REQUEST_URI}
        RewriteRule /awstats(.*) https://%{HTTP_HOST}%{REQUEST_URI}
        RewriteRule /iredadmin(.*) https://%{HTTP_HOST}%{REQUEST_URI}
        RewriteRule /cluebringer(.*) https://%{HTTP_HOST}%{REQUEST_URI}

end this https
ProxyPass /Microsoft-Server-ActiveSync \
http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync \
retry=60 connectiontimeout=5 timeout=360

ProxyPass /SOGo http://127.0.0.1:20000/SOGo retry=0

<Proxy http://127.0.0.1:20000/SOGo>
## adjust the following to your configuration
## and do not forget to enable the headers module
<IfModule headers_module>
  RequestHeader set "x-webobjects-server-port" "443"
  RequestHeader set "x-webobjects-server-name" "%{HTTP_HOST}e" env=HTTP_HOST
  RequestHeader set "x-webobjects-server-url" "https://%{HTTP_HOST}e" env=HTTP_HOST

## When using proxy-side autentication, you need to uncomment and
## adjust the following line:
  RequestHeader unset "x-webobjects-remote-user"
#  RequestHeader set "x-webobjects-remote-user" "%{REMOTE_USER}e" env=REMOTE_USER

  RequestHeader set "x-webobjects-server-protocol" "HTTP/1.0"
</IfModule>

  AddDefaultCharset UTF-8

  Order allow,deny
  Allow from all
</Proxy>

# For Apple autoconfiguration
<IfModule rewrite_module>
  RewriteEngine On
  RewriteRule ^/.well-known/caldav/?$ /SOGo/dav [R=301]
  RewriteRule ^/.well-known/carddav/?$ /SOGo/dav [R=301]
  RewriteRule /SOGo(.*) https://%{HTTP_HOST}%{REQUEST_URI}
</IfModule>


after : for i in httpd memcached sogod; do service $i restart; done

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Default redirect to SOGo

Update '/var/www/html/index.html' should be enough.

3 (edited by zaka10 2017-09-17 19:34:42)

Re: Default redirect to SOGo

ZhangHuangbin wrote:

Update '/var/www/html/index.html' should be enough.

Thank for help.
Work fine after clean cache in browser Ctrl+Shift+Del