Files
postfixadmin/apache-postfixadmin.conf
Christian Boltz 967bc28597 Accepting request 603331 from home:cboltz
- update to PostfixAdmin 3.2:
  - new directory layout (see below)
  - enable users to reset their passwords by mail or SMS
    ($CONF['forgotten_user_password_reset'],
    $CONF['forgotten_admin_password_reset'], $CONF['sms_send_function'])
  - allow local alias targets (without @domain)
  - add $CONF['edit_alias'] to disable "edit alias" function for users
  - add php_crypt $CONF["encrypt"] option
  - add support for MySQL connections over SSL
  - and more - see CHANGELOG.TXT for the full list
- move out of /srv/www/htdocs/postfixadmin - PHP code moved to
  /usr/share/postfixadmin/, smarty cache to /var/cache/postfixadmin/ and
  the config files to /etc/postfixadmin/ (no automated migration!)
- add apache config file to glue everything together. Note that the
  /postfixadmin alias is *not* enabled by default to avoid that it is
  active on all vhosts. Run "a2enflag POSTFIXADMIN" if you want that.
- adjust perl requirements for latest vacation.pl
- drop apache2-devel / httpd-devel BuildRequires - no longer needed with
  the new directory layout
- package /usr/bin/postfixadmin-cli symlink

OBS-URL: https://build.opensuse.org/request/show/603331
OBS-URL: https://build.opensuse.org/package/show/server:php:applications/postfixadmin?expand=0&rev=49
2018-05-02 22:52:10 +00:00

36 lines
1.0 KiB
ApacheConf

# 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