Topic: web connects always routed to roundube mail login page
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Clean install of iredmail 9.9 on ubuntu 18.04 (by downloadable installer)
mail stored in MySQL
Webserver is Nginx
I have created additional server blocks (for virtual hosts) on the same machine for other domains (not related to email server at all.
in /etc/nginx/sites-available/
-rw-r--r-- 1 root root 271 Mar 13 21:41 00-default.conf
-rw-r--r-- 1 root root 597 Mar 13 08:47 00-default-ssl.conf
-rw-r--r-- 1 root root 441 Mar 13 21:50 domain1.com.conf
created symbolic ink in /etc/nginx/sites-enabled/
lrwxrwxrwx 1 root root 42 Mar 13 08:47 00-default.conf -> /etc/nginx/sites-available/00-default.conf
lrwxrwxrwx 1 root root 46 Mar 13 08:47 00-default-ssl.conf -> /etc/nginx/sites-available/00-default-ssl.conf
lrwxrwxrwx 1 root root 45 Mar 13 20:46 domain1.com.conf -> /etc/nginx/sites-available/domain1.com.conf
content of domain1.com.conf
# Note: This file must be loaded before other virtual host config files,
#
# HTTP
server {
# Listen on ipv4
listen 80;
listen [::]:80;
index index.html index.htm;
location / {
try_files $uri $uri/ =404;
}
server_name domain1.com www.domain1.com;
root /opt/www/domain1.com/public_html;
# Redirect all insecure http:// requests to https://
return 301 https://$host$request_uri;
I have tried putting the index file in the following locations:
/opt/www/domain1.com/index.html
/etc/www/html/domain1.com/index.html
PROBLEM = attempts to connect to this domain are always routed to the roundcube login page located at:
/opt/www/roundcubemail/public_html/index.php
Can someone see where I have gone wrong?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.