Ubuntu Unleashed 2019 Edition: Covering 18.04, 18.10, 19.04

(singke) #1
#
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

Options Directives

To configure which configuration options are available to Apache by default,
you must use the Options directive. Options can be None; All; or any
combination of Indexes, Includes, FollowSymLinks, ExecCGI,
and MultiViews. MultiViews is not included in All and must be
specified explicitly. These options are explained in Table 25.2.


Table 25.2 Switches Used by the Options Directive


Switch Description

None None   of  the available   options are enabled for this
directory.

Indexes In  the absence of  an  index.html  file    or  another
DirectoryIndex file, a listing of the files in the
directory is generated as an HTML page for display to
the user.

Includes Server-side    includes    (SSIs)  are permitted   in  this
directory. This can also be written as
IncludesNoExec if you want to allow includes but
don’t want to allow the exec option in them. For
security reasons, this is usually a good idea in
directories over which you don’t have complete control,
such as UserDir directories.

FollowSymLinksThis  option  allows  access  to  directories that    are
symbolically linked to a document directory. You should
never set this globally for the whole server and only
rarely for individual directories. This option is a
potential security risk because it allows web users to
escape from the document directory and could
potentially allow them access to portions of your file
system where you really don’t want people poking
Free download pdf