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

  • Posted October 16, 2013

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.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

@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;


@Kamal Nasser, I won this config)

@xandr0s: can you pastebin the whole virtualhost config?

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: <br>location location /iredadmin { <br> root /usr/share/apache2/iredadmin; <br> uwsgi_pass unix:///var/run/uwsgi/app/iredadmin/iredadmin.socket; <br> uwsgi_param UWSGI_PYHOME /usr/share/apache2/iredadmin/python-home; <br> uwsgi_param UWSGI_CHDIR /usr/share/apache2/iredadmin; <br> uwsgi_param UWSGI_SCRIPT iredadmin; <br> include uwsgi_params; <br>} <br>but python answer “not found”.

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). <br> <br>Note: Sorry if the link above looks weird, I’m testing if markdown works for this comments.

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 <a href=“”>tutorial template on GitHub</a>, to get you started.

I got it working, yesterday I may have been too tired when I checked this SO post: <br> <br>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. <br> <br>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. <br> <br>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). <br> <br>Cheers.