1

Topic: Nginx not responding to FQDN

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.4.0
- Deployed with iRedMail Easy or the downloadable installer? Downloadable
- Linux/BSD distribution name and version: Ubuntu 20.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL Mariadb
- 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.
====
Iredmail working with https://local IP no problem. But does not resolve the FQDN.
Can someone advise on the correct configuration for sites-available and sites-enabled.
Many thanks

----

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

2

Re: Nginx not responding to FQDN

what is your DNS setup?

3 (edited by petero 2021-08-25 00:36:28)

Re: Nginx not responding to FQDN

Cthulhu wrote:

what is your DNS setup?

Thank you for your reply

Our domain: server.thekingsley.co.uk  is reachable from the outside.
Is there a dns entry required in nginx configuration?

Post's attachments

Screenshot from 2021-08-24 17-35-28.png
Screenshot from 2021-08-24 17-35-28.png 33.05 kb, 2 downloads since 2021-08-24 

You don't have the permssions to download the attachments of this post.

4

Re: Nginx not responding to FQDN

Then you need to add a host with server.thekingsley.co.uk to nginx

https://www.nginx.com/resources/wiki/st … ples/full/

5 (edited by petero 2021-08-25 06:24:18)

Re: Nginx not responding to FQDN

Cthulhu wrote:

Then you need to add a host with server.thekingsley.co.uk to nginx

https://www.
nginx.com/resources/wiki/s … ples/full/

Th added host to sites-enabled, sites-available and nginx status cli gives:
Aug 24 20:04:55 server.thekingsley.co.uk systemd[1]: nginx.service: Succeeded.
server_name _ "server.thekingsley.co.uk";
I think server is a reserved name so I
placed inverted commas around the FQDN
REsolved the hostname but after 30mins this stopped! Looking for helpful error messages.

6

Re: Nginx not responding to FQDN

https://server.thekingsley.co.uk/ works for me, the page loads.

7

Re: Nginx not responding to FQDN

domain name server.thekingsley.co.uk is resolved to IP 81.150.77.172. Is this your iRedMail server?

8

Re: Nginx not responding to FQDN

ZhangHuangbin wrote:

domain name server.thekingsley.co.uk is resolved to IP 81.150.77.172. Is this your iRedMail server?

Hi,
No,the server is on the network and routed on port 443 via NAT.
Peter