Topic: Adding a website leads to non reachable SOGo and iredadmin (Nginx)
======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7 MARIADB edition.
- Linux/BSD distribution name and version: Ubuntu 16:04
- 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.
====
I have installed iredmail and everything works fine.
However, as soon as I add my welcome website to Nginx, I will only be redirected to it.
I would like to have example.com call my welcome page and SOGo and iredadmin be reachable under mx.example.com.
nginx/site-enabled/welcome.conf:
server {
listen 80;
listen [::]:80;
server_name example.com;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name example.com;
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
root /var/www/welcome;
index index.html;
}
I've been trying to edit 00-default.conf and 00-default-sll.conf too something like this:
server {
server_name mx.example.com;
include /etc/nginx/sites-conf.d/default/*.conf;
}
But as said, if i enable welcome.conf i can't reach SOGo or iredadmin.
Thanks for your Help!
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.