1

Topic: How to change example.com/SOGo to use only example.com

i'm trying to change the Document root however i got forbidden error
may you please help how to change mydomain.com or to save my old users's experience mydomain.com/owa

----

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

2

Re: How to change example.com/SOGo to use only example.com

what OS and Web Server you use? - This is important information.

dont change Document Root!
iRedMail create index.html file in Root folder, he looks like this:

<html><head><meta HTTP-EQUIV="REFRESH" content="0; url=/mail/"></head></html>

So, if you change url=/sogo/ - all client will be redirect to sogo

in FreeBSD and nginx path to this file is:

 /usr/local/www/apache24/data/index.html 

what do you want with /OWA?

simple redirect owa => sogo or mask sogo by owa (use sogo lub show owa)

simple redirect:

add this line to templates/sogo.tmpl

#SOGo
location ~ ^/owa { rewrite ^ https://$host/SOGo; }

in FreeBSD and nginx path to this file is:

 /usr/local/etc/nginx/templates/sogo.tmpl 

i don't know how to mask sogo by owa, and this will be more, more, more complicated.

kazix