<Directory "/srv/www/www.immunix.com/docs">
# Note lack of trailing slash
AAHatName immunix.com
</Directory>
Example:
The program phpsysinfo is used to illustrate a location directive in the
following example. The tarball can be downloaded from
http://phpsysinfo
.sourceforge.com
.
1
After downloading the tarball, install it into
/srv/www/htdocs/
phpsysinfo
.
2
Create
/etc/apache2/conf.d/phpsysinfo.conf
and add the following
text to it:
<Location "/phpsysinfo">
AAHatName phpsysinfo
</Location>
The following hat should then work for phpsysinfo:
/usr/sbin/httpd2-prefork {
...
^phpsysinfo {
#include <abstractions/bash>
#include <abstractions/nameservice>
/bin/basename ixr,
/bin/bash ixr,
/bin/df ixr,
/bin/grep ixr,
/bin/mount Ux,
/bin/sed ixr,
/dev/bus/usb/ r,
/dev/bus/usb/** r,
/dev/null w,
/dev/tty rw,
/dev/urandom r,
/etc/SuSE-release r,
/etc/ld.so.cache r,
/etc/lsb-release r,
/etc/lsb-release.d/ r,
/lib/ld-2.6.1.so ixr,
/proc/** r,
/sbin/lspci ixr,
/srv/www/htdocs/phpsysinfo/** r,
/sys/bus/pci/** r,
/sys/bus/scsi/devices/ r,
Profiling Your Web Applications Using ChangeHat
85