Topic: Nginx Server blocks aren't working

- iRedMail version (check /etc/iredmail-release): 0.9.9
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Ubuntu 18.04 LTS
- 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'm not sure what I'm doing wrong. Basically I've installed iRedMail on a clean Ubuntu 18.04 server. It works all perfectly, except when I try to create a new nginx server blog for another subdomain, it still redirects me to www.my-domain.com/mail (roundcube webmail)

I've created a new file in /etc/nginx/sites-available/ called "blog.addictedtogames.de.conf" without quotes. Inside the config is:

server {
    listen 80 default_server;
    listen [::]:80 default_server;

    root /var/www/blog.addictedtogames.de/html;

    index index.html index.htm index.nginx-debian.html;

    server_name blog.addictedtogames.de www.blog.addictedtogames.de;

    location / {
        try_files $uri $uri/ =404;


I've also created a symlink and reloaded nginx. When I now go to blog.addictedtogames.de its still redirects me to the roundcube webmail. I hope anyone can help me with my Issue smile

Kind Regards


Re: Nginx Server blocks aren't working

Your Nginx configuration snippet supports only http, no https, so you should access:


Also, try to use "listen 80;" instead of "listen 80 default_server;".


Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee