How do I Make iRedAdmin (from iRedMail) work under Nginx (Ubuntu 13.04 x64)?

October 16, 2013 9.8k views
Hi there, I was able to install iRedMail and make most of it work under a LEMP environment, however the iRedAdmin web application isn't working, I got the Roundcube webmail to work and I'm able to login, everything seems to work just fine, but I'm just unable to make nginx provide access to the admin panel. I've been trying and looked everywhere, of all guides/examples this one looks like what I need: (it's in chinese but I just follow the code), however uswgi-python appears to no exist anymore, I don't know what else to do. I would highly appreciate your help. Thanks, Érid.
7 Answers
I got it working, yesterday I may have been too tired when I checked this SO post:

I didn't realize the guy used a different package from the chinese guide so I assumed it was a customized (for OpenSSL) version of the chinese one, but it actually has a couple of fixes that'll make it work.

Just following the SO post didn't make it work though, first, I found out that uwsgi-python is now used as uwsgi-plugin-python, so I used the install from the post, creating another directories made it not work for me, so don't bother changing them, keep the at /usr/bin/apache2/ if there's where they got installed, I didn't use the config file from that post, I used the chinese one but changed the uwsgi_pass for the one at hte SO post, which is where the uwsgi application runs on the current uwsgi installation.

Sorry if it's not really clear what I did for me to get it working, I may do a guide later and link it here, since there's no markdown for this post (or it doesn't seems to at least).

Make yourself a quick $50 by writing up a tutorial (they even prefer that you write it in Markdown). If you're interested, I published a Markdown tutorial template on GitHub, to get you started.
Thanks for the idea, unfortunately I'm not much of a writer and I don't trust I would pass the sample. However I did the tutorial on my recently deployed blog, hopefully it will help someone else with the same problem: [Using iRedMail with Nginx (Ubuntu 13.04 x64)](

Note: Sorry if the link above looks weird, I'm testing if markdown works for this comments.
In all manuals nginx configured as few subdomains for iredadmin, roundcube and other. But I wish use 1 subdomain mail.domain. How separate iredadmin and roundcube in different locations? I tried:
location location /iredadmin {
root /usr/share/apache2/iredadmin;
uwsgi_pass unix:///var/run/uwsgi/app/iredadmin/iredadmin.socket;
uwsgi_param UWSGI_PYHOME /usr/share/apache2/iredadmin/python-home;
uwsgi_param UWSGI_CHDIR /usr/share/apache2/iredadmin;
uwsgi_param UWSGI_SCRIPT iredadmin;
include uwsgi_params;
but python answer "not found".
@xandr0s: can you pastebin the whole virtualhost config?
@Kamal Nasser, I won this config)
  • @xandr0s: I have the same error: "not found". Can you please share what exactly was changed in order to make it work. Thanks!

@currapps, all my config below:

    server {
        listen 443;
        server_name mail.domain;
        location / {
            root   /usr/share/apache2/roundcubemail;
            index  index.php index.html;
        location ~ \.php$ {
            root            /usr/share/apache2/roundcubemail;
            include         fastcgi_params;
            fastcgi_index   index.php;
            fastcgi_param   SCRIPT_FILENAME /usr/share/apache2/roundcubemail$fastcgi_script_name;
            fastcgi_param SERVER_NAME $http_host;
            fastcgi_ignore_client_abort on;
        location /iredadmin {
            root /usr/share/apache2;
            uwsgi_param SCRIPT_NAME /iredadmin;
            include uwsgi_params;
            uwsgi_modifier1 30;
        location ~* ^/iredadmin/static/ {
            root /usr/share/apache2;


Have another answer? Share your knowledge.