29.6. Setting Per-Directory Options

Apache allows you to specify different options for certain directories—either for all virtual servers or just a single one. Including directories, you can actually set options that apply to three types of objects on your Apache server:

Directory The options apply to a specified directory and all files in it or in the subdirectories that it contains.

Files The options apply to files with a specified name in any directory.

Location The options apply to any files or directories requested by a URL whose path starts with the specified location. For example, in the URL www.example.com/foo the path would be /foo.

Whenever Apache processes a request, it checks for the options that apply to it in a fixed order. Those ...

Get Managing Linux® Systems with Webmin™ System Administration and Module Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.