ZhangHuangbin wrote:With Apache, please check its config file to make sure it has settings like this:
Alias /iredadmin/static "/var/www/iRedAdmin-0.1.7/static/"
WSGIScriptAlias /iredadmin "/var/www/iRedAdmin-0.1.7/iredadmin.py/"
I had the exact same issues, I'm running iRedMail version 0.9.4 on Ubuntu 14.04. I installed letsencrypt for apache since apache was already running as part of iRedMail. TLS for dovecot and postfix was working by referencing the path to LE however the iRedMail admin panel returned a 404. Roundcube webmail was the only site that would come up.
Apache logs were showing a conflict with SNI,
[ssl:warn] [pid 4318] AH02292: Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
I copied the Alias settings from /etc/apache2/sites-available/default-ssl.conf
Alias /iredadmin/static "/opt/www/iredadmin/static/"
WSGIScriptAlias /iredadmin "/opt/www/iredadmin/iredadmin.py/"
Alias /mail "/opt/www/roundcubemail/"
Alias /awstats/icon "/usr/share/awstats/icon/"
Alias /awstatsicon "/usr/share/awstats/icon/"
ScriptAlias /awstats "/usr/lib/cgi-bin/"
And copy this in /etc/apache2/sites-available/000-default-le-ssl.conf
I restarted apache
The admin portal came back up for me.
mail.mysite.com/awstats/awstats.pl doesn't let me log in with the same username and password set during installation for the other web sites, but that's a problem for another post.