I changed the faulty line in NginX default config file to:
server {
listen 80 default_server;
listen [::]:80;
root /usr/share/nginx/html;
index index.html index.htm index.php;
server_name mydomain.com www.mydomain.com;
location / {
On an empty VPS hosting (Ubuntu 13.10 x64), I managed to run the base
iRedMail installation with Apache2 and LDAP and my roundcubemail was
accessible at:
`https://www.mydomain.com/mail`
then I installed NginX, shutdown Apache2, reconfigured iRedMail (without
adding any extra A record in the DNS