1

Topic: Nginx as general replacement for apache

==== ==== Required information ====
- iRedMail version: 0.8.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: FreeBSD 9.1-RELEASE
- Related log if you're reporting an issue:
====

Hello,

I think most users run iRedMail on not very powerful hardware so RAM consumption and performance matter quite a lot.
As everybody you knows, Nginx outperforms Apache significantly (http://www.wikivs.com/wiki/Apache_vs_nginx)

So my question is: How you think about Nginx as an general replacement for Apache in iRedMail or as an alternative installation option like you also offer for the DBMS (MySql or PostgreSQL)?

Thank you,

jokibear

2

Re: Nginx as general replacement for apache

I'm willing to integrate it in iRedMail if someone can provide tutorials of setting up Nginx + Roundcube + phpMyAdmin/phpLDAPadmin/phpPgAdmin + Awstats + iRedAdmin. smile

3

Re: Nginx as general replacement for apache

That's the reason why I want it to be out-of-the box, because I'm failing to get it running with these wink. I hope someone can come up with this!

4

Re: Nginx as general replacement for apache

But it doesn't look too difficult:

http://wiki.nginx.org/IRedMail
https://wiki.archlinux.org/index.php/Ph … figuration

Seems that could be easily adapted, don't you think?

5

Re: Nginx as general replacement for apache

Thanks for your links, i will try to make it available in iRedMail-0.9.0. (Next release will be 0.8.4, another bug fix release)

6

Re: Nginx as general replacement for apache

I know this is a slightly old topic, but it definitely gets my vote - I would love nginx support!

7 (edited by mveplus 2013-08-08 11:10:39)

Re: Nginx as general replacement for apache

I'm also eager to see Nginx+iRedMail as well smile

I fond a few links that may be useful as well in accomplishing this in iRedMail 9.x, I'm about to try them myself.

http://sleepycode.com/2013/03/iredmail-on-nginx/
http://www.piotrdyduch.pl/ubuntu-debian … roundcube/

These are for Debian/Ubuntu I'm running on CentOS 6.x so I'll have to make some modifications.

And I really want to put everything to be served as a sub-folders ( as it is now with Apache) because of the SSL certificate as opposed to iredamin.example.com or mail.example.com.

8

Re: Nginx as general replacement for apache

hi @mveplus,

I have Nginx working with Roundcube webmail and phpMyAdmin (served as a sub-folders, not as a sub-domain like webmail.example.com), but not Awstats and Cluebringer webui since they require authentication against LDAP/SQL server with basic auth.

Still not try iRedAdmin yet. Working on Cluebringer support within iRedAdmin-Pro, hope to release a new version soon, so i have to delay Nginx support for some time. Sorry about this.

Also, i have an idea about Nginx support, not sure whether you guys will like it or not.
is it worth/better to provide an iRedMail addon package (another shell script sets like iRedMail)? You can install iRedMail first, it's a fully working mail server. Then you can run iRedMail addon package to install (and configure) Nginx and other components like Ejabberd, etc, then you can stop Apache and start Nginx as web server. Maybe charge for some dollars.