1

Topic: /etc/nginx/conf.d/00-default.conf mutually exclusive nginx config?

Instead of running iRedMail on Apache and other services outside of iRedMail on Nginx will be running both iRedMail and other services both under Nginx on different IP's. Before doing so want to understand iRedMail Nginx configuration. It's just easier to manage one server instead of many and have gotten comfortable enough with iRedMail to feel good about doing this.

See that most/ almost all Nginx custom configuration for iRedMail is done in /etc/nginx/conf.d. no expert on Nginx but understand anything in /etc/nginx/conf.d to be supplementary to primary configuration file(s) in /etc/nginx/sites-enabled. 

Is the Nginx configuration file /etc/nginx/conf.d/00-default.conf tied to the the also enabled /etc/nginx/sites-enabled/default or are these files mutually exclusive? When /etc/nginx/sites-enabled/default is disabled iRedMail appears to function fine which seems to point, in addition to /etc/nginx/sites-enabled/default being pretty vanilla and unaltered, to the two files being mutually exclusive.

If they are mutually exclusive what was the motivation behind putting the Nginx config file under /etc/nginx/conf.d instead of /etc/nginx/sites-enabled/iRedMail or whatever?

Thanks so much. Never would have been able to start and run own mailserver without this project.

----

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

2

Re: /etc/nginx/conf.d/00-default.conf mutually exclusive nginx config?

iRedMail doesn't use /etc/nginx/conf.d/ anymore. Here're used directories:

*) /etc/nginx/conf-available: all config files used to define parameters inside Nginx "http {}" block. Note: all files under this folder will NOT be loaded by Nginx directly.

*) /etc/nginx/conf-enabled: we create symbol link from 'conf-available' to 'conf-enabled', only files under 'conf-enabled' will be loaded by Nginx directly.

*) /etc/nginx/sites-available: all config files used to define virtual web hosts. Note: all files under this folder will NOT be loaded by Nginx directly.

*) /etc/nginx/sites-enabled: we create symbol link from 'sites-available' to 'sites-enabled', only files under 'sites-enabled' will be loaded by Nginx directly.

3

Re: /etc/nginx/conf.d/00-default.conf mutually exclusive nginx config?

Thanks. Decided to run iRedMail without any webservices instead. Works great.