
The entry Directory encloses a group of directives which will apply only to the named directory and sub-directories of that directory. It allows to define completely diferent behaviors depending on the directories.
The accepted clauses inside a Directory (and Extension) entry are:
A directory entry accepts as many of these configuration entries as you want.
This example just limits the access to the resource /admin to the local network 192.168.0.0/16:
Directory /admin {
Allow From 127.0.0.1, 192.168.0.0/16
}
The following example only allow to access the /phpmyadmin through a HTTPS connection (updating it if necesary):
Directory /phpmyadmin {
OnlySecure
}
The next one uses two of the previous clauses together to set up the icons directory:
Directory /icons {
DocumentRoot /usr/share/cherokee/icons
Handler file
}