File phpMyAdmin.http of Package phpMyAdmin

# By default the /@name@ Alias is enabled for all vhosts.
# To disable the /@name@ Alias, run
#     a2enflag -d @name@ && rcapache2 restart
# This will make /@name@ unavailable on any vhosts.
#
# If you want to have the /@name@ Alias only on a specific
# vhost, add the Alias to the config of that vhost.

<IfDefine @name@>
    <IfModule mod_alias.c>
        Alias /@name@ @ap_docroot@/@name@
    </IfModule>
</IfDefine>

<Directory @ap_docroot@/@name@>

    Options FollowSymLinks
    AllowOverride None

    Require all granted

    <IfModule mod_php7.c>
        php_admin_value open_basedir "@ap_docroot@/@name@:@tmpdir@:/var/lib/php7:/tmp:@docdir@/@name@:/etc/@name@:/proc/meminfo:/proc/stat"
    </IfModule>

    <IfModule mod_php8.c>
        php_admin_value open_basedir "@ap_docroot@/@name@:@tmpdir@:/var/lib/php8:/tmp:@docdir@/@name@:/etc/@name@:/proc/meminfo:/proc/stat"
    </IfModule>

</Directory>

<Directory @ap_docroot@/@name@/libraries>
    Require all denied
</Directory>

<Directory @ap_docroot@/@name@/templates>
    Require all denied
</Directory>

<Directory @tmpdir@>
    Require all denied
</Directory>
openSUSE Build Service is sponsored by