2.3.100 Options
Options restricts the functions that users can use.
Description
Options restricts the functions that users can use.
- +
-
Permits the function specified in option to be used
- -
-
Prohibits the function specified in option to be used
Option |
Function |
---|---|
All |
Enables all options except for MultiViews and SymLinksIfOwnerMatch |
ExecCGI |
Permits CGI script execution |
FollowSymLinks |
Follows the symbolic link |
Indexes |
If the file specified in the DirectoryIndex directive (index.html by default) does not exist when a directory is specified in the URL, the directory index is displayed. |
MultiViews |
Supports Content-negotiated Multiviews |
None |
Disables the function that can be specified by all options |
SymLinksIfOwnerMatch |
Follows the link only when the owner of the file or directory is the same as the owner of symbolic link |
If this directive is specified more than once without using +-, only the directive that was last specified becomes valid.
- Example 1:
-
Options All Options ExecCGI
When the directives are specified in two lines without using +- with the option, the user can use the function for executing the CGI script only. A function such as directory index cannot be used.
- Example 2:
-
Specification in the httpsd.conf file
Options All
Specification in the access control file
Options ExecCGI
Only the function for executing the CGI script can be used in the directory where the access control file is located because the access control file is referenced after the httpsd.conf file.
- Example 3:
-
Options Indexes ExecCGI
When the directive is specified in a single line without using +- with the option, functions that are both specified can be used.
Syntax
Options {+|-}option [{+|-}option ...]
Locations where it can be written
httpsd.conf, <VirtualHost>, <Directory>, and .htaccess
Overwrite permission
Options level