I am trying to install iredmail with apache. but now i have a problem i can serve only python file of iredadmin
or static files. I need to make both of them working.
<Location "iredadmin/static">
Order allow,deny
Allow from all
Require all granted
Alias "/opt/www/iredadmin/static"
</Location>
Alias "/iredadmin/static" "/opt/www/iredadmin/static"
<Directory "iredadmin/static">
allow from all
Order allow,deny
Options Indexes
Require all granted
</Directory>
<Location "/iredadmin">
RewriteEngine On
RewriteRule ^/iredadmin(/.*)$ $l [L]
ProxyPreserveHost On
ProxyPass "uwsgi://127.0.0.1:7791"
ProxyPassReverse "uwsgi://127.0.0.1:7791"
</Location>
I have tried to replace the structure /iredadmin
by /iredadmin/static
.
Also tried <LocationMatch "^\/iredadmin(?!\/static)(.*)">
isntead of <Location "/iredadmin">
but still facing the issue.
I can disable the proxy and can see static files alone. or keep both and see only the proxy.