File apache-postfixadmin.conf of Package postfixadmin
# To enable the /postfixadmin alias, run
# a2enflag POSTFIXADMIN && rcapache2 restart
# This will make /postfixadmin available on all virtual hosts.
#
# If you want to have the /postfixadmin alias only on a specific
# virtual host, add the alias to the config of that vhost.
<IfDefine POSTFIXADMIN>
Alias /postfixadmin /usr/share/postfixadmin/public
</IfDefine>
<Directory /usr/share/postfixadmin>
Options FollowSymLinks
<IfModule mod_php7.c>
php_admin_flag allow_url_include off
php_admin_flag allow_url_fopen off
php_admin_value open_basedir "/usr/share/postfixadmin:/etc/postfixadmin:/var/cache/postfixadmin:/usr/bin/doveadm"
php_admin_value session.save_path /var/cache/postfixadmin/sessions
</IfModule>
</Directory>
<Directory /usr/share/postfixadmin/public>
<IfModule !mod_access_compat.c>
require all granted
</IfModule>
<IfModule mod_access_compat.c>
order allow,deny
allow from all
</IfModule>
</Directory>
# vim:ts=4 expandtab ft=apache