1

Topic: Access forbiden to iredadmin

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version:  Ubuntu 16.04.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

After I installed iredmail with no web server, I installed apache2, I made some configuration to access iredadmin.
But I cannot access iredadmin:

403: You don't have permission to access /iredadmin on this server.

I found this log

Fri Mar 15 12:07:45.553875 2019] [authz_core:error] [pid 3090:tid 140693232228096] [client 192.168.2.214:37296] AH01630: client denied by server configuration: /opt/www/iredadmin/iredadmin.py

And here is my configurations

/etc/apache2/sites-available/admin.my-private-domain.com.conf

<VirtualHost *:80>
        ServerAdmin postmaster@my-private-domain.com
        ServerName admin.my-private-domain.com
        DocumentRoot /var/www/admin/
        ErrorLog /var/log/apache2/admin/error.log
        CustomLog /var/log/apache2/admin/access.log combined


        <Directory "/var/www/admin">
             Require all granted
             Options -Indexes
        </Directory>

        Alias /iredadmin/static "/opt/www/iredadmin/static/"
        WSGIScriptAlias /iredadmin "/opt/www/iredadmin/iredadmin.py/"
</VirtualHost>

/etc/apache2/conf-available/iredadmin.conf

WSGISocketPrefix /var/run/wsgi
WSGIDaemonProcess iredadmin user=iredadmin threads=15
WSGIProcessGroup iredadmin

AddType text/html .py

<Directory /opt/www/iredadmin/>
    Require all granted
</Directory>

2

Re: Access forbiden to iredadmin

Since you added it after, you may want to make sure that directory is owned by Apache instead of root.

3

Re: Access forbiden to iredadmin

KNERD wrote:

Since you added it after, you may want to make sure that directory is owned by Apache instead of root.


Folder /var/www/admin" or "/opt/www/iredadmin/"?

I  changed both ownership and it did not worked.

4

Re: Access forbiden to iredadmin

What's the problem to use Nginx directly? sad

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

5

Re: Access forbiden to iredadmin

ZhangHuangbin wrote:

What's the problem to use Nginx directly? sad

I am used to using apache.