How redirect SOGo on root domain?

If you have time and the willingness, a PR is welcomed and really pleased

1 Like

done, some doc update too

2 Likes

@mark_nl could you please test the issue https://github.com/NethServer/dev/issues/5541#issuecomment-402553395

The commit you did redirect ‘/’ to /SOGo, but a side effect exists, the SOGo.conf vhost becomes the default vhost and all vhost are redirected to /SOGo. Hence I moved the sogo.conf to zzz_SOGO.conf

[root@prometheus ~]# httpd -S
VirtualHost configuration:
*:80                   is a NameVirtualHost
         default server webmail.aubrac-medical.com (/etc/httpd/conf.d/SOGo.conf:10)
         port 80 namevhost webmail.aubrac-medical.com (/etc/httpd/conf.d/SOGo.conf:10)
         port 80 namevhost webmail.de-labrusse.fr (/etc/httpd/conf.d/zz_SOGo.conf:10)
*:443                  is a NameVirtualHost
         default server webmail.aubrac-medical.com (/etc/httpd/conf.d/SOGo.conf:18)
         port 443 namevhost webmail.aubrac-medical.com (/etc/httpd/conf.d/SOGo.conf:18)
         port 443 namevhost prometheus.de-labrusse.fr (/etc/httpd/conf.d/nethserver.conf:42)
         port 443 namevhost prometheus.de-labrusse.fr (/etc/httpd/conf.d/ssl.conf:56)
         port 443 namevhost webmail.de-labrusse.fr (/etc/httpd/conf.d/zz_SOGo.conf:18)

hi will look in it tomorrow,

Don’t see this behavior, but could be I do not understand correctly

default server xxx.xxx.lan (/etc/httpd/conf.d/SOGo.conf:18)

sogo is the default vhost, it should /etc/httpd/conf.d/nethserver.conf

I beginning to get it, alphabet :relieved:

EDIT:
No i do not get it see wat you meen, don’t get why

With your commit if you take two vhost lets say

Sub1.domain.com
Sub2.domain.com

Twe two are redirected to /SOGo even if you use only sub1.domain.com in the apache sogo configuration.

This is done when you have several web app configured and when your apache configuration is taken as the default one. We have configured like this mattermost, dokuwiki, nextcloud and now SOGo by naming the apache configuration to zz_*. Like this the nethserver.conf become the default vhost

I need to check WordPress

2 Likes

Hi, i get it now!
and was typing here:

this is getting OT, sould we open a new thread?

I love OT
my life is out topic :smiley:

lets close the sogo bug if you agree and start a new talk on the 000-nethserver.conf
since you raised your hand, please shoot first to start a discussion on discourse

1 Like

done