Directories and Permissions

Apache has many interesting features, but it's not a good idea to enable everything everywhere—a bit of sloppy programming can result in you broadcasting extra information from your website or even allowing an intruder to break in. Apache permissions are set on a directory-by-directory basis. The configuration looks a little like XML: You have a Directory label in angle brackets, a list of permissions and settings, and then a closing Directory with a backslash. Any options or settings between the opening and closing Directory statements affect that directory:

<Directory /path/to/files>
    ...options and settings... 

By default, Apache uses very restrictive permissions and settings. For example, you'll see the ...

Get Absolute FreeBSD, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.