1

Topic: Subdomain mail does not serve SOGo login page

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.5.1 MARIADB edition.
- Deployed with iRedMail Easy or the downloadable installer? yes
- Linux/BSD distribution name and version: CENTOS STREAM 8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====


Used https://docs.iredmail.org/subdomain.web.apps.html to configure to open SOGo in case https://mail.mydomain.tld:54783 is being accessed from the internet (i'm configuring a mail subdomain)

The result is almost there but I'm stuck. So far I did not change anything in 00-default-ssl.conf or 00-default.conf.

My test (and results) via a VPN connection on an Ipad:

https://mail.mydomain.tld:54783/SOGo is giving the login home screen
https://mail.mydomain.tld:54783 gives me the NGINX test page

the sites-available config file content with a link to sites-enabled

server {
    listen 443 ssl http2;
    listen [::]:443 ssl http2;
    server_name mail.mydomain.tld;

    include /etc/nginx/templates/misc.tmpl;
    include /etc/nginx/templates/ssl.tmpl;
    include /etc/nginx/templates/sogo-subdomain.tmpl;
}

Any idea where I forgot to read the manual ? ;-)

----

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

2

Re: Subdomain mail does not serve SOGo login page

You didn't specify the "root" directive in this file. For example:

server {
    ...
    root /var/www/html;
    index index.html;

    include ...
    ...
}

Then add or update file /var/www/html/index.html and redirect access to "/SOGo".

3 (edited by my.digital.hobbies 2022-02-17 14:35:55)

Re: Subdomain mail does not serve SOGo login page

Thanks for the help. This is maybe a missing part in the online manual, which I followed ( https://docs.iredmail.org/subdomain.web.apps.html ) or it is assumed as basic knowledge ;-).

Did follow your help and now it works as intended. Great !

4

Re: Subdomain mail does not serve SOGo login page

Dear @my.digital.hobbies,

Thanks for the feedback.

I updated the document with an improved solution: use a `location = / {}` block for redirection.
https://docs.iredmail.org/subdomain.web.apps.html