I know in the FAQ it doesn’t recommend running anything else other than mail-in-a-box in the VPS. But is it possible to add a wordpress site and add the appropriate nginx ruleset? I’m guessing the nginx file will be overwritten when mail-in-a-box does an update?
Hello fellow WordPress lover!
But is it possible to add a wordpress site and add the appropriate nginx ruleset?
Technically, yes, although it isn’t supported by Mail-in-a-Box. The official documentation for WordPress on nginx is available at the WordPress Codex: https://codex.wordpress.org/Nginx
I’m guessing the nginx file will be overwritten when mail-in-a-box does an update?
Also correct. MIAB stack configuration files, which include those of nginx, are overwritten (at least partially) with the most up to date data on every upgrade (or anytime you run the mailinabox command, if I’m not mistaken) to ensure consistency and reliability.
Although I too love the idea of centralizing my WordPress and my MIAB, it’s not recommended. As the MIAB website suggests, if you’re looking for something built specifically for more flexibility, there are other solutions such as iRedMail, Modoboa, etc.