
NOTE
For an example of an Novell AppArmor profile, refer to
Example 5.1, “Example
phpsysinfo-dev Hat”
(page 111).
5.2 Apache Configuration for
mod_change_hat
Apache is configured by placing directives in plain text configuration files. The main
configuration file is usually
httpd.conf
. When you compile Apache, you can indicate
the location of this file. Directives can be placed in any of these configuration files to
alter the way Apache behaves. When you make changes to the main configuration files,
you need to start or restart Apache so the changes are recognized.
5.2.1 Virtual Host Directives
Virtual host directives control whether requests that contain trailing pathname informa-
tion, following an actual filename (or nonexistent file in an existing directory), is ac-
cepted or rejected. For Apache documentation on virtual host directives, refer to
http://httpd.apache.org/docs-2.0/mod/core.html#virtualhost
The change_hat specific configuration keyword is
ImmDefaultHatName
and is used
similarly to
ImmHatName
, for example,
ImmDefaultHatName
My_Funky_Default_Hat
.
The configuration option is actually based on a server directive, which enables you to
use the keyword outside of other options, thereby setting it for the default server. Vir-
tual hosts are considered internally within Apache to be separate “servers,” so you can
set a default hat name for the default server, as well as one for each virtual host, if de-
sired.
When a request comes in, the following steps reflect the sequence in which
mod_change_hat
attempts to apply hats.
1.
A location or directory hat as specified by the
ImmHatName
keyword.
Profiling Your Web Applications Using ChangeHat Apache
113
Summary of Contents for APPARMOR 1.2
Page 1: ...Novell AppArmor Powered by Immunix Administration Guide www novell com 1 2 09 29 2005...
Page 4: ......
Page 14: ......
Page 116: ......
Page 128: ......