File: apache.conf

package info (click to toggle)
phpsysinfo 3.4.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,900 kB
  • sloc: javascript: 22,511; php: 20,651; xml: 18,293; sh: 196; python: 58; makefile: 12
file content (32 lines) | stat: -rw-r--r-- 1,253 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# phpSysInfo default Apache configuration

Alias /phpsysinfo /usr/share/phpsysinfo

<Directory /usr/share/phpsysinfo>
    # Because some JS or CSS libs can be symlinked to other packages
    Options SymLinksIfOwnerMatch
    Require all granted
    DirectoryIndex index.php

    # limit libapache2-mod-php to files and directories necessary by phpsysinfo
    <IfModule mod_php7.c>
        # This is an example approximate value to be adjusted for your setup
        #php_admin_value open_basedir "/usr/share/phpsysinfo:/etc/phpsysinfo:/proc:/etc:/sys:/var/log/:/var/run:/system/bin:/var/lib/update-notifier:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
    </IfModule>

    # PHP 8+
    <IfModule mod_php.c>
        # This is an example approximate value to be adjusted for your setup
        #php_admin_value open_basedir "/usr/share/phpsysinfo:/etc/phpsysinfo:/proc:/etc:/sys:/var/log/:/var/run:/system/bin:/var/lib/update-notifier:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
    </IfModule>

</Directory>

# Disallow web access to directories that don't need it
<Directory /usr/share/phpsysinfo/data>
    Require all denied
</Directory>
<Directory /usr/share/phpsysinfo/includes>
    Require all denied
</Directory>